Repositories and databases

You can use the HCL Compass REST API to interact with repositories and databases.

You can use the HCL Compass REST API to interact with repositories and databases with the following endpoints:
GET/repos
Valid response is 200.
GET/repos/{repo}
Valid parameter is repo.
Valid responses are 200, and 404 (Schema repository not found.)
GET/repos/{repo}/databases
Valid parameter is repo.
Valid responses are 200, and 404 (Schema repository not found.)
To query the list schema repositories, use GET https://localhost:8190/ccmweb/rest/repos. For example:
[
  {
    "name": "10.0.0"
  },
  {
    "name": "CCMRepo"
  }
]
For more information, see https:// localhost:8190/swagger-ui.html#/Repos/getAllRepos.

After you have a list of schema repositories, use GET https://localhost:8190/ccmweb/rest/repos/CCMRepo/databases to get a list of databases in each repository.

Sample response:
[
  {
    "name": "SAMPL"
  }
]

For more information on all databases, see https://localhost:8190/swagger-ui.html#/Databases/getAllDatabases. For detailed properties for a database, see https://localhost:8190/swagger-ui.html#/Database/getDatabase.