Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: questionsを置き換える定義を追加する #136

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: サーバーエラー