Quick Start Guide
Get up and running with apibld in just 5 minutes. This guide will walk you through creating your first model and API.
Create Your First Model
Models define the structure of your data. Let's create a simple "User" model.
From the Dashboard:
- Click the "New Model" button
- Name your model "User"
- Add fields to define user properties
Example User Model:
Pro Tip:
apibld supports 11 field types including String, Number, Email, URL, Date, and more. You can also set validation rules like min/max length, required, and unique.
Add Relationships (Optional)
Connect models together to create realistic data structures.
Example: User Posts
Create a "Post" model with fields:
Result: Each Post is linked to a User author
Learn more in the Relationships guide
Create Your API
Turn your models into a working REST API with mock data.
From the Dashboard:
- Click "Create API" button
- Name your API (e.g., "My First API")
- Select models to include (e.g., User, Post)
- Configure settings (CORS, persistence, authentication)
- Click "Generate API"
Success!
Your API is now live with automatically generated mock data.
Make Your First API Call
Test your API using cURL, Postman, or your favorite HTTP client.
Example API Call:
# Get all users
curl https://api.apibld.com/v1/your-api-id/users \
-H "Authorization: Bearer your_api_key"Example Response:
{
"data": [
{
"id": "1",
"name": "John Doe",
"email": "john@example.com",
"age": 28,
"isActive": true
},
{
"id": "2",
"name": "Jane Smith",
"email": "jane@example.com",
"age": 32,
"isActive": true
}
],
"total": 2
}Available Endpoints:
GET /users- List allGET /users/:id- Get onePOST /users- CreatePUT /users/:id- UpdateDELETE /users/:id- Delete
Query Parameters:
?limit=10- Limit results?offset=0- Pagination?sort=name- Sort by field?filter[...]- Filter data
🎉 Congratulations!
You've successfully created your first API with apibld. Here's what to explore next: