Skip to content

Commit da85d3d

Browse files
committed
add: ユーザーの現在の順位を取得するエンドポイントを追加
1 parent 8f5596a commit da85d3d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

typing-server/openapi.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,36 @@ paths:
119119
"400":
120120
description: 不正なリクエストです。
121121

122+
/scores/{user-id}/current-rank:
123+
get:
124+
tags:
125+
- user
126+
operationId: getMyscoreRanking
127+
summary: ユーザーの現在の順位を取得
128+
parameters:
129+
- in: path
130+
name: user-id
131+
schema:
132+
type: string
133+
format: uuid
134+
required: true
135+
description: ユーザーID
136+
responses:
137+
"200":
138+
description: ユーザーの現在の順位を返します。
139+
content:
140+
application/json:
141+
schema:
142+
type: object
143+
properties:
144+
current-rank:
145+
type: integer
146+
description: ユーザーの現在の順位
147+
"404":
148+
description: ユーザーが見つかりません。
149+
"500":
150+
description: サーバーエラーが発生しました。
151+
122152
components:
123153
schemas:
124154
User:

0 commit comments

Comments
 (0)