Postman Academy: Simulate API endpoints with a mock server

Archived topic — some details may be out of date.
Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (postman mock generate) and run it (postman mock run). See About mocks and Create a mock.
Working with an AI coding agent? The Postman plugin can build and run mocks for you.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

Hi
I have started the Postman Academy, and I have been stuck on this challenge

Challenge: Simulate an API with a mock server
link → https://academy.postman.com/path/api-producers/simulate-api-endpoints-with-mock-server-2212/13853

Answer about my solution:

:police_car_light: Oops! It looks like your solution failed one or more tests. Please address the following failures, save your changes, then try again!

Test Failure reason
:cross_mark: Mock response Incorrect response for vehicle: 4Y1SL65848Z411439. Status code received: ‘404’. Status code expected: ‘200’.
:cross_mark: Mock response Incorrect response for vehicle: JA3AP57J5SY000719. Status code received: ‘404’. Status code expected: ‘200’.
:cross_mark: Mock response Incorrect response for vehicle: JH4DA1750HS018437. Status code received: ‘404’. Status code expected: ‘500’.

Could you please help me to resolve my problem?

workspace ID: 51c955b5-6057-4e55-9afa-f8799d18369b

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