Registry / web-framework / emicklei-go-restful-openapi-v2

emicklei-go-restful-openapi-v2

JSON →
library2.12.1gogounverified

A Go library for generating OpenAPI 2.0 specifications from go-restful web services.

go get github.com/emicklei/go-restful-openapi/v2
INSTALL
IMPORT
SIG · EMICKLEI-GO-RESTFU
E
emicklei-go-restful-openapi-v2
web-frameworkgov2.12.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

openapi
github.com/emicklei/go-restful-openapi/v2

Build an OpenAPI 2.0 specification from a go-restful web service.

package main import ( "fmt" restful "github.com/emicklei/go-restful/v3" "github.com/emicklei/go-restful-openapi/v2" ) func main() { ws := new(restful.WebService) config := openapi.Config{WebServices: []*restful.WebService{ws}} doc, _ := openapi.BuildConfig(config) fmt.Println(doc) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.12.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
emicklei-go-restful-openapi-v2 — go get emicklei-go-restful-openapi-v2 · libregistry