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
10 changed files
with
61 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace SolvedAC; | ||
|
||
model RivalUser is User { | ||
/** | ||
* 라이벌 여부입니다. | ||
* | ||
* @example false | ||
*/ | ||
isRival: boolean; | ||
|
||
/** | ||
* 역라이벌 여부입니다. | ||
* | ||
* @example false | ||
*/ | ||
isReverseRival: boolean; | ||
} |
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
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
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 "./contribution.tsp"; | ||
import "./class.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; | ||
|
||
/** | ||
* CLASS가 높은 사용자가 먼저 오도록 정렬한 사용자 목록을 가져옵니다. | ||
* | ||
* @return | ||
* 페이지네이션 가능한 사용자 목록을 반환합니다. | ||
*/ | ||
@summary("CLASS 순으로 정렬해 사용자 목록 가져오기") | ||
@tag("ranking") | ||
@get | ||
@route("/ranking/class") | ||
op getRankingByClass( | ||
/** | ||
* 응답을 받을 언어입니다. | ||
*/ | ||
@header | ||
`x-solvedac-language`?: Language, | ||
|
||
/** | ||
* 페이지 | ||
*/ | ||
@query | ||
page?: uint32, | ||
): GetRankingByClass.Ok; | ||
|
||
namespace GetRankingByClass { | ||
@extension(XInternal, true) | ||
model Ok is PaginatedList<RivalUser> { | ||
@statusCode status: 200; | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.