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
723daedd
There was an error fetching the commit references. Please try again later.
Commit
723daedd
authored
2 years ago
by
Jan Hudec
Browse files
Options
Downloads
Patches
Plain Diff
feat: openapi specification for users routes created
parent
1774ed26
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
+104
-0
104 additions, 0 deletions
api/swagger.yaml
with
104 additions
and
0 deletions
api/swagger.yaml
+
104
−
0
View file @
723daedd
...
...
@@ -7,3 +7,107 @@ info:
servers
:
-
url
:
http://localhost:5432/
tags
:
-
name
:
users
description
:
Everything about users
-
name
:
staff
description
:
Everything about staff
-
name
:
addresses
description
:
Everything about addresses
-
name
:
meals
description
:
Everything about meals
-
name
:
menus
description
:
Everything about menus
-
name
:
orders
description
:
Everything about orders
paths
:
/users/me
:
get
:
tags
:
-
users
summary
:
Get informations about current user
responses
:
200
:
description
:
success
content
:
{}
401
:
description
:
Missing token
content
:
{}
403
:
description
:
Forbidden
content
:
{}
/users/me/changePassword
:
patch
:
tags
:
-
users
summary
:
Change user's password
responses
:
200
:
description
:
success
content
:
{}
400
:
description
:
Missing information
content
:
{}
401
:
description
:
Missing token
content
:
{}
403
:
description
:
Forbidden
content
:
{}
500
:
description
:
error
content
:
{}
/users/signup
:
post
:
tags
:
-
users
summary
:
Create new user
responses
:
201
:
description
:
success
content
:
{}
400
:
description
:
Missing information
content
:
{}
500
:
description
:
error
content
:
{}
/users/login
:
post
:
tags
:
-
users
summary
:
Log in user
responses
:
200
:
description
:
success
content
:
{}
400
:
description
:
Wrong password
content
:
{}
/users
:
delete
:
tags
:
-
users
summary
:
Delete user
responses
:
200
:
description
:
success
content
:
{}
401
:
description
:
Missing token
content
:
{}
403
:
description
:
Forbidden
content
:
{}
patch
:
tags
:
-
users
summary
:
Update user info
responses
:
200
:
description
:
success
content
:
{}
400
:
description
:
Invalid phone number or email
content
:
{}
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