GET
/v2/hrm
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON[ { "id": 26, "name": "Основные доступы", "password": "Th1sIs@T3stP@ssw0rd!" }, { "id": 27, "name": "Доступы к Проекту Альфа", "password": "An0ther$ecurePa$$w0rd" } ]
POST
/v2/secrets
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
name | Название секрета |
password | Содержание секрета |
Response
JSON{ status: "OK", msg: "Created" }
POST
/v2/secrets/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
name | Название секрета |
password | Содержание секрета |
Response
JSON{ status: "OK", msg: "Updated" }
DELETE
/v2/secrets/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON{ status: "OK" }