TECH. Добавлены http файлы для работы с пользователями и авторизацией
This commit is contained in:
59
http/store.http
Normal file
59
http/store.http
Normal 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
|
||||
Reference in New Issue
Block a user