HM-32. Пропатчить api под новый бекенд (#7)

This commit is contained in:
Nikolay
2020-07-11 08:48:11 +03:00
committed by GitHub
parent d3ac6c730b
commit a3748f519a
4 changed files with 110 additions and 25 deletions

42
store.http Normal file
View File

@ -0,0 +1,42 @@
// Запрос всех пар ключей апи
GET http://vigdorov.ru:4001/store HTTP/1.1
###
// Запрос апи по ключу
GET http://vigdorov.ru:4001/store/testApi HTTP/1.1
###
// Создание нового апи
POST http://vigdorov.ru:4001/store HTTP/1.1
content-type: application/json
{
"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
{
"key": "testApi",
"value": {
"name": "ivan23",
"age": 22
},
"description": "тестовое апи",
"service_name": "test-api",
"author": "vigdorov23422"
}
###
// Удаление апи
DELETE http://vigdorov.ru:4001/store/testApi HTTP/1.1