As a result, the following specification can be used to generate clients in a number of different languages via OpenAPI Generator. - Source: dev.to / 5 days 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 / 3 months ago
I trialed generating SDKs using the OpenAPI Generator package, which was largely unsatisfactory. - Source: dev.to / 4 months 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: 5 months 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: 5 months ago
Then you can use oapi-codegen or openapi-generator to generate the Go (or other language) SDK for it. Source: 5 months 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 / 5 months 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 / 5 months 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 / 7 months 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 / 9 months 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 / 9 months 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 / 11 months 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: 10 months 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: 10 months 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: about 1 year ago
Take a look at OpenAPI generator (https://openapi-generator.tech). You define your REST schema, and it will generate server stub code for you (flask and fastapi are supported, among others). It's not pretty, but it'll get you up and running quickly and you can see which one you like better. Source: about 1 year ago
While I could have written out a full API to talk to the Forem API, this would have taken a long time and I had an OpenAPI spec document, so I used OpenAPI Generator which can pretty much instantly generate a full API integration, just from the OpenAPI spec. While I'm using C# and .Net 6, this tool has a pretty large list of supported languages, so if you wanted to code something similar, you could absolutely use... - Source: dev.to / about 1 year ago
* * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Import type { Configuration } from './configuration'; Import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; Import type { RequestArgs } from './base'; Import { BaseAPI } from './base'; /** * * @export *... Source: about 1 year ago
I tried jane-php and open-api-generator however those tools generate a lot of stuff that is not needed. Moreover generated code looks like are a bit bloated for this use case. Source: about 1 year ago
OpenAPI Generator: The OpenAPI generator is a code generator that can automatically create documentation for your API using the OpenAPI specification. This specification is a standardised format for describing RESTful APIs, which makes it easy to generate documentation in a consistent and predictable way. The OpenAPI generator supports a wide range of programming languages, including Go, Java, Python, and many... - Source: dev.to / about 1 year ago
You can generate boilerplate code stubs with OpenAPI spec. Yes! You heard it right! You only need to write the business logic that’s all, everything will be generated for you. There are so many generators available for every programming language. Find it here https://openapi-generator.tech. GitHub repo for the same https://github.com/OpenAPITools/openapi-generator &... - Source: dev.to / about 1 year ago
Do you know an article comparing OpenAPI Generator to other products?
Suggest a link to a post with product alternatives.
This is an informative page about OpenAPI Generator. You can review and discuss the product 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