File tree Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ export interface paths {
21
21
/** スコアを登録 */
22
22
post : operations [ "registerScore" ] ;
23
23
} ;
24
+ "/scores/{user-id}/current-rank" : {
25
+ /** ユーザーの現在の順位を取得 */
26
+ get : operations [ "getMyscoreRanking" ] ;
27
+ } ;
24
28
}
25
29
26
30
export type webhooks = Record < string , never > ;
@@ -109,7 +113,11 @@ export interface operations {
109
113
/** @description スコアランキングを返します。 */
110
114
200 : {
111
115
content : {
112
- "application/json" : components [ "schemas" ] [ "ScoreRanking" ] [ ] ;
116
+ "application/json" : {
117
+ rankings ?: components [ "schemas" ] [ "ScoreRanking" ] [ ] ;
118
+ /** @description ランキングの全件数 */
119
+ total_count ?: number ;
120
+ } ;
113
121
} ;
114
122
} ;
115
123
/** @description 不正なリクエストです。 */
@@ -149,4 +157,32 @@ export interface operations {
149
157
} ;
150
158
} ;
151
159
} ;
160
+ /** ユーザーの現在の順位を取得 */
161
+ getMyscoreRanking : {
162
+ parameters : {
163
+ path : {
164
+ /** @description ユーザーID */
165
+ "user-id" : string ;
166
+ } ;
167
+ } ;
168
+ responses : {
169
+ /** @description ユーザーの現在の順位を返します。 */
170
+ 200 : {
171
+ content : {
172
+ "application/json" : {
173
+ /** @description ユーザーの現在の順位 */
174
+ "current-rank" ?: number ;
175
+ } ;
176
+ } ;
177
+ } ;
178
+ /** @description ユーザーが見つかりません。 */
179
+ 404 : {
180
+ content : never ;
181
+ } ;
182
+ /** @description サーバーエラーが発生しました。 */
183
+ 500 : {
184
+ content : never ;
185
+ } ;
186
+ } ;
187
+ } ;
152
188
}
You can’t perform that action at this time.
0 commit comments