rajnandan1 / kener

Kener is a Modern Self hosted Status Page, batteries included
https://kener.ing/
MIT License
2.5k stars 104 forks source link

API - How to search incident? #102

Open Ampsyy opened 2 months ago

Ampsyy commented 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" }

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

Screenshot 2024-08-29 at 16 35 04

API request sent from postman, curl request above.