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():
| Group | Client | Content |
|---|---|---|
| Auth | authApi | login, logout, token refresh, profile, permissions |
| Admin | adminApi | users and roles |
| Database | databaseApi | databases |
| Collection | collectionApi | collections, fields, schema, aggregate, distinct, rename, copy |
| Document | documentApi | documents, search, count, many, import, export |
| Index | indexApi | indexes |
| Bucket / File | bucketApi / fileApi | GridFS buckets and files |
| Jobs | jobApi | scheduled jobs |
| System / Application | systemApi / applicationApi | settings, configurations, info, stats, capabilities, version |
Base URL
| Setup | Base URL |
|---|---|
| Embedded in Nuxt | https://your-app/api/mongocamp-server (server.prefix) |
| Standalone | http://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.
