Read workspace role schema
Last updated
Was this helpful?
Last updated
Was this helpful?
Return the schema of the resources, available to specified role in a given workspace.
GET /api/v2/apps/{owner}/{app}/schemas/{pkg}.{workspace}/roles/{pkg}.{role}
If is specified, the user must have sys.Developer
role in the workspace to see the schema.
Authorization
Bearer {PrincipalToken}
optional
Accept
application/json
To get the response in OpenAPI format (default)
Accept
text/html
Shows schema in Swagger UI
owner
string
name of a user who owns the application
app
string
name of an application
pkg.workspace
string
identifies a workspace
pkg.role
string
identifies a published role
200
OK
role schema in the selected format
400
Bad Request
QPv2 reads the schema of the resources available to the role and generates OpenAPI schema for this role
New function PublishedTypes
~cmp.publishedTypes~
✅
Usage:
1. IApiPathHandler
implementation for handling ApiPath_Schemas_WorkspaceRole
~cmp.schemasRoleHandler~
✅
2. newQueryProcessorPipeline
: provide API handler for ApiPath_Schemas_WorkspaceRole
~cmp.provideSchemasRoleHandler~
✅
3. New function CreateOpenApiSchema
~cmp.CreateOpenApiSchema~
✅
4. pkg/sys/it
integration test ~it.TestQueryProcessor2_SchemasRole~
✅
WorkspaceQName and QName of the role are provided to QPv2 in