Skip to content

Commit

Permalink
📝 足りなかったAPIの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
pikachu0310 committed Jan 30, 2024
1 parent fe5b7fa commit faaa371
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,46 @@ paths:
description: OK

/games:
get:
summary: ゲームのリストを取得 GET /games?termId=X&eventId=X&userId=X&include=unpublished
operationId: getGames
tags:
- games
parameters:
- in: query
name: termId
schema:
type: string
format: uuid
description: タームID
- in: query
name: eventId
schema:
type: string
format: uuid
description: イベントID
- in: query
name: userId
schema:
type: string
format: uuid
description: ユーザーID
- in: query
name: include
schema:
type: string
description: 未公開のゲームを含むかどうか
responses:
'200':
description: 成功 - ゲームリスト取得
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Game'
'404':
description: Not Found
post:
summary: ゲームを登録
operationId: postGame
Expand Down Expand Up @@ -219,6 +259,25 @@ paths:
description: Bad Request
'404':
description: Not Found
/terms/{termId}/games:
get:
summary: タームに登録されているゲームのリストを取得
operationId: getTermGames
tags:
- terms
parameters:
- $ref: '#/components/parameters/termIdInPath'
responses:
'200':
description: 成功 - タームに登録されているゲームのリスト取得
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Game'
'404':
description: Not Found

/events:
post:
Expand Down

0 comments on commit faaa371

Please sign in to comment.