| Step Description | Expected result |
|---|---|
| Request the endpoint /admin-dev/new-api/hooks/1 without access token | * Receive a response where the HTTP Code is 401 |
| Request the endpoint /admin-dev/new-api/hooks/1 with an invalid access token | * Receive a response where the HTTP Code is 401 * Receive a response where the Header ‘WWW-Authenticate: Bearer’ |
| Request the endpoint /admin-dev/new-api/hooks/1 with a valid but expired access token | * Receive a response where the HTTP Code is 401 * Receive a response where the Header ‘WWW-Authenticate: Bearer’ |
| Request the endpoint /admin-dev/new-api/hooks/1 with a valid access token | * Receive a response where the HTTP Code is 200 * Receive a response in JSON * Receive a response which have keys ** enabled ** hookId |