Mocking Quick Start
Inspectr lets you spin up a mock server from any OpenAPI file in seconds. Choose one of the options below to get started.
Option 1: Launch in the Browser
Section titled “Option 1: Launch in the Browser”Open the URL https://inspectr.dev/launch with a reference to any remote OpenAPI document:
https://inspectr.dev/launch?openapi=https://inspectr.dev/demo/hello.openapi.yamlReplace the openapi parameter with the URL of your own OpenAPI file. Inspectr will start immediately with mocking enabled.
You can easily mock the typical OpenAPI example APIs using Inspectr, by clicking the launch link:
Option 2: Start from the CLI
Section titled “Option 2: Start from the CLI”Run Inspectr locally and point it to the same OpenAPI spec:
npx @inspectr/inspectr --mock-backend=https://inspectr.dev/demo/hello.openapi.yamlThe proxy listens on port 8080 and the UI is available at http://localhost:4004.
Need more advanced mocking options?Learn more about Mocking →