Skip to content

Commit

Permalink
Merge pull request #153 from GiganticMinecraft/fix/delete-resource-en…
Browse files Browse the repository at this point in the history
…dpoints

fix: リソースを削除するエンドポイントのリソース特定をパスから行うように
  • Loading branch information
rito528 authored Aug 3, 2024
2 parents 89fd032 + 5d1aec2 commit 4a56be1
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 4a56be1

Please sign in to comment.