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
84 changes: 84 additions & 0 deletions generated/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions openapi/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