RapiMock serves every operation of your OpenAPI spec over HTTP. It validates requests, checks tokens, and with --stateful keeps what you create, so a frontend, a test suite or another service can call your API before it exists. What it does and how it compares with the in-browser mock of <rapi-doc> is on RapiMock's page.
npm install -D @rapidoc/cli @rapidoc/mocknpx rapidoc mock openapi.yaml --statefulFind your way
Section titled “Find your way”Get started
What RapiMock is and is not, a quickstart, and how it reads a data model off a spec.
Responses
What it answers, picking a status code or example, and checking tokens and scopes.
Keeping state
Resources worked out from the spec, seed data, a session per test, and the API styles it handles.
Correcting the mock
State the data model in mock.config.yaml where the spec doesn't show it, and lint the spec for the mock.
Mock UI
See the records and what the mock does for every operation, and reset or reseed the data.
Testing
Tests in any language over HTTP, in JavaScript without a port, and with RapiDoc, RapiFlow and MCP.
The reference lists every CLI option, the control API, every key of mock.config.yaml and every lint rule. To see what RapiMock makes of a spec without installing anything, use the spec check.
What it handles
RapiMock reads the data model off the spec. It does that well for APIs with ids in the path and keys at the top of a record, and needs a few lines of config for other styles. See which, with examples.