HM-111. Автор api присваивается исходя из токена и наличия метки у пользователя is_admin

This commit is contained in:
vigdorov
2020-08-08 19:21:05 +03:00
parent b1ffc9a8a5
commit 64d81e9894
6 changed files with 152 additions and 17 deletions

View File

@ -10,9 +10,10 @@ Api-Name: store-service-test
POST http://localhost:4001/store HTTP/1.1
content-type: application/json
Api-Name: store-service-test
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6InN0cmluZyIsImFnZW50IjoidnNjb2RlLXJlc3RjbGllbnQiLCJpYXQiOjE1OTY5MDM0NTQsImV4cCI6MTU5NjkwMzc1NH0.Uos0Ei9Fes1euZ72uh_6E9ixG1orBu79bFYjzzmWRR8
{
"key": "teFDfd4_fd-g53",
"key": "testAp",
"value": {
},
@ -37,7 +38,7 @@ Api-Name: store-service-test
}
###
DELETE http://localhost:4001/store/testApi-433 HTTP/1.1
DELETE http://localhost:4001/store/testAp HTTP/1.1
Api-Name: store-service-test
###