Loading...
Mock API Generator | Custom Prefix, Endpoints & TTL
Build and deploy fully functional, live Mock REST APIs within seconds. Customize your API prefixes (e.g. /api/v1, /v1, /api/v2), choose which HTTP endpoints are enabled (GET list, GET by ID, POST, PUT, PATCH, DELETE), and set customizable TTL expiration from 1 day to 7 days. Equipped with realistic data generation and CORS headers for direct frontend and mobile app testing.
Key Features
- ✓Customizable API prefixes (/api/v1, /v1, etc.) and resource paths
- ✓Selectable REST endpoints (GET, POST, PUT, PATCH, DELETE)
- ✓Configurable expiration TTL between 1 day and 7 days
- ✓Instant live serving with CORS headers enabled
- ✓Interactive endpoint testing console with status codes and execution times
- ✓Ready-to-use code snippets for cURL, JavaScript Fetch, and Axios
Frequently Asked Questions
How long does a Mock API remain active?
You can configure your Mock API to remain active for anywhere between 1 day and 7 days. After the selected period, it is automatically cleaned up.
Can I make requests to the Mock API from my React / Vue / mobile app?
Yes! All mock endpoints include full CORS headers (Access-Control-Allow-Origin: *), allowing you to make fetch or axios requests directly from any client-side app or testing tool.
How do API prefixes work?
You can specify any base prefix such as /api/v1, and your resource name (e.g. users). The generated endpoints will follow the schema like /api/mock/[id]/api/v1/users.
Explore More Developer Tools