Skip to content

Commit

Permalink
Merge pull request #146 from GiganticMinecraft/fix/updateAnswerMetaBody
Browse files Browse the repository at this point in the history
chore: 回答のメタデータを更新するエンドポイントのデータ受取をクエリではなくbodyのjsonで受け取るように
  • Loading branch information
rito528 authored Jun 23, 2024
2 parents 118cf5b + 60a2b14 commit a00696e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion endpoints/forms.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ namespace Forms {
*/
@patch
@summary("回答のメタデータを編集する")
op update(@path answerId: uint32, @query title?: string): {
op update(
@path answerId: uint32,
@body body: {
title?: string;
},
): {
@statusCode statusCode: 200;
} | {
@statusCode statusCode: 400 | 401 | 403 | 404 | 500;
Expand Down

0 comments on commit a00696e

Please sign in to comment.