List app workspaces
Motivation
List app workspaces, using API
Functional Design
GET /api/v2/apps/{owner}/{app}/schemas
Returns the hierarchy of non-abstract workspaces in the application with WSProfile as a root.
If Authorization header is provided, and user has sys.Developer role, the hierarchy of all workspaces in the application is returned.
Otherwise, only workspaces returned which have resources available to published roles.
Headers
| Key | Value | Description |
|---|---|---|
| Authorization | Bearer {PrincipalToken} | optional |
| Accept | text/html | To get the response in HTML format (default) |
Parameters
| Parameter | Type | Description |
|---|---|---|
| owner | string | name of a user who owns the application |
| app | string | name of an application |
Result
| Code | Description | Body |
|---|---|---|
| 200 | OK | app workspaces hierarchy in the selected format |
| 400 | Bad Request | error object |
See Also
Technical design
Components
pkg/processors/query2
IApiPathHandler implementation for handling ApiPath_Schemas
~cmp.schemasHandler~uncvrd1❓
newQueryProcessorPipeline: provide API handler for ApiPath_Schemas
- `
cmp.provideSchemasHandler
pkg/sys/it
- integration test
~it.TestQueryProcessor2_Schemas~uncvrd2❓