data_mock_api_generator
Generate mock REST API endpoints by defining paths, methods, field types, and record counts. Returns fabricated records grouped by route for multi-endpoint API fixtures.
Instructions
Mock API Generator (Build Mock REST API From JSON Schema). Generate a small in-memory mock REST API document from a JSON schema template: given an array of endpoints (each a path, HTTP method, record count, and a list of typed fields), it fabricates fake records per endpoint and returns them grouped by path. Field types include uuid, integer, float, boolean, full_name, first_name, last_name, email, phone, iso_date, iso_datetime, sentence, paragraph, and enum. Use this when you need multi-endpoint API fixtures keyed by route; use data_faker for a single flat list of richly namespaced person/finance fields, data_random_data_generator for one flat record set across many primitive types with CSV/TSV/NDJSON output, or data_sample_data_generator for curated ready-made domain datasets (users, orders, logs). Output is random and non-idempotent — an optional seed makes record bodies reproducible, but the generatedAt timestamp still varies each call. Runs locally, read-only, contacts no external service, and is rate-li
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | Schema describing the endpoints to fabricate. | |
| seed | No | Optional seed; when set, record bodies are reproducible (generatedAt still varies). Omit for crypto-random output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when generation succeeded. | |
| info | No | Summary of the generated document. | |
| endpoints | No | One entry per requested endpoint. |