generated from peter-evans/swagger-github-pages
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
import "./show.tsp"; | ||
import "./top_100.tsp"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace SolvedAC; | ||
|
||
/** | ||
* 사용자가 푼 문제 중 문제 수준이 높은 상위 100 문제를 가져옵니다 | ||
* | ||
* @return | ||
* 상위 100 문제 목록 | ||
*/ | ||
@summary("상위 100 문제 가져오기") | ||
@tag("user") | ||
@get | ||
@route("/user/top_100") | ||
op getUserTop100( | ||
/** | ||
* 응답을 받을 언어입니다. | ||
*/ | ||
@header | ||
`x-solvedac-language`?: Language, | ||
|
||
/** | ||
* 요청할 사용자명 | ||
*/ | ||
@query | ||
handle: string, | ||
): GetUserTop100.Ok; | ||
|
||
namespace GetUserTop100 { | ||
@extension(XInternal, true) | ||
model Ok is PaginatedList<Problem> { | ||
@statusCode status: 200; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.