swagger-petstore
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition. (by swagger-api)
openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) (by OpenAPITools)
swagger-petstore | openapi-generator | |
---|---|---|
29 | 254 | |
17,424 | 24,003 | |
0.5% | 1.8% | |
6.5 | 9.9 | |
4 days ago | 6 days ago | |
Mustache | Java | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swagger-petstore
Posts with mentions or reviews of swagger-petstore.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-11-22.
- Implement swaggo
-
Simplifying Angular Development with Swagger: A Step-by-Step Guide
Swagger offers more than just a user-friendly interface for exploring APIs. It also provides multiple generators that can produce code typically written by hand. As an Angular developer, this blog post will focus on the typescript-angular generator.
-
Generate Kotlin client for a complex web API
Failed to create a client for Java. The generator imports Java's types instead of TeamCity's. There are bugs described for the Java client in both the Swagger generator and the OpenAPI generator. Let's see how the generator behaves when building a Kotlin client.
- Alguma alma caridosa UI/UX dev, para um serviço púbico gratuito, livre e de código aberto?
-
Recommendations for Rust Open-API client generators? (Looking to experiment with api.congress.gov)
[swagger-codegen](https://github.com/swagger-api/swagger-codegen) generates code from an OpenAPI definition, and it supports Rust code output (client and/or server).
-
Document your API with OpenAPI standard
Swagger contains three greats tools to work with the specification: Swagger UI, Swagger Editor and Swagger Codegen. The Swagger UI renders OpenAPI specs as interactive API documentation, Swagger Editor is a browser-based editor where you can write OpenAPI specs and Swagger Codegen generates server stubs and client libraries from an OpenAPI spec like the OpenAPI generator.
-
Using Swagger API
We ran into some minor issues (#1201, #1210, #1355, #1356 and #1769) and fixed some stuff we stumbled upon along the way, although it didn't really bother us as well (#1451 and #1769).
-
Integrating Swagger/OpenAPI generated python server with existing Flask application
I am interested in integrating a swagger-codegen generated Python server with an existing Flask application. swagger-codegen generates a Python implementation based on the Connexion library from a Swagger API specification.
-
How to replace type methods in Swift to improve testability
The method takes a query, String, and a completion block, (Result<[String], Error>) -> Void, which is triggered once the request finishes. Its internal implementation doesn't really matter since it could be from an external framework or generated by a code generator from the API specification.
-
Where are the documentation for server stub generation with swagger codegen?
The Java codegen options are here: https://github.com/swagger-api/swagger-codegen/issues/7795 (believe it or not).
openapi-generator
Posts with mentions or reviews of openapi-generator.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-05-28.
-
How To Introduce a New API Quickly Using Micronaut
The beta version was able to generate the expected Quote model object, but I ran into issues trying to generate an interface or abstract class that my controllers could extend. So I decided to create an issue in the openapi-generator library (link for those who are interested in the details) and pivot toward another approach.
-
Revolutionize Your API Development: Unleash the True Power of OpenAPI Generator!
Step 1: Locate the Right Template For Spring-based projects, navigate to: JavaSpring/ Key templates to modify: model.mustache → Handles imports pojo.mustache → Defines annotation
-
Programming in D: Tutorial and Reference
It would be great if D supported something like OpenAPI generator https://github.com/OpenAPITools/openapi-generator
Maybe it exists and I am just ignorant but it doesn't seem to be in the list of supported languages.
-
API-First Development in Scala
various openapi-generator plugins
-
Generate JAVA code from OpenAPI specification
OpenAPI Generator Gradle Plugin
-
Show HN: FastOpenAPI – automated docs for many Python frameworks
I'm also really happy with spec first. We're using openapi-generator[1] to generate types from a yaml schema (inverting the more standard approach of generating the yaml) in our Typescript (mostly Nest.js) backends, and export those types as packages for use in our frontends.
[1] https://github.com/OpenAPITools/openapi-generator
-
openapi-generator VS lapidary-render - a user suggested alternative
2 projects | 16 Mar 2025
-
Using OpenAPI to Automate API Integration With Rapyd's Payment Gateway
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.
-
Define, Generate, and Implement: An API-First Approach with OpenAPI Generator and FlightPHP
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.
-
Redefining our SDKs Developer Experience
Until now, we relied on an open-source OpenAPI generator to build our SDKs. While it served us well, the maintenance and scalability challenges became apparent as we expanded our platform. Key pain points included:
What are some alternatives?
When comparing swagger-petstore and openapi-generator you can also consider the following projects:
stripe-core - :moneybag: Stripe API
NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
yesod-persistent - A RESTful Haskell web framework built on WAI.
kiota - OpenAPI based HTTP Client code generator
servant-purescript - Translate servant API to purescript code, with the help of purescript-bridge.
oapi-codegen - Generate Go client and server boilerplate from OpenAPI 3 specifications