Scaffold from OpenAPI
Routa can scaffold the first HTTP layer from an OpenAPI document:
pnpm exec routa scaffold openapi.yaml --previewpnpm exec routa scaffold openapi.yaml --yesSupported input extensions:
.yaml.yml.json
Generated Output
Section titled “Generated Output”Scaffold creates route files under src/routes, schema files near those routes, .routa/manifest.json, .routa/openapi-baseline.json, and .routa/routes.gen.ts.
Supported v0 Model
Section titled “Supported v0 Model”- path operations for common HTTP methods
operationId- path, query, header, and cookie parameters
- JSON request bodies
- JSON responses
- schemas from
components.schemas
Review generated source before committing. Generated handlers are stubs and business logic stays in your app.