qmetrics.net

Gin Swagger

Gin middleware for Swagger 2.0 API documentation

Middleware for Gin web servers that serves automatically generated Swagger 2.0 documentation for REST APIs. Works with the swag tool and generated docs package.

Overview

Gin Swagger is middleware you add to a Gin HTTP application so clients can browse REST API documentation in Swagger 2.0 format. It is meant to be used together with swag, which reads API comment annotations and writes a docs folder and Go package that describe your routes.

After annotating handlers and running swag init, you import the generated docs and register the middleware on your Gin router. The middleware can point at the API definition URL, control how tags and operations expand in the UI, enable deep linking, tune model display, and keep OAuth authorization data across reloads when configured.

The project supports multiple swagger document instances on one router via instance names, nested project layouts, and configuration options introduced in newer swag releases. It targets teams already using Gin who want interactive API docs without maintaining a separate specification by hand.

Key features

  • Swagger 2.0 REST API docs UI
  • Gin router middleware integration
  • Configurable Swagger UI options
  • Multiple swagger instances per router
  • OAuth2 dialog defaults
  • Works with swag-generated docs
  • Nested directory project support
  • Persist authorization in browser

Use cases

  • Documenting Gin REST services
  • Interactive API exploration during development
  • Serving OpenAPI-style docs from Go comments
  • Multiple API surfaces on one Gin app

Tags

Similar software

Swagger UI

Interactive OpenAPI reference documentation UI

Swagger UI renders OpenAPI and standalone JSON Schema specs as browsable, try-it-out API documentation in the browser. It ships as npm packages or static assets for your site.

  • OpenAPI-driven doc generation
  • Try-it-out request console
  • Multiple OpenAPI version support
JavaScriptWebDetails →
★ 29.1k⟳ todayApache-2.0

MSW

JavaScript API mocking through network-level request interception

Mock Service Worker lets you define HTTP mocks once and reuse them in browsers and Node.js. Applications keep calling real APIs while responses are substituted at the network layer.

  • Browser Service Worker interception
  • Node.js setupServer API
  • Shared handlers across environments
TypeScriptWebDetails →
★ 18.4k⟳ todayMIT

GraphiQL

GraphQL IDE, language service, and editor integration toolkit

An official GraphQL Foundation monorepo with the GraphiQL browser IDE, language services, LSP server, and editor modes for GraphQL development.

  • In-browser GraphiQL IDE in React
  • Shared GraphQL language service package
  • LSP server and CLI for editor extensions
TypeScriptWeb, CLIDetails →
★ 17k⟳ todayMIT

Scalar

OpenAPI-native API references, client, and docs tooling

Scalar is an open-source API platform centered on OpenAPI and Swagger. It offers interactive API references, an offline-first API client, and related docs and agent-facing tooling.

  • OpenAPI and Swagger rendering
  • Built-in API testing
  • Multi-language code examples
TypeScriptWeb, Linux, macOS, WindowsDetails →
★ 16.5k⟳ todayMIT
Open Source Alternative to:Postman

swag

Go annotation-driven Swagger 2.0 API documentation generator

Swag reads declarative comments in Go source and emits Swagger 2.0 specs plus a docs package for frameworks such as Gin. A CLI formats comments, initializes docs, and supports Docker or binary installs.

  • Swagger 2.0 generation
  • Declarative Go comments
  • Gin framework integration
GoDockerDetails →
★ 13k⟳ 2 months agoMIT · open core

REST Client

HTTP and GraphQL client inside Visual Studio Code

REST Client sends HTTP, GraphQL, and cURL requests from editor files and shows highlighted responses, variables, auth, and history in VS Code.

  • Send HTTP requests from .http files
  • GraphQL query and variables support
  • cURL import and copy as cURL
TypeScriptDetails →
★ 6.1k⟳ 10 months agoMIT