EqualifyEverything / equalify

A web accessibility platform, managing issues by integrating with A11Y services.
https://equalify.app
Other
117 stars 21 forks source link

Adding a report via API returns error that no filters are present, despite having filters present #394

Closed bbertucc closed 3 months ago

bbertucc commented 3 months ago

request: {{api_url}}/add/reports

body:

{
    "reportName": "Berkeley Sample",
    "reportFilters": {
        "properties": [
            {
                "value": "55ed22e1-bde3-43dd-9928-5135ad0743f4",
                "label": "Updated Property Name",
                "type": "properties"
            }
        ]
    }
}

response:

{
    "status": "error",
    "message": "Report filters are required."
}
heythisischris commented 3 months ago

The attribute was updated from reportFilters to filters, I updated the Postman collection to reflect the change.

POST /add/reports Input

{
    "reportName": "New Report 1",
    "filters": [
        {
            "label": "Test Property",
            "value": "25b18830-9a55-47ac-b374-5622a72e111e",
            "type": "property"
        }
    ]
}

Output

{
    "status": "success",
    "message": "Report added successfully",
    "result": "841776224c654e08a9672ee937f58af7"
}
bbertucc commented 3 months ago

Tested. Works.