Skip to content

Latest commit

 

History

History
44 lines (40 loc) · 644 Bytes

File metadata and controls

44 lines (40 loc) · 644 Bytes

Document

Fns document handler.

Install

go get github.com/aacfactory/fns-contrib/transports/handlers/documents

Use

fns.New(fns.Handler(documents.New()))

Config

transport:
  handlers:
    documents:
      enable: true
      openAPI:
        version: "openapi version"
        title: ""
        description: ""
        term: ""

URL

Raw document

/documents 

Openapi view (latest)

/documents/openapi/index.html

Openapi view (by version)
It will find major and miner matched.

/documents/openapi/index.html?version=v1.0

Openapi document

/documents?openapi=latest