get https://{server}/api/v2.1/workspaces/
List all the workspaces/bases you have access to.
With the param detail, you can define if the returned list is with details (true or leave it by default) or without details (false). See the examples "with detail=false" and "with detail=true" for more information.
