Skip to content

Commit

Permalink
docs: forbiddenをレスポンスとして返すのを記載
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Oct 15, 2023
1 parent 4fe6767 commit 58dbf11
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schema/paths/forms/[formId]/answers/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ get:
$ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../../../errors/errorResponses.yml#/components/responses/forbidden"
"404":
$ref: "../../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
Expand Down
4 changes: 4 additions & 0 deletions schema/paths/forms/[formId]/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ delete:
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../../errors/errorResponses.yml#/components/responses/forbidden"
"404":
$ref: "../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
Expand Down Expand Up @@ -62,6 +64,8 @@ patch:
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../../errors/errorResponses.yml#/components/responses/forbidden"
"404":
$ref: "../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
Expand Down
4 changes: 4 additions & 0 deletions schema/paths/forms/answers/comment/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ delete:
$ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../../../errors/errorResponses.yml#/components/responses/forbidden"
"404":
$ref: "../../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
Expand All @@ -59,6 +61,8 @@ patch:
$ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../../../errors/errorResponses.yml#/components/responses/forbidden"
"404":
$ref: "../../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
Expand Down
2 changes: 2 additions & 0 deletions schema/paths/forms/answers/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ get:
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../../errors/errorResponses.yml#/components/responses/forbidden"
"404":
$ref: "../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
Expand Down
4 changes: 4 additions & 0 deletions schema/paths/forms/labels/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ post:
description: "ラベルの作成に成功"
"400":
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"403":
$ref: "../../../errors/errorResponses.yml#/components/responses/forbidden"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"500":
Expand All @@ -57,6 +59,8 @@ delete:
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../../errors/errorResponses.yml#/components/responses/forbidden"
"404":
$ref: "../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
Expand Down
2 changes: 2 additions & 0 deletions schema/paths/forms/questions/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ delete:
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError"
"401":
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized"
"403":
$ref: "../../../errors/errorResponses.yml#/components/responses/forbidden"
"404":
$ref: "../../../errors/errorResponses.yml#/components/responses/notFound"
"500":
Expand Down

0 comments on commit 58dbf11

Please sign in to comment.