GET
/v2/notes
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON[ { "id": 1, "name": "Доступы к тестовым сервисам", "content": "user.alpha"
} ]
GET
/v2/notes/note/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON[ { "id": 1, "name": "Доступы к тестовым сервисам", "content": "user.alpha"
} ]
POST
/v2/notes
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
name | Название заметки |
content | Контент заметки (допускается HTML) |
Response
JSON{ status: "OK", msg: "Created" }
POST
/v2/notes/note/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
name | Название заметки |
content | Контент заметки (допускается HTML) |
JSON{ status: "OK" }
DELETE
/v2/notes/note/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON{ status: "OK" }