Skip to content

Commit

Permalink
feat: 質問についているラベルを置き換えるエンドポイントの定義を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Aug 23, 2024
1 parent bb8c47b commit 01c399a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/endpoints/forms.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,21 @@ namespace Forms {
@statusCode statusCode: 400 | 401 | 403 | 404 | 500;
@body body: Error;
};

@route("/labels")
@put
@summary("回答についているラベルの置き換え")
op replace(
@path answerId: uint32,
@body body: {
labels: Label[];
},
): {
@statusCode statusCode: 200;
} | {
@statusCode statusCode: 400 | 401 | 403 | 500;
@body body: Error;
};
}

@route("/comment")
Expand Down

0 comments on commit 01c399a

Please sign in to comment.