ant generate api with --json to generate all layers at once.
Minimal valid spec
GET /health endpoint with a placeholder response.
Full spec structure
Fields
project (optional)
routes (required)
A map of route names to route configurations. Each key becomes a Flask Blueprint registered at /<route_name>.
Route configuration
Subroute configuration
Mock data
Mock data can be any valid JSON value:mock is omitted:
- GET routes return:
"Your <name> route is working!" - POST subroutes return:
"Successfully created <subroute> for <route> with data: {data}"
Full example
Validation rules
Route names:- Must be valid Python identifiers
- Letters, digits, and underscores only
- Cannot start with a digit
✅ users, user_posts, api_keys—❌ my-route, 1users, user posts
GET,POST,PUT,DELETEonly (case-insensitive)PATCH,HEAD,OPTIONSare not supported
Validation errors
All validation errors are self-descriptive:--dry-run to validate without generating files: