Skip to content

Declaration of a Collection​

GET
/mongodb/collections/{collectionName}/declaration

What a client needs to know of a declared collection (2.3.0): fields it must not send, version and owner fields, behaviours. 404 for a collection that is not declared.

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
string
Required

Responses​

application/json
JSON
{
  
"name": "string",
  
"database": "string",
  
"validation": "off",
  
"systemFields": [
  
  
"string"
  
],
  
"protectedFields": [
  
  
"string"
  
],
  
"indexes": [
  
  
{
  
  
  
"name": "string",
  
  
  
"key": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"unique": true,
  
  
  
"sparse": true,
  
  
  
"origin": "declaration",
  
  
  
"partialFilterExpression": {
  
  
  
  
"additionalProperties": "string"
  
  
  
},
  
  
  
"partialFilterFrom": "softDelete",
  
  
  
"expireAfterSeconds": 0
  
  
}
  
],
  
"refs": [
  
  
{
  
  
  
"field": "string",
  
  
  
"collection": "string",
  
  
  
"many": true
  
  
}
  
],
  
"referencedBy": [
  
  
{
  
  
  
"collection": "string",
  
  
  
"database": "string",
  
  
  
"field": "string",
  
  
  
"many": true
  
  
}
  
],
  
"timestamps": {
  
  
"createdAt": "string",
  
  
"updatedAt": "string",
  
  
"createdBy": "string",
  
  
"updatedBy": "string"
  
},
  
"owner": {
  
  
"field": "string",
  
  
"read": "own"
  
},
  
"softDelete": {
  
  
"field": "string",
  
  
"purgeAfterDays": 0
  
},
  
"versioned": {
  
  
"mode": "counter",
  
  
"field": "string",
  
  
"required": true
  
},
  
"audit": {
  
  
"retentionDays": 0
  
},
  
"views": [
  
  
{
  
  
  
"name": "string",
  
  
  
"hasParams": true,
  
  
  
"description": "string"
  
  
}
  
],
  
"search": {
  
  
"fields": {
  
  
  
"additionalProperties": 0
  
  
},
  
  
"language": "string"
  
},
  
"embedding": {
  
  
"from": [
  
  
  
"string"
  
  
],
  
  
"field": "string",
  
  
"dimensions": 0,
  
  
"readable": true
  
},
  
"tenant": {
  
  
"field": "string",
  
  
"adminBypass": true
  
},
  
"drafts": {
  
  
"readers": {
  
  
  
"kind": "all",
  
  
  
"roles": [
  
  
  
  
"string"
  
  
  
]
  
  
}
  
},
  
"access": {
  
  
"read": {
  
  
  
"kind": "all",
  
  
  
"roles": [
  
  
  
  
"string"
  
  
  
]
  
  
},
  
  
"create": {
  
  
  
"kind": "all",
  
  
  
"roles": [
  
  
  
  
"string"
  
  
  
]
  
  
},
  
  
"update": {
  
  
  
"kind": "all",
  
  
  
"roles": [
  
  
  
  
"string"
  
  
  
]
  
  
},
  
  
"delete": {
  
  
  
"kind": "all",
  
  
  
"roles": [
  
  
  
  
"string"
  
  
  
]
  
  
},
  
  
"adminBypass": true
  
}
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.