swagger-ui VS openapi-generator

Compare swagger-ui vs openapi-generator and see what are their differences.

swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API. (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)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
swagger-ui openapi-generator
131 234
25,507 19,807
1.1% 3.1%
9.8 9.9
5 days ago 2 days ago
JavaScript Java
Apache License 2.0 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.

swagger-ui

Posts with mentions or reviews of swagger-ui. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-11.
  • Simplifying Angular Development with Swagger: A Step-by-Step Guide
    3 projects | dev.to | 11 Apr 2024
    Swagger is a fantastic open-source toolset that's perfect for developing and describing RESTful APIs. It offers you a user-friendly interface to understand a service's capabilities without needing to dig into the code. It even provides a way for you to interact directly with the API, which means you get to test its functionality.
  • Open API with Postman
    3 projects | dev.to | 22 Mar 2024
    The API had an OpenAPI endpoint built with Swagger where I could download a JSON specification file for the API.
  • Best Software Documentation Tools
    4 projects | dev.to | 5 Feb 2024
    Swagger is a widely used tool for documenting and testing APIs.
  • How to Automatically Consume RESTful APIs in Your Frontend
    13 projects | dev.to | 25 Jan 2024
    Swagger is an open-source software framework that implements the OpenAPI Specification—an API description format for REST APIs. The OpenAPI Specification defines a standard, language-agnostic interface to HTTP APIs, enabling both humans and computers to discover and understand the capabilities of the API.
  • Embracing API-First Development: Building the Future of Software
    2 projects | dev.to | 24 Jan 2024
    Mocking and Testing: Once the API design is complete, developers create mock APIs to simulate the behavior of the actual services. This early testing phase helps identify any issues or mismatches between design and implementation before substantial development efforts are invested. Tools like Postman or Swagger are invaluable for API testing and validation.
  • Craft OpenAPI Specs & Production-Ready SDKs with Fastify
    5 projects | dev.to | 9 Nov 2023
    import fp from "fastify-plugin"; import swagger from "@fastify/swagger"; export default fp(async (fastify) => { fastify.register(swagger, { openapi: { info: { tags: [ { name: "drinks", description: "Drink-related endpoints", externalDocs: { description: "Find out more", url: "http://swagger.io", }, }, ], }, }, }); });
  • Como deixar o Swagger com tema dark mode usando NestJS
    2 projects | dev.to | 5 Nov 2023
  • Munca in QA manual
    1 project | /r/programare | 11 Jul 2023
  • ChatGPT: how I used it to convert HTTP requests to OpenAPI document
    2 projects | dev.to | 10 Jul 2023
    A very requested feature for Sharkio was the auto-generation of OpenAPI documentation using the recorded HTTP requests - to create standardized documentation.
  • What do people with a degree in computer science do at work?
    2 projects | /r/compsci | 25 Jun 2023
    Automation QA is a lot of the same duties as manual QA, but instead of writing and executing the test plans manually, we create and update automated tests that can run those validations programmatically, for example by using Selenium to automatically fill out and submit forms for a web application, or using Postman and/or Swagger to generate an API conversation test.

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 2024-04-24.
  • The Stainless SDK Generator
    10 projects | news.ycombinator.com | 24 Apr 2024
    Disclaimer: We're an early adopter of Stainless at Mux.

    I've spent more of my time than I'd like to admit managing both OpenAPi spec files [1] and fighting with openapi-generator [2] than any sane person should have to. While it's great having the freedom to change the templates an thus generated SDKs you get with using that sort of approach, it's also super time consuming, and when you have a lot of SDKs (we have 6 generated SDKs), in my experience it needs someone devoted to managing the process, staying up with template changes etc.

    Excited to see more SDK languages come to Stainless!

    [1] https://www.mux.com/blog/an-adventure-in-openapi-v3-api-code...

    [2] https://github.com/OpenAPITools/openapi-generator

  • FastAPI Got Me an OpenAPI Spec Really... Fast
    4 projects | dev.to | 22 Apr 2024
    As a result, the following specification can be used to generate clients in a number of different languages via OpenAPI Generator.
  • Show HN: Manage on-prem servers from my smartphone
    3 projects | news.ycombinator.com | 27 Mar 2024
    Of course you can compile the server from source if you have Go and the OpenAPI generator JAR (https://github.com/OpenAPITools/openapi-generator?tab=readme...)

    Follow these steps : https://github.com/c100k/rebootx-on-prem/blob/master/.github...

    And then :

    (cd ./impl/http-server-go && GOARCH=amd64 GOOS=openbsd go build -o /app/rebootx-on-prem-http-server-go-openbsd-amd64 -v)

    By adapting the arch if needed. Not tested, but it should work.

  • OpenAPI Generator v7.3.0 has new generators for Rust, Kotlin, Scala and Java
    1 project | news.ycombinator.com | 8 Feb 2024
  • Stop creating HTTP clients manually - Part I
    1 project | dev.to | 5 Feb 2024
    TL;DR: Start generating your HTTP clients and all the DTOs of the requests and responses automatically from your API, using openapi-generator instead of writing your own.
  • How to Automatically Consume RESTful APIs in Your Frontend
    13 projects | dev.to | 25 Jan 2024
    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.
  • Building a world-class suite of SDKs is easy with Speakeasy
    4 projects | dev.to | 10 Jan 2024
    I trialed generating SDKs using the OpenAPI Generator package, which was largely unsatisfactory.
  • Best way to implement base class for API calls?
    2 projects | /r/csharp | 7 Dec 2023
    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.
  • Sharing EF data access project DLL vs NuGet vs ?
    1 project | /r/dotnet | 7 Dec 2023
    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 having a nuget package with a class library that contains the models and client code for calling the endpoints (which I'd create using a lib such as RestEase unless you just enjoy writing boilerplate code by hand). However 95% of the time it simply isn't worth creating your own lib when OpenAPI is available because once you've done it a time or two it takes less than 5 min to run the generator and create (or update) a lib.
  • Created an API using Gin, want to create sdk for him
    3 projects | /r/golang | 7 Dec 2023
    Then you can use oapi-codegen or openapi-generator to generate the Go (or other language) SDK for it.

What are some alternatives?

When comparing swagger-ui and openapi-generator you can also consider the following projects:

fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production

NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.

ReDoc - 📘 OpenAPI/Swagger-generated API Reference Documentation [Moved to: https://github.com/Redocly/redoc]

oapi-codegen - Generate Go client and server boilerplate from OpenAPI 3 specifications

redoc - 📘 OpenAPI/Swagger-generated API Reference Documentation

SvelteKit - web development, streamlined

fiber-swagger - fiber middleware to automatically generate RESTful API documentation with Swagger 2.0.

smithy - Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.

prism - Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.

django-ninja - 💨 Fast, Async-ready, Openapi, type hints based framework for building APIs

drf-spectacular - Sane and flexible OpenAPI 3 schema generation for Django REST framework.

autorest - OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python