awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
swaggo avatar

swaggo/gin-swagger

0
View on GitHub↗
4,231 stars·297 forks·Go·MIT·6 views

Gin Swagger

gin-swagger is a Swagger UI middleware for the Gin web framework that serves as an OpenAPI 2.0 documentation generator. It provides an interactive REST API sandbox and a browser-based interface for visualizing API contracts and testing endpoints.

The project allows for the hosting of multiple API definitions on a single router by assigning each a unique name. It enables the customization of the interface's visual presentation and behavior, including the control of expansion depth and authorization persistence.

The middleware intercepts routes to deliver API definitions as JSON payloads and embeds the necessary static assets for the UI directly into the binary. It facilitates interactive API testing to verify request and response structures through a web browser.

Features

  • API Documentation Hosting - Serves an interactive, browsable UI for visualizing and interacting with OpenAPI specifications.
  • Specification Delivery Endpoints - Provides HTTP endpoints that serve the OpenAPI specification as a JSON payload for the frontend UI.
  • OpenAPI Specification Visualizers - Serves and visualizes API definitions based on the OpenAPI 2.0 specification.
  • Interactive API Sandboxes - Provides a browser-based sandbox for testing REST endpoints and verifying request and response structures.
  • Contract Visualizations - Provides a visual representation of API definitions to help developers understand request and response structures.
  • API Endpoint Testing - Offers a browser-based interface for sending live requests to verify server responses against the API spec.
  • Request Interception Middlewares - Implements middleware that intercepts incoming HTTP requests to serve the Swagger UI and API definitions.
  • UI Middleware Hosting - Implements middleware that hosts the Swagger UI directly within the Gin request pipeline.
  • REST API Documentation UIs - Automatically creates and hosts a web interface for browsing and testing API endpoints using the Swagger 2.0 specification.
  • Web Framework Integrations - Provides specialized middleware that integrates the Swagger UI into the Gin web framework.
  • API Definition Mappings - Allows hosting multiple API documentation sets on a single router by mapping unique request paths to different definitions.
  • Static Asset Embedding - Bundles Swagger UI static assets directly into the Go binary for standalone distribution without external dependencies.
  • Multi-Definition Hosting - Supports the deployment of several distinct API documentation instances on a single router for clear separation.
  • Documentation Tools - Swagger middleware for Gin framework.

Star history

Star history chart for swaggo/gin-swaggerStar history chart for swaggo/gin-swagger

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does swaggo/gin-swagger do?

gin-swagger is a Swagger UI middleware for the Gin web framework that serves as an OpenAPI 2.0 documentation generator. It provides an interactive REST API sandbox and a browser-based interface for visualizing API contracts and testing endpoints.

What are the main features of swaggo/gin-swagger?

The main features of swaggo/gin-swagger are: API Documentation Hosting, Specification Delivery Endpoints, OpenAPI Specification Visualizers, Interactive API Sandboxes, Contract Visualizations, API Endpoint Testing, Request Interception Middlewares, UI Middleware Hosting.

What are some open-source alternatives to swaggo/gin-swagger?

Open-source alternatives to swaggo/gin-swagger include: domaindrivendev/swashbuckle.aspnetcore — Swashbuckle.AspNetCore is an API specification tool and documentation generator for ASP.NET Core. It extracts metadata… springdoc/springdoc-openapi — springdoc-openapi is a library and toolset that analyzes Spring applications at runtime to produce machine-readable… go-swagger/go-swagger — go-swagger is a toolkit for working with Swagger/OpenAPI 2.0 specifications in Go. It generates server, client, and… flasgger/flasgger — Flasgger is a documentation framework for Flask applications that generates OpenAPI specifications and an integrated… goadmingroup/go-admin — go-admin is a framework for generating administrative interfaces and data visualization dashboards using the Go… ricosuter/nswag — NSwag is an OpenAPI toolchain for .NET that provides a suite of generators for converting OpenAPI specifications and…

Open-source alternatives to Gin Swagger

Similar open-source projects, ranked by how many features they share with Gin Swagger.
  • domaindrivendev/swashbuckle.aspnetcoredomaindrivendev avatar

    domaindrivendev/Swashbuckle.AspNetCore

    5,492View on GitHub↗

    Swashbuckle.AspNetCore is an API specification tool and documentation generator for ASP.NET Core. It extracts metadata from source code and models to produce standardized OpenAPI specifications and interactive browser interfaces for exploring and testing web APIs. The project integrates a middleware component to serve these specifications and a Swagger UI for interactive API testing directly from a running application. It also provides a command-line exporter to extract specification files from application assemblies for use in CI/CD pipelines. The tool covers a wide range of capabilities in

    C#
    View on GitHub↗5,492
  • springdoc/springdoc-openapispringdoc avatar

    springdoc/springdoc-openapi

    3,674View on GitHub↗

    springdoc-openapi is a library and toolset that analyzes Spring applications at runtime to produce machine-readable OpenAPI specifications in JSON and YAML formats. It serves as an integrator that extracts API metadata from Java source code and annotations to automate documentation for Spring-based services. The project distinguishes itself through its ability to aggregate API specifications from multiple remote microservices into a single unified interface and provide multiple visualization options, including Swagger UI and Scalar. It also offers a dedicated plugin for exporting documentatio

    Javajavajson-formatkotlin
    View on GitHub↗3,674
  • go-swagger/go-swaggergo-swagger avatar

    go-swagger/go-swagger

    9,989View on GitHub↗

    go-swagger is a toolkit for working with Swagger/OpenAPI 2.0 specifications in Go. It generates server, client, and CLI code from a specification document, and can also produce a specification by scanning annotated Go source code. The project includes a static validation engine that checks documents against the schema and project-specific rules, and a specification transformation pipeline that resolves, flattens, and merges documents. The toolkit generates both client and server code from the same specification, ensuring consistency in request and response handling. It also produces a command

    Goapicode-generatorgo
    View on GitHub↗9,989
  • flasgger/flasggerflasgger avatar

    flasgger/flasgger

    3,740View on GitHub↗

    Flasgger is a documentation framework for Flask applications that generates OpenAPI specifications and an integrated Swagger UI. It functions as a documentation generator and specification parser that extracts API schemas from route definitions, function docstrings, and external specification files. The tool allows API definitions to be maintained either within the source code using YAML blocks in docstrings or decoupled into standalone YAML files. It provides a browser-based interactive console for testing and exploring API endpoints directly from the web application. Beyond documentation,

    Python
    View on GitHub↗3,740
See all 30 alternatives to Gin Swagger→