OpenAPI 3.0 & Swagger 2.0 supported

OpenAPI Mock Server

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.

The problem with OpenAPI mocking today

Manual setup

Running a local mock server requires installing tools, configuring routes, and writing fixture files by hand.

Spec drift

Handwritten mock data quickly diverges from your API spec as the spec evolves, causing frontend bugs in QA.

No collaboration

Local mock servers are not shareable. Frontend and mobile teams end up with different fixture files and stale data.

How Rest Faker generates your mock server

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.

1

Import your spec

Paste your OpenAPI JSON or YAML into the import dialog. We support OpenAPI 3.0 and Swagger 2.0.

2

Preview endpoints

Review the parsed routes and field mappings. Adjust any field types if the auto-detection missed something.

3

Get a live URL

Your mock API is live instantly at api.restfaker.dev with your unique project token — shareable immediately.

Your OpenAPI spec becomes a real endpoint

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
            - user

Live 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 }
}

Everything your OpenAPI mock server needs

One-Click Import

Paste your OpenAPI YAML or JSON — we parse it and create all mock endpoints instantly.

Full Schema Support

Supports OpenAPI 3.0 schemas including $ref, nested objects, arrays, and enums.

Live CRUD Endpoints

Every imported path becomes a working GET, POST, PATCH, and DELETE endpoint.

Realistic Fake Data

Field names are matched to Faker.js types automatically — no manual mapping needed.

Mock Auth

Test authentication flows with built-in mock JWT token endpoints.

Shareable URL

Every mock server gets a public URL you can share with your frontend team instantly.

Why use Rest Faker over a local mock server?

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

Import your OpenAPI spec for free

No credit card. No backend. Live mock API in seconds.