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

feat: openapi specification for users routes created

parent 1774ed26
No related branches found
No related tags found
No related merge requests found
......@@ -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: {}
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