Skip to content
Snippets Groups Projects
Commit 68e678fa authored by Jan Hudec's avatar Jan Hudec
Browse files

feat: openapi specification wip

parent 2024d35d
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,113 @@ paths:
description: Invalid phone number or email
content: {}
/staff/login:
post:
tags:
- staff
summary: Log in staff member
/staff/add:
post:
tags:
- staff
summary: Create new staff account
/staff/{staffId}:
delete:
tags:
- staff
summary: Delete staff account
/orders:
get:
tags:
- orders
summary: Get order
post:
tags:
- orders
summary: Create order
/orders/open:
get:
tags:
- orders
summary: Get open orders
/orders/{ordersId}/close:
patch:
tags:
- orders
summary: Close given order
/menus:
get:
tags:
- menus
summary: Get menu
post:
tags:
- menus
summary: Create menu
/menus/{menusId}:
post:
tags:
- menus
summary: Get menu by id
delete:
tags:
- menus
summary: Delete menu
/menus/{menusId}/meals/add:
patch:
tags:
- menus
summary: Add meal to menu
/menus/{menusId}/meals/remove:
patch:
tags:
- menus
summary: Remove meal from menu
/meals:
get:
tags:
- meals
summary: Get meal
post:
tags:
- meals
summary: Create meal
/meals/{mealsId}:
get:
tags:
- meals
summary: Get meal by id
patch:
tags:
- meals
summary: Update meal
delete:
tags:
- meals
summary: Delete meal
/addresses:
get:
tags:
- addresses
summary: Get address
post:
tags:
- addresses
summary: Create address
patch:
tags:
- addresses
summary: Update address
delete:
tags:
- addresses
summary: Delete address
components:
schemas:
User:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment