go-swagger-ui alternatives and similar packages
Based on the "Third-party APIs" category.
Alternatively, view go-swagger-ui alternatives based on common mentions on social networks and blogs.
-
githubql
Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql). -
openaigo
OpenAI GPT3/3.5 and GPT4 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested -
gostorm
GoStorm is a Go library that implements the communications protocol required to write Storm spouts and Bolts in Go that communicate with the Storm shells.
InfluxDB - Purpose built for real-time analytics at any scale.
Do you think we are missing an alternative of go-swagger-ui or a related project?
README
go-swagger-ui
This repo provides go handlers for serving swagger.json
and the Swagger UI.
Commonly used with grpc-gateway compiled swagger.
Usage
import (
"github.com/esurdam/go-swagger-ui"
)
// Asset represents a AssetFn - compiled bindata swagger file
mux := swaggerui.NewServeMux(Asset, "swagger.json") // add swagger bindata asset
// /swagger.json serves json
// /swagger-ui serves the swagger-ui
With custom root:
import (
"github.com/esurdam/go-swagger-ui"
)
// Asset represents a AssetFn - compiled bindata swagger file
mux := swaggerui.NewServeMuxWithRoot(Asset, "swagger.json", "/v1/auth") // add swagger bindata asset
// v1/auth/swagger.json serves json
// v1/auth/swagger-ui serves the swagger-ui
Updating UI
swagger
directory contains auto-generated output.
- Add updated assets to //third_party/swagger-ui
- Run
make build
which will compile swagger intoswagger/bindata.go
*Note that all licence references and agreements mentioned in the go-swagger-ui README section above
are relevant to that project's source code only.