label-studio
label-studio copied to clipboard
Route `api/storages/azure` does not exist
Describe the bug
At least one of the API routes described in the documentation does not exist. Namely it is the command to list all storages on Azure: api/storages/azure
. Nevertheless, direct call to storage by its ID (e.g. http://localhost:8080/api/storages/azure/1
) works as expected
To Reproduce Steps to reproduce the behavior:
- Go to
http://localhost:8080/api/storages/azure
(for local deployment) - See
404 Not found
Expected behavior Response including the list of storages as described in the documentation.
Environment (please complete the following information):
- OS: Ubuntu 20.04
- Label Studio Version 1.4.1
Thank you for pointing us to this issue, we've created a ticket. This endpoint is not fully implemented.
I have got the same issue with the route api/storages/gcs
too
Also affecting api/storages/s3
. @makseq is there a recommended workaround for the time being? I need to be able to programmatically sync storage (which requires the storage ID that I'm trying to get from the missing endpoint)
Try to add project
parameter.
api/storages/s3?project=YOUR_PROJECT_ID
Thanks @triklozoid ! This indeed works as expected. I can also see it in the documentation for API in 1.5.0post0. As a closing suggestion, you might perhaps indicate that the project id is a compulsory query parameter and show it in the example (https://labelstud.io/api#operation/api_storages_azure_list).
From my point of view, the issue is resolved, thus closing it.