Add support for generating an API client in JavaScript (including TypeScript support) or Python.
Ideally, to separate routes that are for HTML pages, an @api decorator could be added that marks a route for client generation. If the entire app is primarily API, a config setting like default_api = true could be added, and then HTML pages could be marked with an @page decorator.
It could also just be a smart system, where all GET routes are excluded except for those that are marked.
Feature description
Add support for generating an API client in JavaScript (including TypeScript support) or Python.
Ideally, to separate routes that are for HTML pages, an
@api
decorator could be added that marks a route for client generation. If the entire app is primarily API, a config setting likedefault_api = true
could be added, and then HTML pages could be marked with an@page
decorator.It could also just be a smart system, where all
GET
routes are excluded except for those that are marked.Feature example API
Anything else?
No response