Skip to main content

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​

KeyValueDescription
AuthorizationBearer {PrincipalToken}optional
Accepttext/htmlTo get the response in HTML format (default)

Parameters​

ParameterTypeDescription
ownerstringname of a user who owns the application
appstringname of an application

Result​

CodeDescriptionBody
200OKapp workspaces hierarchy in the selected format
400Bad Requesterror 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❓

Footnotes​

  1. [~server.apiv2.schemas/cmp.schemasHandler~impl] ↩

  2. [~server.apiv2.schemas/it.TestQueryProcessor2_Schemas~impl] ↩