Wide Language Support
OpenAPI Generator supports a broad range of programming languages, which allows developers to generate client libraries, server stubs, API documentation, and other code artifacts across various languages with ease.
Customizability
The tool provides diverse customization options, including custom templates, configuration options, and overrides, enabling developers to tailor the generated code to meet specific project requirements.
Active Community
OpenAPI Generator benefits from an active and engaged community that contributes to continuous improvements, bug fixes, and enhancements, ensuring the tool stays updated with evolving needs and standards.
Comprehensive Documentation
It comes with extensive documentation and a rich set of resources that help users understand how to leverage the tool effectively for their projects.
Time-Efficiency
Automating the generation of API-related code significantly reduces development time and effort, allowing teams to focus on implementing business logic rather than boilerplate code.
Promote OpenAPI Generator. You can add any of these badges on your website.
We have collected here some useful links to help you find out if OpenAPI Generator is good.
Check the traffic stats of OpenAPI Generator on SimilarWeb. The key metrics to look for are: monthly visits, average visit duration, pages per visit, and traffic by country. Moreoever, check the traffic sources. For example "Direct" traffic is a good sign.
Check the "Domain Rating" of OpenAPI Generator on Ahrefs. The domain rating is a measure of the strength of a website's backlink profile on a scale from 0 to 100. It shows the strength of OpenAPI Generator's backlink profile compared to the other websites. In most cases a domain rating of 60+ is considered good and 70+ is considered very good.
Check the "Domain Authority" of OpenAPI Generator on MOZ. A website's domain authority (DA) is a search engine ranking score that predicts how well a website will rank on search engine result pages (SERPs). It is based on a 100-point logarithmic scale, with higher scores corresponding to a greater likelihood of ranking. This is another useful metric to check if a website is good.
The latest comments about OpenAPI Generator on Reddit. This can help you find out how popualr the product is and what people think about it.
To be fair I've never used Laravel - but I do have a memory of code generators/scaffolders inserting files that made clear they were responsible for work /* * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit the class manually. */. - Source: Hacker News / about 2 months ago
For the REST API communication, I leveraged OpenAPI Generator to automatically generate TypeScript client code. This API-first approach eliminates the common frontend-backend synchronization problems and ensures type safety across the entire stack. - Source: dev.to / 6 months ago
Patches are also useful if we're making manual modifications to any codebase that is being auto-generated, i.e. If we're using openapi-generator off of an OpenAPI spec to create clients and scaffolded server codebases. We would want to maintain the patch as a way to ensure that subsequent re-generations of the code don't wipe out any manual changes we have to make in-between. - Source: dev.to / about 1 year ago
Manually writing API clients can be time-consuming and result in errors. This is where the OpenAPI specification and tools like OpenAPI Generator are helpful. - Source: dev.to / over 1 year ago
With your API defined, use the OpenAPI Generator to generate your code automatically. The PHP Flight generator โ documented here โ was provided by the author and, although its status is still marked as "experimental", it has been my production workhorse for over a year. - Source: dev.to / over 1 year ago
You would use OpenAPI (formerly Swagger) [1] for that, which includes JSONSchema for data types but also adds specs for defining REST apis. There are plenty of generators and other tools that work with OpenAPI [2] [1] https://www.openapis.org/ [2] https://openapi-generator.tech/. - Source: Hacker News / about 2 years ago
As a result, the following specification can be used to generate clients in a number of different languages via OpenAPI Generator. - Source: dev.to / about 2 years ago
As an alternative, you can also use the official OpenAPI Generator, which is a more generic tool supporting a wide range of languages and frameworks. - Source: dev.to / over 2 years ago
I trialed generating SDKs using the OpenAPI Generator package, which was largely unsatisfactory. - Source: dev.to / over 2 years ago
If Swagger/OpenAPI is available, save yourself a lot of trouble and generate the client using OpenAPI Generator. If not, use a library like RestEase to make it significantly easier to create the client. Source: over 2 years ago
For a run of the mill REST API you should generate OpenAPI (Swagger) info for the API using a library like NSwag or Swashbuckle. You'd want to do this no matter what because it's documentation for the API, but the bonus is that you can use it with tools like OpenAPI Generator to create API client code and models in a variety of languages. You certainly can create an API client library manually, it would entail... Source: over 2 years ago
Then you can use oapi-codegen or openapi-generator to generate the Go (or other language) SDK for it. Source: over 2 years ago
Yep. For frontend use, I think https://www.npmjs.com/package/openapi-typescript is the most widely-used/well-regarded, though https://www.npmjs.com/package/orval seems to me to have some nicer features like react-query support. There are other options too, I'd just stay away from "_the_ openapi generator" (https://openapi-generator.tech/) which does a pretty poor job IMO. Disclaimer: I'm the founder of a company... - Source: Hacker News / over 2 years ago
Now that I have a solid way to make an Open API spec and get a functioning mock server, I'd like to take it a step further and generate an SDK to call it. Many developers use SDKs to communicate with their backend services, and tools like OpenAPI Generator enable them to do so without having to manually build them. OpenAPI Generator will take an API spec and compile it down into an SDK in the language of your... - Source: dev.to / over 2 years ago
With the development of automatic code generation tools such OpenAPI generator (https://openapi-generator.tech/), the importance of API design rather than implementation is emphasized. - Source: dev.to / almost 3 years ago
It's just a ton of work to make a good SDK in every major language. Something I haven't seen mentioned much on this thread is that the ~top feature people want from SDKs at this point is good static types โ so you can get autocomplete, docs-on-hover, etc in your editor. Way better than switching back and forth to the docs and crossing your fingers. Doing that well means copying every little change into the SDKs... - Source: Hacker News / almost 3 years ago
To achieve this, we ensure that our API adheres to the OpenAPI 3 specification, enabling us to store a comprehensive description of the API in JSON format. By leveraging the OpenAPI Generator, we efficiently generate a client in the required language, which, in our case, is Dart for Flutter, using the dart-dio Generator. This approach ensures smooth and efficient communication with the API, facilitating regular... - Source: dev.to / almost 3 years ago
In short, OpenAPI Generator allows generation of API client librairies (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3). - Source: dev.to / about 3 years ago
For my current project, the backend is deployed to Lambda but written in Rust. The API model types (e.g., SomeRouteRequest and SomeRouteResponse) are auto-generated from the OpenAPI spec using OpenAPI Generator's Rust generator. I had to write a script to manually generate traits with function signatures for each route handler from the OpenAPI spec. Then, my code implements that trait, and the compiler type checks... Source: about 3 years ago
If your backend has swagger/openapi, you could always generate types and even clients that way with openapi-generator https://openapi-generator.tech/. Source: about 3 years ago
Unless you are trying to build some kind of offline mode, all your frontend should know about the backend is the response schema. You could feed an OpenAPI spec to something like https://openapi-generator.tech/ and generate a Dart client. Then, whenever some endpoint changes you will have to regenerate the client. Bonus points for doing API versioning. Source: over 3 years ago
Do you know an article comparing OpenAPI Generator to other products?
Suggest a link to a post with product alternatives.
Is OpenAPI Generator good? This is an informative page that will help you find out. Moreover, you can review and discuss OpenAPI Generator here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.
It works perfectly for generating open api clients, servers