Create a new user
Create a new user.
- application/json
Request Body required
User data
- email string required
- password string required
Possible values:
>= 8 characters
and<= 30 characters
- username string required
Possible values:
non-empty
and<= 20 characters
Responses
- 201
- 400
- 404
- 413
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
- admin boolean
- bio string
- comments_count integer
- confirmed boolean
- email string
- followers string[]
- followers_count integer
- following string[]
- following_count integer
- has_avatar boolean
- last_seen integer
- likes string[]
- likes_count integer
- location string
- member_since integer
- name string
- password string
- submissions_count integer
- type string
- url string
- username string
{
"admin": true,
"bio": "string",
"comments_count": 0,
"confirmed": true,
"email": "string",
"followers": [
"string"
],
"followers_count": 0,
"following": [
"string"
],
"following_count": 0,
"has_avatar": true,
"last_seen": 0,
"likes": [
"string"
],
"likes_count": 0,
"location": "string",
"member_since": 0,
"name": "string",
"password": "string",
"submissions_count": 0,
"type": "string",
"url": "string",
"username": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Request Entity Too Large
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Loading...