SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Go Swagger Projects
-
gin-vue-admin
🚀Vite+Vue3+Gin的开发基础平台,支持TS和JS混用。它集成了JWT鉴权、权限管理、动态路由、显隐可控组件、分页封装、多点登录拦截、资源权限、上传下载、代码生成器、表单生成器和可配置的导入导出等开发必备功能。
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
goa
🌟 Goa: Elevate Go API development! 🚀 Streamlined design, automatic code generation, and seamless HTTP/gRPC support. ✨
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
kin-openapi
OpenAPI 3.0 (and Swagger v2) implementation for Go (parsing, converting, validation, and more)
-
Faygo
Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct handler, faygo will automatically bind/verify the request parameters and generate the online API doc.
-
fiber-go-template
📝 Production-ready backend template with Fiber Go Web Framework for Create Go App CLI.
-
api-firewall
Fast and light-weight API proxy firewall for request and response validation by OpenAPI specs.
-
apiclarity
An API security tool to capture and analyze API traffic, test API endpoints, reconstruct Open API specification, and identify API security risks.
-
go-starter
An opinionated production-ready SQL-/Swagger-first RESTful JSON API written in Go, highly integrated with VSCode DevContainers by allaboutapps.
-
microservices-go
Golang Microservice Boilerplate using MySQL, Docker and Swagger, API REST. Gin Go and GORM with pagination and implementation of a Clean Architecture.
-
vacuum
vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. Built in go, it tears through API specs faster than you can think. vacuum is compatible with Spectral rulesets and generates compatible reports.
-
tutorial-go-fiber-rest-api
📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Project mention: I write HTTP services in Go after 13 years (Mat Ryer, 2024) | news.ycombinator.com | 2024-02-09it lacks flexibility but i really enjoy grpc-gateway for 99% of my work
https://github.com/grpc-ecosystem/grpc-gateway
Project mention: Seeking Advice on the Best Swagger Generation Approach for REST API | /r/golang | 2023-12-05Hey Gophers, I'm exploring Swagger generation for a REST API in Go (using go-chi). Currently, I'm testing https://github.com/swaggo/swag/, but I'm uncertain if it's the optimal solution. What are your thoughts or recommendations?
you can have a look at https://github.com/eddycjy/go-gin-example you don't have to use gin as the framework rather than looking at how he structure the folders.
My experience of Golang is that dependency injection doesn't really have much benefit. It felt like a square peg in a round hole exercise when my team considered it. The team was almost exclusively Java/Typescript Devs so it was something that we thought we needed but I don't believe we actually missed once we decided to not pursue it.
If you are looking at OpenAPI in Golang I can recommend having a look at https://goa.design/. It's a DSL that generates OpenAPI specs and provides an implementation of the endpoints described. Can also generate gRPC from the same definitions.
We found this removed the need to write almost all of the API layer and a lot of the associated validation. We found the generated code including the server element to be production ready from the get go.
Project mention: TypeSpec: A New Language for API-Centric Development | news.ycombinator.com | 2024-04-29
We'll use the excellent kin-openapi Go library to convert the OpenAPI 2.0 schema to OpenAPI 3.0.
Project mention: I write HTTP services in Go after 13 years (Mat Ryer, 2024) | news.ycombinator.com | 2024-02-09https://github.com/ogen-go/ogen
Write openapi definition, it'll do routing, definition of structs, validation of JSON schemas, etc.
All I need to do is implement the service.
Validating an integer range for a querystring parameter is just too boring. And too easy to mistype when writing it manually.
Anyways, so far only been playing, so haven't found the bad parts yet.
Project mention: Looking for Open-source web app back-end repository written in Golang | /r/golang | 2023-12-08Project using APIBin for examples https://rest.sh
Project mention: api-firewall VS asteria - a user suggested alternative | libhunt.com/r/api-firewall | 2023-08-27
We'll install APIClarity into a Kubernetes cluster to test our API documentation. We're using a Kind cluster for demonstration purposes. Of course, if you have another Kubernetes cluster up and running elsewhere, all steps also work there.
Since the OpenAPI can effectively describe our resources, we can reuse it to generate a dummy server that can be later used for development and testing purposes without bootstrapping any actual services. There some tools available that can help us with this task, such as Prism, OpenAPI Mock, OpenAPI Backend and the MSW library we have already seen.
Project mention: Show HN: Extensible OpenAPI linter written in go | news.ycombinator.com | 2024-04-03
Go Swagger related posts
-
TypeSpec: A New Language for API-Centric Development
-
Serverless APIs: Auto-Generate OpenAPI Docs & CI/CD Protections
-
How Can You Achieve Continuous Deployment for *APIs*?
-
Created an API using Gin, want to create sdk for him
-
Seeking Advice on the Best Swagger Generation Approach for REST API
-
Create Production-Ready SDKs with Goa
-
Manage DEV Articles with Git and GitHub Actions
-
A note from our sponsor - SaaSHub
www.saashub.com | 4 May 2024
Index
What are some of the best open-source Swagger projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | gin-vue-admin | 20,048 |
2 | grpc-gateway | 17,391 |
3 | swag | 9,812 |
4 | go-gin-example | 6,709 |
5 | goa | 5,465 |
6 | oapi-codegen | 5,206 |
7 | gin-swagger | 3,570 |
8 | kin-openapi | 2,397 |
9 | Flagr | 2,366 |
10 | Faygo | 1,601 |
11 | ogen | 1,083 |
12 | eliasdb | 986 |
13 | fiber-go-template | 835 |
14 | restish | 650 |
15 | Go-Clean-Architecture-REST-API | 641 |
16 | oasdiff | 584 |
17 | api-firewall | 534 |
18 | apiclarity | 475 |
19 | openapi-mock | 470 |
20 | go-starter | 436 |
21 | microservices-go | 425 |
22 | vacuum | 425 |
23 | tutorial-go-fiber-rest-api | 341 |
Sponsored