Skip to content

Commit

Permalink
fix: リソースを削除するエンドポイントのリソース特定をパラメータで行うように
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Aug 3, 2024
1 parent 89fd032 commit 5d1aec2
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/endpoints/forms.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5d1aec2

Please sign in to comment.