Open Ampsyy opened 2 months ago
Describe the bug Documentation advises that all params for searching an incident are optional, however when passing no params response back is: { "error": "Invalid title" }
{ "error": "Invalid title" }
To Reproduce curl --location 'http://{URL}/api/incident' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <YOUR TOKEN>' \ --data '{ "isResolved": false }'
curl --location 'http://{URL}/api/incident' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <YOUR TOKEN>' \ --data '{ "isResolved": false }'
Expected behavior Would expect the API to provide a response detailing all the incidents that are unresolved.
Screenshots
API request sent from postman, curl request above.
Describe the bug Documentation advises that all params for searching an incident are optional, however when passing no params response back is:
{ "error": "Invalid title" }
To Reproduce
curl --location 'http://{URL}/api/incident' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <YOUR TOKEN>' \ --data '{ "isResolved": false }'
Expected behavior Would expect the API to provide a response detailing all the incidents that are unresolved.
Screenshots
API request sent from postman, curl request above.