From 01c399a69ab4b2d1057c5e15d40c65db3ee670a3 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:03:26 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B3=AA=E5=95=8F=E3=81=AB=E3=81=A4?= =?UTF-8?q?=E3=81=84=E3=81=A6=E3=81=84=E3=82=8B=E3=83=A9=E3=83=99=E3=83=AB?= =?UTF-8?q?=E3=82=92=E7=BD=AE=E3=81=8D=E6=8F=9B=E3=81=88=E3=82=8B=E3=82=A8?= =?UTF-8?q?=E3=83=B3=E3=83=89=E3=83=9D=E3=82=A4=E3=83=B3=E3=83=88=E3=81=AE?= =?UTF-8?q?=E5=AE=9A=E7=BE=A9=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endpoints/forms.tsp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/endpoints/forms.tsp b/src/endpoints/forms.tsp index 4a08d6e..a0fc063 100644 --- a/src/endpoints/forms.tsp +++ b/src/endpoints/forms.tsp @@ -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")