Разделение методов создания и обновления элементов, добавление полей author, description, service_name. Исправление бага при котором не удалялось апи. Удаление из ответа лишних полей __v и _id

This commit is contained in:
vigdorov
2020-07-10 15:55:10 +03:00
parent 2a671f30d0
commit 89cf9d0c84
6 changed files with 148 additions and 59 deletions

View File

@ -6,15 +6,34 @@ GET http://localhost:4001/store/testApi HTTP/1.1
###
POST http://vigdorov.ru:4001/store HTTP/1.1
POST http://localhost:4001/store HTTP/1.1
content-type: application/json
{
"key": "testApi",
"value": {
"name": "ivan",
"age": 15
}
"age": 16
},
"description": "тестовое апи",
"service_name": "test-api",
"author": "vigdorov"
}
### Update Request
PUT http://localhost:4001/store HTTP/1.1
content-type: application/json
{
"key": "testApi",
"value": {
"name": "ivan23",
"age": 22
},
"description": "тестовое апи",
"service_name": "test-api",
"author": "vigdorov23422"
}
###