packages/create-cloudflare/templates/openapi/ts/README.md
This is a Cloudflare Worker with OpenAPI 3.1 using chanfana and Hono.
This is an example project made to be used as a quick start into building OpenAPI compliant Workers that generates the
openapi.json schema automatically from code and validates the incoming request to the defined parameters or request body.
npm installwrangler login to login to your Cloudflare account in wranglerwrangler deploy to publish the API to Cloudflare Workerssrc/index.ts.src/endpoints/.wrangler dev to start a local instance of the API.http://localhost:8787/ in your browser to see the Swagger interface where you can try the endpoints.src/ folder will automatically trigger the server to reload, you only need to refresh the Swagger interface.