Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API - How to search incident? #102

Open
Ampsyy opened this issue Aug 29, 2024 · 0 comments
Open

API - How to search incident? #102

Ampsyy opened this issue Aug 29, 2024 · 0 comments

Comments

@Ampsyy
Copy link

Ampsyy commented Aug 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant