From 5d1aec238e5dd5af6f15727f04dda7426caa17b0 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sun, 4 Aug 2024 00:21:43 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=AA=E3=82=BD=E3=83=BC=E3=82=B9?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4=E3=81=99=E3=82=8B=E3=82=A8=E3=83=B3?= =?UTF-8?q?=E3=83=89=E3=83=9D=E3=82=A4=E3=83=B3=E3=83=88=E3=81=AE=E3=83=AA?= =?UTF-8?q?=E3=82=BD=E3=83=BC=E3=82=B9=E7=89=B9=E5=AE=9A=E3=82=92=E3=83=91?= =?UTF-8?q?=E3=83=A9=E3=83=A1=E3=83=BC=E3=82=BF=E3=81=A7=E8=A1=8C=E3=81=86?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endpoints/forms.tsp | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/src/endpoints/forms.tsp b/src/endpoints/forms.tsp index 8d392a0..ce1bf22 100644 --- a/src/endpoints/forms.tsp +++ b/src/endpoints/forms.tsp @@ -170,11 +170,7 @@ namespace Forms { @delete @summary("質問の削除") - op delete( - @body body: { - question_id: uint32; - }, - ): { + op delete(@path question_id: uint32): { @statusCode statusCode: 200; } | { @statusCode statusCode: 400 | 401 | 403 | 404 | 500; @@ -277,11 +273,7 @@ namespace Forms { @delete @summary("フォームの回答につけられるラベルを削除する") - op deleteLabel( - @body body: { - id: uint32; - }, - ): { + op deleteLabel(@path label_id: uint32): { @statusCode statusCode: 200; } | { @statusCode statusCode: 400 | 401 | 403 | 404 | 500; @@ -310,11 +302,7 @@ namespace Forms { @delete @summary("回答のコメントを削除する") - op delete( - @body body: { - comment_id: uint32; - }, - ): { + op delete(@path comment_id: uint32): { @statusCode statusCode: 200; } | { @statusCode statusCode: 400 | 401 | 403 | 404 | 500; @@ -355,11 +343,7 @@ namespace Forms { @delete @summary("フォームにつけられるラベルを削除する") - op delete( - @body body: { - id: uint32; - }, - ): { + op delete(@path form_label_id: uint32): { @statusCode statusCode: 200; } | { @statusCode statusCode: 400 | 401 | 403 | 404 | 500;