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 | JSON 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 |
| 401 | Unauthorized | error object |
| 403 | Forbidden | error object |
| 404 | Table Not Found | error object |
Technical design
Components
- pkg/processors/query2
- pkg/sys/it
- integration test for /cdocs/
~it.TestQueryProcessor2_CDocs~covrd3✅
- integration test for /cdocs/