TECH. Добавлены http файлы для работы с пользователями и авторизацией

This commit is contained in:
2020-07-26 23:20:50 +03:00
parent f0013d1514
commit e3568e793b
3 changed files with 53 additions and 0 deletions

59
http/store.http Normal file
View File

@ -0,0 +1,59 @@
// Запрос всех пар ключей апи
GET http://vigdorov.ru:4001/store HTTP/1.1
Api-Name: store-service-test
###
// Запрос апи по ключу
GET http://vigdorov.ru:4001/store/testApi HTTP/1.1
Api-Name: store-service-test
###
// Создание нового апи
POST http://vigdorov.ru:4001/store HTTP/1.1
content-type: application/json
Api-Name: store-service-test
{
"key": "testApi",
"value": {
"name": "ivan",
"age": 16
},
"description": "тестовое апи",
"service_name": "test-api",
"author": "vigdorov"
}
###
// Обновление существующего апи
PUT http://vigdorov.ru:4001/store HTTP/1.1
content-type: application/json
Api-Name: store-service-test
{
"key": "testApigg",
"value": {
"name": "ivan23",
"age": 22
},
"description": "тестовое апи",
"service_name": "test-api",
"author": "vigdorov23422"
}
###
// Удаление апи
DELETE http://vigdorov.ru:4001/store/testApi HTTP/1.1
Api-Name: store-service-test
###
GET http://vigdorov.ru:4001/logs/server HTTP/1.1
###
GET http://vigdorov.ru:4001/logs/client HTTP/1.1
###
DELETE http://vigdorov.ru:4001/logs/server HTTP/1.1
###
DELETE http://vigdorov.ru:4001/logs/client HTTP/1.1