References
/datastore
/list

/datastore/list

Body:

nPage

  • Type: Integer
  • Examples: 1, 10

Success response:

code

"DATASTORE-COLLECTIONS-FETCHED"

message

"List of collections is successfully fetched from the datastore."

nCollections

  • Type: Integer
  • Examples: 5

collections

  • Type: List
  • Examples: [{ collectionID: "ck61726912hdkjhd802809109j", nDocuments: 10 }]

Error response:

DATASTORE-COLLECTIONS-FETCH-FAILED

{ code: "DATASTORE-COLLECTIONS-FETCH-FAILED", message: " List of collections could not be fetched from the datastore." }


Usage:

curl "https://api.grandeur.tech/datastore/list?apiKey=${API_KEY}" -H "Authorization: ${AUTH_TOKEN}" --json '{"nPage": "1"}'

Output

JSON
{
    "code": "DATASTORE-COLLECTIONS-FETCHED",
    "message": "List of collections is successfully fetched from the datastore.",
    "nCollections": 5,
    "collections": [ {
        "collectionID": "ck61726912hdkjhd802809109j",
        "nDocuments": 10
    } ]
}