openapi

package
v0.0.0-...-4670381 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package openapi provides handlers for fetching the OpenAPI specification for the service. Functionality in this package is primarily tested using API tests within the /tests directory of this project.

OpenAPI specifications (formerly Swagger) provide a way of documenting REST APIs in a machine readable manner. Due to the nature and variety of services, it isn't always possibly to nicely encode a service, however, it is capable of covering all standard use cases quite well. The ability to comfortable fit an API into a specification can be considered a sign of good logical design; a rule of thumb, other factors should also be considered.

They are fairly easy and quick to create and work best with JSON based services. A modified version of JSON schema is defined so request and response bodies can be specified then presented via a UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenAPIHandler

func OpenAPIHandler(res http.ResponseWriter, req *http.Request)

OpenAPIHandler handles requests for the services OpenAPI specification

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL