POST /auth/apple
Name | Type | Description |
---|---|---|
access_token | String |
Apple user accessToken. |
Name | Type | Description |
---|---|---|
token | String |
User |
user | Object |
Current user's data. |
Name | Type | Description |
---|---|---|
401 | Invalid credentials. |
POST /auth
Name | Type | Description |
---|---|---|
Authorization | String |
Basic authorization with email and password. |
Name | Type | Description |
---|---|---|
token | String |
User |
user | Object |
Current user's data. |
Name | Type | Description |
---|---|---|
401 | Master access only or invalid credentials. |
POST /auth/facebook
Name | Type | Description |
---|---|---|
access_token | String |
Facebook user accessToken. |
Name | Type | Description |
---|---|---|
token | String |
User |
user | Object |
Current user's data. |
Name | Type | Description |
---|---|---|
401 | Invalid credentials. |
POST /auth/github
Name | Type | Description |
---|---|---|
access_token | String |
Github user accessToken. |
Name | Type | Description |
---|---|---|
token | String |
User |
user | Object |
Current user's data. |
Name | Type | Description |
---|---|---|
401 | Invalid credentials. |
POST /auth/google
Name | Type | Description |
---|---|---|
access_token | String |
Google user accessToken. |
Name | Type | Description |
---|---|---|
token | String |
User |
user | Object |
Current user's data. |
Name | Type | Description |
---|---|---|
401 | Invalid credentials. |
POST /auth/vk
Name | Type | Description |
---|---|---|
access_token | String |
Vk user accessToken. |
Name | Type | Description |
---|---|---|
token | String |
User |
user | Object |
Current user's data. |
Name | Type | Description |
---|---|---|
401 | Invalid credentials. |
POST /users
Name | Type | Description |
---|---|---|
access_token | String |
Master access_token. |
String |
User's email. |
|
password | String |
User's password. |
name | String |
optional User's name. |
picture | String |
optional User's picture. |
role | String |
optional User's role. Default value: userAllowed values: user,admin |
Name | Type | Description |
---|---|---|
user | Object |
User's data. |
Name | Type | Description |
---|---|---|
400 | Object |
Some parameters may contain invalid values. |
401 | Master access only. |
|
409 | Email already registered. |
DELETE /users/:id
Name | Type | Description |
---|---|---|
access_token | String |
User access_token. |
Name | Type | Description |
---|---|---|
204 | No Content. |
Name | Type | Description |
---|---|---|
401 | Admin access only. |
|
404 | User not found. |
GET /users/html
Name | Type | Description |
---|---|---|
access_token | String |
User access_token. |
q | String |
optional Query to search. |
page | Number |
optional Page number. Default value: 1Size range: 1..30 |
limit | Number |
optional Amount of returned items. Default value: 30Size range: 1..100 |
sort | String[] |
optional Order of returned items. Default value: -createdAt |
fields | String[] |
optional Fields to be returned. |
Name | Type | Description |
---|---|---|
users | Object[] |
List of users. |
Name | Type | Description |
---|---|---|
400 | Object |
Some parameters may contain invalid values. |
401 | Admin access only. |
GET /users/me
Name | Type | Description |
---|---|---|
access_token | String |
User access_token. |
Name | Type | Description |
---|---|---|
user | Object |
User's data. |
GET /users/:id
Name | Type | Description |
---|---|---|
user | Object |
User's data. |
Name | Type | Description |
---|---|---|
404 | User not found. |
GET /users
Name | Type | Description |
---|---|---|
access_token | String |
User access_token. |
q | String |
optional Query to search. |
page | Number |
optional Page number. Default value: 1Size range: 1..30 |
limit | Number |
optional Amount of returned items. Default value: 30Size range: 1..100 |
sort | String[] |
optional Order of returned items. Default value: -createdAt |
fields | String[] |
optional Fields to be returned. |
Name | Type | Description |
---|---|---|
users | Object[] |
List of users. |
Name | Type | Description |
---|---|---|
400 | Object |
Some parameters may contain invalid values. |
401 | Admin access only. |
PUT /users/:id/password
Name | Type | Description |
---|---|---|
Authorization | String |
Basic authorization with email and password. |
Name | Type | Description |
---|---|---|
password | String |
User's new password. |
Name | Type | Description |
---|---|---|
user | Object |
User's data. |
Name | Type | Description |
---|---|---|
400 | Object |
Some parameters may contain invalid values. |
401 | Current user access only. |
|
404 | User not found. |
PUT /users/:id
Name | Type | Description |
---|---|---|
access_token | String |
User access_token. |
name | String |
optional User's name. |
picture | String |
optional User's picture. |
Name | Type | Description |
---|---|---|
user | Object |
User's data. |
Name | Type | Description |
---|---|---|
400 | Object |
Some parameters may contain invalid values. |
401 | Current user or admin access only. |
|
404 | User not found. |