-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into chore/bg-color
- Loading branch information
Showing
4 changed files
with
164 additions
and
6 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
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,152 @@ | ||
/** | ||
* This file was auto-generated by openapi-typescript. | ||
* Do not make direct changes to the file. | ||
*/ | ||
|
||
|
||
export interface paths { | ||
"/health": { | ||
/** サーバーの状態を取得 */ | ||
get: operations["healthcheck"]; | ||
}; | ||
"/users": { | ||
/** ユーザー情報を取得 */ | ||
get: operations["getUsers"]; | ||
}; | ||
"/scores/ranking": { | ||
/** スコアランキングを取得 */ | ||
get: operations["getScoresRanking"]; | ||
}; | ||
"/scores": { | ||
/** スコアを登録 */ | ||
post: operations["registerScore"]; | ||
}; | ||
} | ||
|
||
export type webhooks = Record<string, never>; | ||
|
||
export interface components { | ||
schemas: { | ||
User: { | ||
id?: string; | ||
student_number?: string; | ||
handle_name?: string; | ||
/** Format: date-time */ | ||
created_at?: string; | ||
/** Format: date-time */ | ||
updated_at?: string; | ||
}; | ||
Score: { | ||
id?: string; | ||
keystrokes?: number; | ||
/** Format: float */ | ||
accuracy?: number; | ||
/** Format: date-time */ | ||
created_at?: string; | ||
user?: components["schemas"]["User"]; | ||
}; | ||
ScoreRanking: { | ||
rank?: number; | ||
score?: components["schemas"]["Score"]; | ||
}; | ||
}; | ||
responses: never; | ||
parameters: never; | ||
requestBodies: never; | ||
headers: never; | ||
pathItems: never; | ||
} | ||
|
||
export type $defs = Record<string, never>; | ||
|
||
export type external = Record<string, never>; | ||
|
||
export interface operations { | ||
|
||
/** サーバーの状態を取得 */ | ||
healthcheck: { | ||
responses: { | ||
/** @description サーバーが正常に稼働しています。 */ | ||
200: { | ||
content: never; | ||
}; | ||
}; | ||
}; | ||
/** ユーザー情報を取得 */ | ||
getUsers: { | ||
parameters: { | ||
query: { | ||
/** @description 学生番号 */ | ||
student_number: string; | ||
}; | ||
}; | ||
responses: { | ||
/** @description ユーザー情報を返します。 */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["User"]; | ||
}; | ||
}; | ||
/** @description ユーザーが見つかりません。 */ | ||
404: { | ||
content: never; | ||
}; | ||
}; | ||
}; | ||
/** スコアランキングを取得 */ | ||
getScoresRanking: { | ||
parameters: { | ||
query?: { | ||
/** @description ソート対象のカラム */ | ||
sort_by?: "keystrokes" | "accuracy"; | ||
/** @description ランキングの開始位置(x位 | x>0) */ | ||
start?: number; | ||
/** @description ランキングの取得件数 */ | ||
limit?: number; | ||
}; | ||
}; | ||
responses: { | ||
/** @description スコアランキングを返します。 */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["ScoreRanking"][]; | ||
}; | ||
}; | ||
/** @description 不正なリクエストです。 */ | ||
400: { | ||
content: never; | ||
}; | ||
}; | ||
}; | ||
/** スコアを登録 */ | ||
registerScore: { | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** | ||
* Format: uuid | ||
* @description ユーザーID | ||
*/ | ||
user_id: string; | ||
/** @description キーストローク数 */ | ||
keystrokes: number; | ||
/** | ||
* Format: float | ||
* @description 正確性(ミスタイプ数/ストローク数) | ||
*/ | ||
accuracy: number; | ||
}; | ||
}; | ||
}; | ||
responses: { | ||
/** @description スコアが正常に登録されました。 */ | ||
201: { | ||
content: never; | ||
}; | ||
/** @description 不正なリクエストです。 */ | ||
400: { | ||
content: never; | ||
}; | ||
}; | ||
}; | ||
} |
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