API Status: Offline
Documentation

Quick Start Guide

Get started with Rest Faker in minutes. Create your data model, generate your API, and start making requests.

Custom Data Models

Create your own data structures with custom fields and types

Instant API Generation

Get a working REST API endpoint immediately after creation

Relations

Define belongsTo, hasMany, and hasOne relations between your data models

Flexible Sorting

Sort by any field in ascending or descending order

Field Filtering

Filter records by any schema field via URL query params or in the request body with the QUERY method

HTTP QUERY Method

A safe, idempotent HTTP method that carries filter and pagination criteria in a JSON body instead of the URL

How It Works

1

Create Your Project

Set up a new project (e.g., "Blog") with a descriptive name

2

Design Your Data Model

Use our Route Creator to define fields like "title", "description", "slug", etc.

3

Configure Field Types

Select data types (lorem, words, paragraphs) and customize fake data generation

4

Get Your API

Instantly receive a working REST API endpoint with your custom data

Basic Usage

javascript
// Basic GET request
fetch('https://api.restfaker.dev/api/schema/posts', {
  headers: {
    'apiToken': 'your_api_token_here',
    'Content-Type': 'application/json'
  }
})
.then(response => response.json())
.then(data => console.log(data));