59 lines
1.3 KiB
HTTP
59 lines
1.3 KiB
HTTP
// Запрос всех пар ключей апи
|
||
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 |