ant generate route generates all four layers for a new resource inside an existing project — route, service, repository, and model — and wires them into app.py and Alchemy.py automatically.
Syntax
Run this command from the project root — the directory that contains
api/.Arguments
Options
Examples
Basic route
With inline mock data
With mock data from file
Machine-readable output
Files created
Files modified
Success output
Naming rules
Names must be valid Python identifiers: letters, digits, and underscores only, cannot start with a digit.