Repositories
This endpoint enables the management of the repositories and their interaction with the IZSAM REST API repositories. This family of endpoint allows you to decide which of your IZSAM repositories are exposed using the API.
Note:
In creating and deleting repositories, you are adding an existing IZSAM
repository to the list of repositories the API will expose. Vice versa with DELETE.
As a general rule, this API will only read from the dB2 server and will not
write.
Adding repositories
The REST API has three methods of adding repositories. The repositories are
first validated by the API.
- Add a single repository using a PUT
request:
https://pthomu1.prod.com:8000/api/repositories/<repository name> - Add multiple repositories at one time using a POST
request:
https://pthomu1.prod.com:8000/api/repositories/where the body uses the following JSON structure:{"repositories": ["repo1","repo2"]} - Add all of the available repositories using a PATCH
request:
https://pthomu1.prod.com:8000/api/repositories/
Deleting repositories
You can delete a REST API repository by calling a DELETE request:
https://pthomu1.prod.com:8000/api/repositories/<repository name>
Retrieving repository information
You can either GET a list of available repositories by querying the
endpoint:
https://pthomu1.prod.com:8000/api/repositories/or, GET the repository TPARAM table contents by querying the
endpoint:
https://pthomu1.prod.com:8000/api/repositories/<repository name>