Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
Creates a new user on database. Responses:
- 400 If invalid body.
- 400 If json fields are invalid.
- 400 If username is already in use.
- 400 If email is already in use.
- 200 If succeeded.
func DeleteHandler ¶
Deletes user from databse Responses:
- 400 If invalid id
- 404 If user not founded
- 201 If succeeded
func GetHandler ¶
Get user in database Responses:
- 400 If invalid id
- 404 If user not foud
- 200 If succeeded
func MGetHandler ¶
Get multiple users in database. Params:
- "limit" Limit of users returned. Default is 30, max is 30, min is 0.
- "offset" Offset for searching. Default is 0, min is 0.
Responses:
- 400 If invalid params.
- 200 If succeeded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.