Skip to content
Draft
Show file tree
Hide file tree
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
46 changes: 46 additions & 0 deletions openapi/external/funch_api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,29 @@ paths:
- menuItems
tags:
- MenuItems
post:
operationId: MenuItemsV1_create
parameters: []
responses:
'201':
description: The request has succeeded and a new resource has been created as a result.
content:
application/json:
schema:
type: object
properties:
menuItem:
$ref: '#/components/schemas/MenuItem'
required:
- menuItem
tags:
- MenuItems
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MenuItemRequest'
components:
schemas:
Category:
Expand Down Expand Up @@ -69,6 +92,29 @@ components:
type: array
items:
$ref: '#/components/schemas/Price'
MenuItemRequest:
type: object
required:
- date
- name
- imageUrl
- category
- prices
properties:
date:
type: string
format: date
name:
type: string
imageUrl:
type: string
format: uri
category:
$ref: '#/components/schemas/Category'
prices:
type: array
items:
$ref: '#/components/schemas/Price'
Price:
type: object
required:
Expand Down
50 changes: 50 additions & 0 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,33 @@ paths:
description: Access is unauthorized.
tags:
- MenuItems
post:
operationId: MenuItemsV1_create
description: メニューを作成する
parameters: []
responses:
'201':
description: 作成されたメニュー
content:
application/json:
schema:
type: object
properties:
menuItem:
$ref: '#/components/schemas/FunchService.MenuItem'
required:
- menuItem
'401':
description: Access is unauthorized.
tags:
- MenuItems
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/FunchService.MenuItemRequest'
description: 作成するメニューの情報
/v1/notifications:
get:
operationId: NotificationV1_list
Expand Down Expand Up @@ -2243,6 +2270,29 @@ components:
type: array
items:
$ref: '#/components/schemas/FunchService.Price'
FunchService.MenuItemRequest:
type: object
required:
- date
- name
- imageUrl
- category
- prices
properties:
date:
type: string
format: date
name:
type: string
imageUrl:
type: string
format: uri
category:
$ref: '#/components/schemas/FunchService.Category'
prices:
type: array
items:
$ref: '#/components/schemas/FunchService.Price'
FunchService.Price:
type: object
required:
Expand Down