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

feat: ラベルの一覧を表示するためのエンドポイントを定義 #154

Merged
merged 1 commit into from
Aug 16, 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
20 changes: 20 additions & 0 deletions src/endpoints/forms.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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): {
Expand Down Expand Up @@ -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): {
Expand Down