Skip to main content

Read from View

Motivation

Read from a view using API

Functional Design

GET /api/v2/apps/{owner}/{app}/workspaces/{wsid}/views/{pkg}.{view}

Parameters

Headers

KeyValue
AuthorizationBearer {PrincipalToken}

Parameters

ParameterTypeDescription
ownerstringname of a user who owns the application
appstringname of an application
wsidint64the ID of workspace
pkg, viewstringidentifies a view

Limitations

  • "where" must contain "eq" or "in" condition for PK fields

Result

CodeDescriptionBody
200OKSON object that contains a results field with a JSON array that lists the objects, example. When the error happens during the read, the error property is added in the response
401Unauthorizederror object
403Forbiddenerror object
404View Not Founderror object

Example

GET /api/v2/apps/untill/airs-bp3/workspaces/12313123123/views/air.SalesMetrics?where={"Year":2024, "Month":{"$in":[1,2,3]}}