Files
storage-service-ui/http/store.http

59 lines
1.3 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://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