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

403

Forbidden

404

Table Not Found

Technical design

Components

  • pkg/processors/query2

    • IApiPathHandler implementation for handling ApiPath_CDocs

      • ~cmp.cdocsHandler~

    • newQueryProcessorPipeline: provide API handler for ApiPath_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?