🌐
GitHub
github.com › swaggo › gin-swagger
GitHub - swaggo/gin-swagger: gin middleware to automatically generate RESTful API documentation with Swagger 2.0. · GitHub
gin middleware to automatically generate RESTful API documentation with Swagger 2.0. - swaggo/gin-swagger
Starred by 4.2K users
Forked by 294 users
Languages   Go
🌐
Go Packages
pkg.go.dev › github.com › swaggo › gin-swagger
ginSwagger package - github.com/swaggo/gin-swagger - Go Packages
September 2, 2025 - CustomWrapHandler wraps `http.Handler` into `gin.HandlerFunc`. ... DeepLinking set the swagger deep linking configuration.
🌐
Liu Houliang
liuhouliang.com › en › post › gin-swagger
Multiple API Docs with Gin-Swagger - Liu Houliang
gin-swagger is a handy tool for generating API documentation. With the Gin framework, you can simply add annotations to your API code and run swag init to create documentation. However, gin-swagger uses Swagger 2.0, which doesn’t support project switching. This became a challenge when I needed ...
🌐
Medium
medium.com › @kumar16.pawan › integrating-swagger-with-gin-framework-in-go-f8d4883f4833
Integrating Swagger with Gin Framework in Go. | by Pawan Kumar | Medium
October 5, 2022 - gin-swagger uses gin middleware to automatically generate RESTful API documentation with Swagger 2.0
🌐
GitHub
github.com › long2ice › swagin
GitHub - long2ice/swagin: Swagger + Gin = SwaGin, a web framework based on Gin and Swagger
SwaGin is a web framework based on Gin and Swagger, which wraps Gin and provides built-in swagger api docs and request model validation.
Starred by 70 users
Forked by 18 users
Languages   Go 94.0% | HTML 3.6% | Dockerfile 2.4% | Go 94.0% | HTML 3.6% | Dockerfile 2.4%
🌐
DEV Community
dev.to › santosh › how-to-integrate-swagger-ui-in-go-backend-gin-edition-2cbd
How to Integrate Swagger UI in Go Backend - Gin Edition - DEV Community
May 30, 2022 - That is how we create a path route in Gin. API documentation is an essential part of API documentation. Instead of documenting the endpoints anywhere else, we can document the routes right in the code. That way we only have 1 single source of truth. No need to maintain code and documentation separately. In turn, we get always up-to-date documentation. Every backend server has some sort of support for Swagger UI.
🌐
GitHub
github.com › swaggo › gin-swagger › releases
Releases · swaggo/gin-swagger
September 2, 2025 - gin middleware to automatically generate RESTful API documentation with Swagger 2.0. - Releases · swaggo/gin-swagger
Author   swaggo
🌐
Go Packages
pkg.go.dev › github.com › amalmsc › gin-swagger
ginSwagger package - github.com/amalmsc/gin-swagger - Go Packages
github.com/amalmsc/gin-swagger · Open Source Insights · gin middleware to automatically generate RESTful API documentation with Swagger 2.0. Add comments to your API source code, See Declarative Comments Format. Download Swag for Go by using: $ go get -u github.com/swaggo/swag/cmd/swag ·
🌐
WesionaryTEAM
articles.wesionary.team › modern-api-documentation-with-swagger-in-go-gin-2aee10cb7bb9
Modern API Documentation with Swagger in Go GIN | by Mukesh Kumar Chaudhary | wesionaryTEAM
December 31, 2024 - Check out this example https://codepen.io/scalarorg/pen/VwOXqam --> <script id="api-reference" type="application/json" data-url="%s" ></script> <script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script> </body> </html> `, scheme+ctx.Request.Host+"/swagger") ctx.String(http.StatusOK, content) }) }go ... func main() { r := gin.Default() ...
Find elsewhere
🌐
Vercel
azar-writes-blogs.vercel.app › post › Simplifying-Documentation:-Generate-Swagger-for-Your-Go-Gin-Server-Automatically-with-Swag-831649429ff24428bfaf3f59eb1ad83e
Generate Swagger for Your Go-Gin Server Automatically ...
April 22, 2024 - Swag: Swag is a Go library that automatically generates Swagger documentation for Go-based web servers. It parses Go files containing certain comments and converts them into a Swagger JSON file, which can then be used to generate API documentation. Now that we have a basic understanding, let's ...
🌐
GitHub
github.com › mikkeloscar › gin-swagger
GitHub - mikkeloscar/gin-swagger: DRY templates for go-swagger
It is based on go-swagger which is used for the code generation. You can simply run go get to install gin-swagger.
Starred by 92 users
Forked by 20 users
Languages   Go 98.9% | Makefile 1.1% | Go 98.9% | Makefile 1.1%
🌐
GitHub
github.com › swaggo › gin-swagger › blob › master › example › basic › main.go
gin-swagger/example/basic/main.go at master · swaggo/gin-swagger
gin middleware to automatically generate RESTful API documentation with Swagger 2.0. - swaggo/gin-swagger
Author   swaggo
🌐
Go Packages
pkg.go.dev › github.com › mikkeloscar › gin-swagger
gin-swagger command - github.com/mikkeloscar/gin-swagger - Go Packages
November 15, 2024 - It is based on go-swagger which is used for the code generation. You can simply run go get to install gin-swagger.
🌐
Stack Overflow
stackoverflow.com › questions › 42766501 › how-to-create-swagger-json-in-go-gin-gonic
How to create swagger.json in go gin-gonic - Stack Overflow
go generate cat swagger.json { "swagger": "2.0", "paths": {}, "definitions": {} } If this is not an option, should I look into a different framework for the same? ... Gin uses goswagger as a base.
🌐
LogRocket
blog.logrocket.com › home › documenting go web apis with swag
Documenting Go web APIs with Swag - LogRocket Blog
June 4, 2024 - Add the following code to the router configuration in main.go: ... Swag is middleware that helps to automatically generate RESTful API documentation with Swagger 2.0 for Go directly from source code using annotations.
🌐
GitHub
github.com › swaggo › gin-swagger › tree › master › example
gin-swagger/example at master · swaggo/gin-swagger
gin middleware to automatically generate RESTful API documentation with Swagger 2.0. - swaggo/gin-swagger
Author   swaggo
🌐
DEV Community
dev.to › getpieces › how-to-build-and-document-a-go-rest-api-with-gin-and-go-swagger-jgb
How to Build and Document a Go REST API with Gin and Go-Swagger - DEV Community
March 11, 2024 - In this blog post, we will go over what an API is, how to build a basic Go REST API using the Gin framework, and how to document the API using the go-swagger package.
🌐
GitHub
github.com › swaggo › gin-swagger › blob › master › README.md
gin-swagger/README.md at master · swaggo/gin-swagger
gin middleware to automatically generate RESTful API documentation with Swagger 2.0. - swaggo/gin-swagger
Author   swaggo