Skip to content

Commit

Permalink
feat: migrate /user/top_100
Browse files Browse the repository at this point in the history
  • Loading branch information
RanolP committed Mar 16, 2024
1 parent c36fa07 commit f46c512
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 44 deletions.
2 changes: 0 additions & 2 deletions src/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ paths:
responses:
"200":
description: "TODO"
/user/top_100:
$ref: "./paths/user/top_100.yaml#/paths/Path"

components:
schemas:
Expand Down
1 change: 1 addition & 0 deletions src/operations/user/_barrel.tsp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import "./show.tsp";
import "./top_100.tsp";
35 changes: 35 additions & 0 deletions src/operations/user/top_100.tsp
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;
}
}
42 changes: 0 additions & 42 deletions src/paths/user/top_100.yaml

This file was deleted.

0 comments on commit f46c512

Please sign in to comment.