Skip to content

Commit

Permalink
Merge pull request #154 from GiganticMinecraft/addGetLabelsDefinition
Browse files Browse the repository at this point in the history
feat: ラベルの一覧を表示するためのエンドポイントを定義
  • Loading branch information
rito528 authored Aug 16, 2024
2 parents 4a56be1 + adad324 commit 69c6b46
Showing 1 changed file with 20 additions and 0 deletions.
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

0 comments on commit 69c6b46

Please sign in to comment.