Skip to content

Commit

Permalink
feat: 指定したフォームの質問を取得するエンドポイントの定義
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Oct 27, 2023
1 parent ce65a02 commit ba50200
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
6 changes: 4 additions & 2 deletions schema/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ paths:
$ref: "./paths/forms/index.yml"
/forms/{formId}:
$ref: "./paths/forms/[formId]/index.yml"
/forms/{formId}/questions:
$ref: "./paths/forms/[formId]/questions/index.yml"
/forms/{formId}/answers:
$ref: "./paths/forms/[formId]/answers/index.yml"
/forms/questions:
$ref: "./paths/forms/questions/index.yml"
/forms/answers:
$ref: "./paths/forms/answers/index.yml"
/forms/answers/comment:
$ref: "./paths/forms/answers/comment/index.yml"
/forms/{formId}/answers:
$ref: "./paths/forms/[formId]/answers/index.yml"
/forms/labels:
$ref: "./paths/forms/labels/index.yml"
21 changes: 21 additions & 0 deletions schema/paths/forms/[formId]/questions/index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
get:
operationId: getQuestions
summary: 質問の取得
description: 指定したフォームの質問をすべて取得します。
parameters:
- $ref: "../../../../types/forms/parameters.yml#/parameters/id"
responses:
"200":
description: 指定されたフォームの回答の取得に成功
content:
application/json:
schema:
$ref: "../../../../types/forms/definitions.yml#/definitions/questions"
"400":
$ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized"
"404":
$ref: "../../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
$ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError"

0 comments on commit ba50200

Please sign in to comment.