api-mock-server

Generate mock API endpoints from OpenAPI specs or TypeScript interfaces.

28|3|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/girijashankarj/cursor-handbook --skill api-mock-server-girijashankarj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-mock-server
Source: https://github.com/girijashankarj/cursor-handbook/tree/main/.cursor/skills/backend/api-mock-server
Command: npx skills add https://github.com/girijashankarj/cursor-handbook --skill api-mock-server-girijashankarj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate realistic mock APIs for frontend development and testing.

Core Features & Use Cases

  • Generate mock endpoints from OpenAPI specs, TypeScript interfaces, or simple descriptions.
  • Simulate realistic latency and error responses to mirror production.
  • Choose from tools like JSON Server, MSW, or Express-based mocks to fit your stack.

Quick Start

Define your API shape with an OpenAPI spec or TypeScript interfaces, then start the mock server using your preferred approach to serve endpoints.

Frequently Asked Questions about api-mock-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a mock API from an OpenAPI spec for frontend testing?

You can create a mock API by feeding an OpenAPI spec to the server, which then automatically generates endpoints with realistic data, configurable latency, and error scenarios to test your frontend.

Can I generate mock API responses using TypeScript interfaces?

Yes, you can define your API shape using TypeScript interfaces, and the mock server will use them to generate endpoints with realistic response envelopes and simulated network delays.

Does this mock API server support simulating latency and error responses?

The mock API server supports simulating realistic latency and error scenarios, allowing you to configure delays and mirror production environments during frontend testing.

What is the best way to run a mock backend for React frontend testing?

You can run a mock backend using MSW, JSON Server, or Express, choosing the tool that best fits your frontend stack to serve endpoints with realistic data.

How do I start a mock server using simple endpoint descriptions instead of specs?

You can start the mock server using simple endpoint descriptions instead of full OpenAPI specs or TypeScript interfaces, generating realistic mock APIs for immediate frontend testing.