Run a declared View
POST
/mongodb/collections/{collectionName}/views/{viewName}
Runs a view of a declared collection (2.10.0): the parameters of the body are validated by the schema of the view (400 with issues), the pipeline of the server runs after the read scope of the caller, without the fields the caller may not read; collections of $lookup / $unionWith need the read grant. 404 for an unknown view.
Authorizations
httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)
Parameters
Path Parameters
collectionName*
The name of your MongoDb Collection
Type
Requiredstring
viewName*
The name of the view
Type
Requiredstring
Query Parameters
rowsPerPage
Count elements per page
Type
integer
Format
"int32"page
Requested page of the ResultSets
Type
integer
Format
"int32"count
How the result is counted: exact (default), estimated or none (2.0.0).
Type
string
extendedJson
The Extended JSON mode of the answer: relaxed (default), canonical or plain.
Type
string
Request Body
application/json
JSON "params": { "additionalProperties": "string" }
{
}
Responses
The documents of the view.
application/json
JSON { "additionalProperties": "string" }
[
]
