Developer challenge - Day 18

Hello Sir,

After importing cosmos url :-

  1. https://2a6e0231-05f5-4028-8571-cbce1dcfb5b5.mock.pstmn.io/cosmos/:cosmoId

  2. https://2a6e0231-05f5-4028-8571-cbce1dcfb5b5.mock.pstmn.io/cosmos

I get this error, however in the yaml file things work fine which is
https://raw.githubusercontent.com/postmanlabs/spectral-postman/master/cosmos2.yaml

but the above mentioned both url doesnt work

Find the attached screenshot

Thank,
Kinjal

Hello Valentin Sir,

Can someone look into this issue. I have a concern. Need to complete the Developer Challenge asap.

Thanks,
Kinjal

Hey @kinjal04 :wave:t2:

There is nothing on the instructions that say that you need to do anything but import the API and Collection.

Once that’s done, you can explore the features of the API Builder and then use the submit request to check the 2 imported elements.

Hello Sir,

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.

Can you pls fix this.

Thanks,
Kinjal

I cannot see what you have Infront of you so you’re going to need to share some images of those errors.

Please share full app images as that’s the easiest way to see the whole situation.

Hello Sir,

I have already shared the instance error I get when I execute the request for Cosmos API.
Can you please fix this for me

Thanks,
Kinjal

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.

30 Days of Postman - for developers

It’s time to work on your next challenge.

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.

  1. 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.
  • https://raw.githubusercontent.com/postmanlabs/spectral-postman/master/cosmos2.yaml

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.

  1. 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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.