Encoding issue when exporting as COCO via API
Describe the bug When exporting in COCO format via API, the resulting file is not valid JSON, and something is off with the encoding where my system thinks it's a binary file. Exporting as JSON with the API works normally, and exporting as COCO in the UI works too.
I've only tried image datasets for object detection with bounding boxes, but I'm not sure that's relevant.
To Reproduce:
curl -X GET http://localhost:8080/api/projects/<project ID>/export?exportType=COCO\&download_all_tasks=true\&download_resources=false -H 'Authorization: Token <token>' --output 'annotations.json'
^ Replace the project ID and token with valid values, try to read annotations.json. It also happens without the download_all_tasks and download_resources flags
Expected behavior
COCO json saved to annotations.json
Environment (please complete the following information):
- OS: mac
- Label Studio Version v1.11.0
Figured out the response is a ZIP file. So I think the only change needed is a documentation update