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
63 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import "./list.tsp"; | ||
import "./show.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,30 @@ | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace SolvedAC; | ||
|
||
/** | ||
* 태그 목록을 가져옵니다. | ||
* | ||
* @return | ||
* 태그 목록을 가져옵니다. | ||
*/ | ||
@summary("태그 목록 가져오기") | ||
@tag("tag") | ||
@get | ||
@route("/tag/list") | ||
op getTagList( | ||
/** | ||
* 페이지 | ||
*/ | ||
@query | ||
page?: uint32, | ||
): GetTagList.Ok; | ||
|
||
namespace GetTagList { | ||
@extension(XInternal, true) | ||
model Ok { | ||
@statusCode status: 200; | ||
@body data: PaginatedList<ProblemTag>; | ||
} | ||
} |
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,30 @@ | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace SolvedAC; | ||
|
||
/** | ||
* 태그 ID로 태그 정보를 가져옵니다. | ||
* | ||
* @return | ||
* 태그 정보를 가져옵니다. | ||
*/ | ||
@summary("태그 ID로 태그 정보 가져오기") | ||
@tag("tag") | ||
@get | ||
@route("/tag/show") | ||
op getTagByKey( | ||
/** | ||
* 태그 ID | ||
*/ | ||
@query | ||
key: string, | ||
): GetTagByKey.Ok; | ||
|
||
namespace GetTagByKey { | ||
@extension(XInternal, true) | ||
model Ok { | ||
@statusCode status: 200; | ||
@body tag: ProblemTag; | ||
} | ||
} |