Skip to content

Commit

Permalink
/users/me/responses/{questionnaireID}に対応するAPIを作成
Browse files Browse the repository at this point in the history
  • Loading branch information
reiroop committed Dec 10, 2023
1 parent e501f7e commit 834f683
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ security:
tags:
- name: questionnaire
- name: response
paths: #TODO: tagの整理
paths:
/questionnaires: # TODO: 取得個数可変でもいいかも
get:
operationId: getQuestionnaires
Expand Down Expand Up @@ -129,6 +129,8 @@ paths: #TODO: tagの整理
description: アンケートの全ての回答を取得します。アンケートが匿名回答の場合、取得できません。
parameters:
- $ref: "#/components/parameters/questionnaireIDInPath"
- $ref: "#/components/parameters/responseSortInQuery"
- $ref: "#/components/parameters/isMyResponseInQuery"
responses:
"200":
description: 正常に取得できました。
Expand Down Expand Up @@ -269,7 +271,7 @@ paths: #TODO: tagの整理
- response
description: 自分のすべての回答のリストを取得します。
parameters:
- $ref: "#/components/parameters/sortInQuery"
- $ref: "#/components/parameters/responseSortInQuery"
responses:
"200":
description: 正常に取得できました。回答の配列を返します。
Expand Down Expand Up @@ -333,6 +335,13 @@ components:
自分が管理者になっていないもののみ取得 (true), 管理者になっているものも含めてすべて取得 (false)。デフォルトはfalse。
schema:
type: boolean
isMyResponseInQuery:
name: isMyResponse
in: query
description: |
自分の回答のみ取得 (true), 自分の回答以外も含めてすべて取得 (false)。デフォルトはfalse。
schema:
type: boolean
questionnaireIDInPath:
name: questionnaireID
in: path
Expand Down

0 comments on commit 834f683

Please sign in to comment.