Reading The entire Repository as a Document

Sometimes you may want to be able to read an entire repository as one document.

E.g. One user has access to their own document in the repo. But you want to read all the user’s documents at one time.

Example

Using the DropConfig Api. You will need an API Key

Example CURL

curl 'https://api.dropconfig.com/api/orgs/{orgName}/repos/{repoName}/composite' \  
-H "Authorization: Bearer {API Key}"

Resulting Format

If we have 2 documents

  • doc1
  • doc2

The format returned will be

{
    "doc1": {
        //Content of doc1
    },
    "doc2": {
        //Content of doc2
    }
}

As with API Document Access you can retrieve the combined repository documents as javascript by adding .js to the end of the URL