Count documents in a collection.
Changed onReturn the total number of documents in the collection. This is the obvious REST endpoint for a document count; it is declared before the /{document_id} route so the literal count segment is never matched as a document id (which previously produced a misleading 404).
Request
- Base URLhttps://api.mixpeek.com
- AuthHTTP bearer and API key in header X-Namespace
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The ID of the collection to count documents in.
Response
Successful Response
Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the API
- info