File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -669,6 +669,16 @@ namespace AdminBFFService {
669669 Body <{
670670 menuItems : FunchService .MenuItem [];
671671 }>) | UnauthorizedResponse ;
672+
673+ /**
674+ * メニューを作成する
675+ * @ param body 作成するメニューの情報
676+ * @ returns 作成されたメニュー
677+ */
678+ @ post create (@ body body : FunchService .MenuItemRequest ): (CreatedResponse &
679+ Body <{
680+ menuItem : FunchService .MenuItem ;
681+ }>) | UnauthorizedResponse ;
672682 }
673683
674684 @ route ("/v1/facultyRooms" )
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ namespace FunchService {
88 prices : Price [];
99 }
1010
11+ model MenuItemRequest {
12+ date : plainDate ;
13+ name : string ;
14+ imageUrl : url ;
15+ category : Category ;
16+ prices : Price [];
17+ }
18+
1119 model Price {
1220 /**
1321 * サイズ
Original file line number Diff line number Diff line change @@ -30,5 +30,10 @@ namespace FunchService {
3030 Body <{
3131 menuItems : MenuItem [];
3232 }>;
33+
34+ @ post create (@ body body : MenuItemRequest ): CreatedResponse &
35+ Body <{
36+ menuItem : MenuItem ;
37+ }>;
3338 }
3439}
You can’t perform that action at this time.
0 commit comments