Knowing very little about your history or direction i realize there is a high risk of annoying someone with this post. Users could generate HTTP clients that suit their needs: The recipe would produce an openapi.json file that gets served by the app, basically a JSON version of the API output from blitz routes. So what does implementing an OpenAPI specification look like? Open API has a lot of tools released already to generate HTTP clients in different programming languages based on a specification. OpenAPIĪ more elegant approach would be a Blitz recipe to generate an OpenAPI Specification (formerly known as Swagger docs □) based on your app's API routes. □įortunately, there is an easier way to give people the ability to generate HTTP clients, as well as other utilities. Suddenly I don't feel like rejoicing anymore. But who can forget about their C# and Java clients.Then somebody wants a client for their PHP app, so they add another command to generate the PHP client.However, let's say we produce an awesome JavaScript/NodeJS client, and there's much rejoicing! □.I thought it was a pretty good idea, if you have the kind of web app that other developers might want to get direct access to the API. The original feature request: generating a HTTP client for your blitz app's APIĪt the last meetup, we briefly discussed the idea of a CLI command to generate an NPM package for an HTTP client from your API □.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |