POST /auth
Name | Type | Description |
---|---|---|
Authorization | String | Basic authorization with email and password. |
POST /auth/apple
Name | Type | Description |
---|---|---|
access_token | String | Apple user accessToken. |
POST /auth/facebook
Name | Type | Description |
---|---|---|
access_token | String | Facebook user accessToken. |
POST /auth/github
Name | Type | Description |
---|---|---|
access_token | String | Github user accessToken. |
POST /auth/google
Name | Type | Description |
---|---|---|
access_token | String | Google user accessToken. |
POST /auth/vk
Name | Type | Description |
---|---|---|
access_token | String | Vk user accessToken. |
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. |
DELETE /users/:id
Name | Type | Description |
---|---|---|
access_token | String | User access_token. |
GET /users/me
Name | Type | Description |
---|---|---|
access_token | String | User access_token. |
GET /users/:id
GET /users
Name | Type | Description |
---|---|---|
access_token | String | User access_token. |
q | String | optional Query to search. |
page | Number | optional Page number. |
limit | Number | optional Amount of returned items. |
sort | String[] | optional Order of returned items. |
fields | String[] | optional Fields to be returned. |
PUT /users/:id/password
Name | Type | Description |
---|---|---|
Authorization | String | Basic authorization with email and password. |
Name | Type | Description |
---|---|---|
password | String | User's new password. |
PUT /users/:id
Name | Type | Description |
---|---|---|
access_token | String | User access_token. |
name | String | optional User's name. |
picture | String | optional User's picture. |