Files
storage-service/http/users.http

30 lines
1.1 KiB
HTTP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Список всех пользователей
GET http://api.auth.vigdorov.ru/users HTTP/1.1
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6InN0cmluZyIsImFnZW50IjoidnNjb2RlLXJlc3RjbGllbnQiLCJpYXQiOjE1OTY5MDIxNjAsImV4cCI6MTU5NjkwMjQ2MH0.wYty3CwisCckk3wUbZ4FT8WmQJlgowzf5csbxPdPqWU
### Получить одного пользователя
GET http://api.auth.vigdorov.ru/users/search/vigdorov2 HTTP/1.1
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6InN0cmluZyIsImFnZW50IjoidnNjb2RlLXJlc3RjbGllbnQiLCJpYXQiOjE1OTY5MDIxNjAsImV4cCI6MTU5NjkwMjQ2MH0.wYty3CwisCckk3wUbZ4FT8WmQJlgowzf5csbxPdPqWU
### Создать пользователя
POST http://api.auth.vigdorov.ru/users HTTP/1.1
content-type: application/json
{
"login": "string",
"avatar": "string",
"password": "string"
}
### Обновить данные пользователя
PUT http://api.auth.vigdorov.ru/users HTTP/1.1
content-type: application/json
{
"login": "string",
"avatar": "string"
}
### Удалить пользователя
DELETE http://api.auth.vigdorov.ru/users/string HTTP/1.1