Import your OpenAPI or Swagger specification and get a fully working mock REST API server in under 30 seconds. No coding, no backend setup — just realistic fake data generated from your own schema.
Running a local mock server requires installing tools, configuring routes, and writing fixture files by hand.
Handwritten mock data quickly diverges from your API spec as the spec evolves, causing frontend bugs in QA.
Local mock servers are not shareable. Frontend and mobile teams end up with different fixture files and stale data.
Paste your OpenAPI spec. We parse every path, infer realistic data types from field names, and spin up a live mock API — all within seconds.
Paste your OpenAPI JSON or YAML into the import dialog. We support OpenAPI 3.0 and Swagger 2.0.
Review the parsed routes and field mappings. Adjust any field types if the auto-detection missed something.
Your mock API is live instantly at api.restfaker.dev with your unique project token — shareable immediately.
Import once. Get live CRUD with realistic generated data.
OpenAPI spec (input)
openapi: 3.0.0
info:
title: Users API
version: 1.0.0
paths:
/users:
get:
summary: List users
responses:
"200":
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/User"
components:
schemas:
User:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
email:
type: string
format: email
role:
type: string
enum:
- admin
- editor
- userLive mock response (output)
GET https://api.restfaker.dev/api/schema/users
apiToken: YOUR_API_TOKEN
{
"data": [
{
"id": "user_8x92m",
"name": "Alex Rivera",
"email": "alex.rivera@example.com",
"role": "admin"
},
{
"id": "user_p4k91",
"name": "Sarah Chen",
"email": "sarah.chen@example.com",
"role": "editor"
}
],
"meta": { "total": 48, "page": 1, "perPage": 25, "pages": 2 }
}Paste your OpenAPI YAML or JSON — we parse it and create all mock endpoints instantly.
Supports OpenAPI 3.0 schemas including $ref, nested objects, arrays, and enums.
Every imported path becomes a working GET, POST, PATCH, and DELETE endpoint.
Field names are matched to Faker.js types automatically — no manual mapping needed.
Test authentication flows with built-in mock JWT token endpoints.
Every mock server gets a public URL you can share with your frontend team instantly.
No install required — works in any browser, no Node.js or Python setup
Spec-driven — routes and schemas come directly from your OpenAPI file
Always fresh — re-import your updated spec anytime to regenerate the mock
Shareable URL — every team member hits the same live endpoint instantly
Export ready — download a Postman collection or TypeScript types in one click
Scenario engine — simulate errors, latency, and rate limits for resilience testing
No credit card. No backend. Live mock API in seconds.
Related use cases