Skip to content

Commit

Permalink
Merge pull request #136 from GiganticMinecraft/addPutQuestionsDefinition
Browse files Browse the repository at this point in the history
feat: questionsを置き換える定義を追加する
  • Loading branch information
rito528 authored May 8, 2024
2 parents c1fdd5a + 12f2d8d commit 5f16669
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions schema/paths/forms/questions/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,30 @@ delete:
description: question_idが見つからなかった
"500":
description: サーバーエラー

put:
tags:
- forms
operationId: updateQuestion
summary: 質問の値を更新する
description: 指定したフォームの質問を上書きする
requestBody:
description: 更新するフォーム質問IDと更新内容
required: true
content:
application/json:
schema:
$ref: "../../../types/forms/definitions.yml#/definitions/questions"
responses:
"200":
description: 質問編集成功
"400":
description: リクエストの構文が間違っている
"401":
description: 認証されていない
"403":
description: 権限が不足している
"404":
description: 質問IDが見つからなかった
"500":
description: サーバーエラー

0 comments on commit 5f16669

Please sign in to comment.