Skip to content

CollectionApi

All URIs are relative to http://localhost

MethodHTTP requestDescription
aggregatePOST /mongodb/collections/{collectionName}/aggregateAggregate in Collection
clearCollectionDELETE /mongodb/collections/{collectionName}/clearClear Collection
deleteCollectionDELETE /mongodb/collections/Delete Collection
distinctPOST /mongodb/collections/{collectionName}/distinct/Distinct in Collection
getCollectionFieldsGET /mongodb/collections/{collectionName}/fieldsCollection Fields
getCollectionInformationGET /mongodb/collections/Collection Information
getJsonSchemaGET /mongodb/collections/{collectionName}/schemaCollection Fields
getSchemaAnalysisGET /mongodb/collections/{collectionName}/schema/analysisCollection Fields
listCollectionsGET /mongodb/collectionsList of Collections
listCollectionsByDatabaseGET /mongodb/databases/{databaseName}/collectionsList of Collections

aggregate

List aggregate(collectionName, MongoAggregateRequest, rowsPerPage, page)

Aggregate in Collection

Aggregate in a given Collection

Parameters

NameTypeDescriptionNotes
collectionNameStringThe name of your MongoDb Collection[default to null]
MongoAggregateRequestMongoAggregateRequest
rowsPerPageLongCount elements per page[optional] [default to null]
pageLongRequested page of the ResultSets[optional] [default to null]

Return type

List

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, text/plain

clearCollection

JsonValue_Boolean clearCollection(collectionName)

Clear Collection

Delete all Document in Collection

Parameters

NameTypeDescriptionNotes
collectionNameStringThe name of your MongoDb Collection[default to null]

Return type

JsonValue_Boolean

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

deleteCollection

JsonValue_Boolean deleteCollection(collectionName)

Delete Collection

Delete a given Collection

Parameters

NameTypeDescriptionNotes
collectionNameStringThe name of your MongoDb Collection[default to null]

Return type

JsonValue_Boolean

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

distinct

List distinct(collectionName, field, rowsPerPage, page)

Distinct in Collection

Distinct for Field in a given Collection

Parameters

NameTypeDescriptionNotes
collectionNameStringThe name of your MongoDb Collection[default to null]
fieldStringThe field for your distinct Request.[default to null]
rowsPerPageLongCount elements per page[optional] [default to null]
pageLongRequested page of the ResultSets[optional] [default to null]

Return type

List

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain

getCollectionFields

List getCollectionFields(collectionName, sample size)

Collection Fields

List the Fields in a given collection

Parameters

NameTypeDescriptionNotes
collectionNameStringThe name of your MongoDb Collection[default to null]
sample sizeIntegerUse sample size greater 0 (e.g. 1000) for better performance on big collections[optional] [default to null]

Return type

List

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain

getCollectionInformation

CollectionStatus getCollectionInformation(collectionName, includeDetails)

Collection Information

All Information about a single Collection

Parameters

NameTypeDescriptionNotes
collectionNameStringThe name of your MongoDb Collection[default to null]
includeDetailsBooleanInclude all details for the Collection[optional] [default to false]

Return type

CollectionStatus

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain

getJsonSchema

JsonSchema getJsonSchema(collectionName, sampleSize, deepth)

Collection Fields

List the Fields in a given collection

Parameters

NameTypeDescriptionNotes
collectionNameStringThe name of your MongoDb Collection[default to null]
sampleSizeIntegerUse sample size greater 0 (e.g. 5000) for better performance on big collections[optional] [default to null]
deepthIntegerHow deep should the objects extracted[optional] [default to 3]

Return type

JsonSchema

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain

getSchemaAnalysis

SchemaAnalysis getSchemaAnalysis(collectionName, sampleSize, deepth)

Collection Fields

List the Fields in a given collection

Parameters

NameTypeDescriptionNotes
collectionNameStringThe name of your MongoDb Collection[default to null]
sampleSizeIntegerUse sample size greater 0 (e.g. 5000) for better performance on big collections[optional] [default to null]
deepthIntegerHow deep should the objects extracted[optional] [default to 3]

Return type

SchemaAnalysis

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain

listCollections

List listCollections()

List of Collections

List of all Collections of the default database

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

listCollectionsByDatabase

List listCollectionsByDatabase(databaseName)

List of Collections

List of all Collections of the given database

Parameters

NameTypeDescriptionNotes
databaseNameStringName of your Database[default to null]

Return type

List

Authorization

httpAuth1, httpAuth, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Released under the Apache License 2.0.