Task 3 - Create a Namespace
A namespace is a group of schemas. Namespaces insulate the schema in your namespace from the schema in other namespaces. Even if another namespace has a schema with the same name as your schema, it would not matter. This is because the Forge Schema service factors in the namespace in the unique ID it assigns to your schema.
Every namespace is private by default. The creator of the namespace has read, write, and delete access to the namespace.
Expected task outcome
By the end of this task you will be able to:
- Create a new namespace.
- Fetch details of namespace.
Endpoints used in this task
You will use the following API endpoints in this task:
Step 1 - Create a Namespace
In postman, Select Task 2 > POST Create a Namespace and click Send. The equivalent cURL request is as follows.
Request
In Postman, a script in the Tests tab saves the ID of the namespace to a variable named NAMESPACE_ID, so that it can be used in subsequent API calls.
|
Response
Step 2 - Fetch Namespace
In Postman, Select Task 2 > GET Fetch a Namespace and click Send. The equivalent cURL request is as follows.
Request
|