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
Create Your Project
Set up a new project (e.g., "Blog") with a descriptive name
Design Your Data Model
Use our Route Creator to define fields like "title", "description", "slug", etc.
Configure Field Types
Select data types (lorem, words, paragraphs) and customize fake data generation
Get Your API
Instantly receive a working REST API endpoint with your custom data
Basic Usage
// 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));