Skip to content

REST API ​

This reference is generated from the OpenAPI spec of the server (openapi/docs.yaml, download as JSON). Pick an operation in the sidebar. The operations are grouped like the clients of useMongocampApi():

GroupClientContent
AuthauthApilogin, logout, token refresh, profile, permissions
AdminadminApiusers and roles
DatabasedatabaseApidatabases
CollectioncollectionApicollections, fields, schema, aggregate, distinct, rename, copy
DocumentdocumentApidocuments, search, count, many, import, export
IndexindexApiindexes
Bucket / FilebucketApi / fileApiGridFS buckets and files
JobsjobApischeduled jobs
System / ApplicationsystemApi / applicationApisettings, configurations, info, stats, capabilities, version

Base URL ​

SetupBase URL
Embedded in Nuxthttps://your-app/api/mongocamp-server (server.prefix)
Standalonehttp://host:8080

Authentication ​

Send one of:

http
Authorization: Bearer <token from POST /auth/login>
X-AUTH-APIKEY: <api key>
Authorization: Basic <base64 user:password>

Trying it out ​

A running server serves its own spec at /docs/docs.yaml, and with DOCS_SWAGGER=true an interactive Scalar reference at /docs.

Rules that the types do not show (filters, paging headers, Extended JSON, error codes) are described in the API Behaviour pages under Server.

Released under the MIT License.