Skip to content

Commit

Permalink
chore: 回答のメタデータを更新するエンドポイントのデータ受取をクエリではなくbodyのjsonで受け取るように
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Jun 23, 2024
1 parent 118cf5b commit 60a2b14
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 60a2b14

Please sign in to comment.