Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: リソースを削除するエンドポイントのリソース特定をパスから行うように #153

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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