-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from GiganticMinecraft/feat/questionOperations
フォームの質問を追加・削除するためのエントリポイントを定義
- Loading branch information
Showing
4 changed files
with
67 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
post: | ||
operationId: createQuestion | ||
summary: 質問の新規作成 | ||
description: | | ||
質問を新しく作ります。 | ||
requestBody: | ||
description: 作成する質問の内容 | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../types/forms/definitions.yml#/definitions/questions" | ||
responses: | ||
"201": | ||
description: 質問の作成に成功 | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../types/forms/definitions.yml#/definitions/id" | ||
"400": | ||
$ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" | ||
"401": | ||
$ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" | ||
"403": | ||
$ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" | ||
"500": | ||
$ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" | ||
|
||
delete: | ||
operationId: deleteQuestion | ||
summary: 質問を削除する | ||
description: 作成済みの質問を削除する | ||
requestBody: | ||
description: 削除するフォーム質問ID | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../types/forms/definitions.yml#/definitions/question_id" | ||
responses: | ||
"200": | ||
description: "質問の削除に成功" | ||
"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" |
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