After importing the API specification as Cosmos, it gives me instance error. True that the instructions is to be explore the API. But how user would explore the details of the API. Currently it gives instance error.
The mock server returning or not returning a response is not related to the task for that day. I will look into that but it’s not blocking you from completing the task.
The task is about exploring the API Builder feature and the spec file that you have imported.
If you have imported that correctly, you will have an API and a Collection, take those ids and submit the solution.
It might be that @kinjal04 is using an old version of the challenge.
Looking at an old version, there was a step for validating requests.
Validate requests: Find the generated collection Cosmos. Send a request, and Postman will once again identify issues or discrepancies compared to the associated API schema at the top near the request name. If you see any issues, think about how you might resolve them.
This will fail as the mock either doesn’t exist or is not public.
However, forking the latest version from here has no such step.
The Postman API Builder supports API-first development by allowing you to generate collections from your schema and build your development and testing from there.
Import an API specification: Select the Import button, and input the following URL to import the API specification into Postman. Ensure that you select the OpenAPI 3.0 and Postman Collection option during this step to also Import the API and not just the Collection.
Once this step is completed, make sure you have an API in the APIs sidebar and a Collection in the Collections sidebar, both called Cosmos.
Explore the API Builder Select the APIs option on the sidebar and select the newly imported Cosmos API. The API Overview displays a description of the API, tags associated with the API, any linked collections, and the API’s published versions. The API Overview also provides quick access to tasks, such as connecting to a Git repository, adding tests, observing API performance, and viewing deployments.
More details about the different functionality of the API Builder can be found on the Postman Learning Center.
Once you familiarize yourself with the API Builder, move on to the next folder in this collection to submit your solution. Follow the instructions in the request documentation.