Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PB138 - Project - Restaurant Corona
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrej Bátora
PB138 - Project - Restaurant Corona
Commits
68e678fa
There was an error fetching the commit references. Please try again later.
Commit
68e678fa
authored
2 years ago
by
Jan Hudec
Browse files
Options
Downloads
Patches
Plain Diff
feat: openapi specification wip
parent
2024d35d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/swagger.yaml
+107
-0
107 additions, 0 deletions
api/swagger.yaml
with
107 additions
and
0 deletions
api/swagger.yaml
+
107
−
0
View file @
68e678fa
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment