HM-113. Добавление хуков для чтения/редактирования хранилищ (#1)

This commit is contained in:
Nikolay
2020-08-29 23:44:11 +03:00
committed by GitHub
parent af8d15cd12
commit af7f4f950b
10 changed files with 387 additions and 13 deletions

19
http/hooks.http Normal file
View File

@ -0,0 +1,19 @@
GET http://localhost:4001/hooks?key=rgfdfff HTTP/1.1
###
POST http://localhost:4001/hooks?key=rgfdfff HTTP/1.1
content-type: application/json
{
"holder": "john",
"description": "test token",
"author": "john smith",
"token": "sdf6sdfhs99-sdf",
"rights": {
"write": true,
"read": true
}
}
###
DELETE http://localhost:4001/hooks?key=rgfdfff&id=5f4a0347c3a82d5a571f058a HTTP/1.1

View File

@ -6,6 +6,9 @@ Api-Name: store-service-test
GET http://localhost:4001/store/testApi-4345345345 HTTP/1.1
Api-Name: store-service-test
###
GET http://localhost:4001/store/rgfdfff?hook=sdf6sdfhs99-sdf HTTP/1.1
###
POST http://localhost:4001/store HTTP/1.1
content-type: application/json