Task 4 - Create and-fetch a Library
Task 4 - Create a Library
A Library is a workspace under which you can create schemas. You can create multiple published or draft version schemas under the library and add the schema to the different library. You can create multiple libraries under a group.
Expected task outcome
By the end of this task you will be able to:
- Create a new library.
- Fetch details of a library.
Endpoints used in this task
You will use the following API endpoints in this task:
.. list-table:: :widths: 10, 50, 40 :header-rows: 1
-
- Method
- Endpoint
- Operation
-
- POST
- /organizations/{organizationId}/groups/{groupId}/libraries
Create a Library_
-
- GET
- /organizations/{organizationId}/groups/{groupId}/libraries/{libraryId}
Fetch a Library_
Step 1 - Create a Library
In Postman, on the sidebar, Select Task 4 > POST Create a Library and click Send. The equivalent cURL request is as follows.
Request
|
Response
Step 2 - Fetch a Library
This topic explains how to fetch the details of a specific library and the permission you have been granted.
In postman, Select Task 4 > GET Fetch Library and click Send. The equivalent cURL request is as follows.
Request
|