Read from CDoc collection
Motivation
Read CDoc collection using API
Functional design
GET /api/v2/apps/{owner}/{app}/workspaces/{wsid}/cdocs/{pkg}.{table}
Headers
Key
Value
Authorization
Bearer {PrincipalToken}
Parameters
Parameter
Type
Description
owner
string
name of a user who owns the application
app
string
name of an application
wsid
int64
the ID of workspace
pkg, table
string
identifies a table
Also supports Query constraints
Result
Code
Description
Body
200
OK
Technical design
Components
pkg/processors/query2
IApiPathHandler
implementation for handlingApiPath_CDocs
~cmp.cdocsHandler~
✅
newQueryProcessorPipeline
: provide API handler forApiPath_CDocs
~cmp.provideCDocsHandler~
✅
check ACL when including referenced objects and/or containers (same as for /docs)
pkg/sys/it
integration test for /cdocs/
~it.TestQueryProcessor2_CDocs~
✅
Last updated
Was this helpful?