From adad324d279b9de2abba1627fe59cc5074745d03 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Fri, 16 Aug 2024 22:58:37 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=A9=E3=83=99=E3=83=AB=E3=81=AE?= =?UTF-8?q?=E4=B8=80=E8=A6=A7=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=81=9F=E3=82=81=E3=81=AE=E3=82=A8=E3=83=B3=E3=83=89=E3=83=9D?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=88=E3=82=92=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endpoints/forms.tsp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/endpoints/forms.tsp b/src/endpoints/forms.tsp index ce1bf22..616732a 100644 --- a/src/endpoints/forms.tsp +++ b/src/endpoints/forms.tsp @@ -271,6 +271,16 @@ namespace Forms { @body body: Error; }; + @get + @summary("フォームの回答につけられるラベル一覧を取得する") + op list(): { + @statusCode statusCode: 200; + @body body: Label[]; + } | { + @statusCode statusCode: 400 | 401 | 403 | 500; + @body body: Error; + }; + @delete @summary("フォームの回答につけられるラベルを削除する") op deleteLabel(@path label_id: uint32): { @@ -341,6 +351,16 @@ namespace Forms { @body body: Error; }; + @get + @summary("フォームにつけられるラベル一覧を取得する") + op list(): { + @statusCode statusCode: 200; + @body body: Label[]; + } | { + @statusCode statusCode: 400 | 401 | 403 | 500; + @body body: Error; + }; + @delete @summary("フォームにつけられるラベルを削除する") op delete(@path form_label_id: uint32): {