server

package
v0.0.1-0...-63727a9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: MIT Imports: 13 Imported by: 0

README

The server has the following url endpoints. The source of the content for the endpoint is listed, server/routes.go maps requests to handlers & server/handlers.go encode the content appropriately for the response.

/ - root.go/root() /conformance - conformance.go/conformance() /api - openapi.go/api()

Documentation

Index

Constants

View Source
const (
	JSONContentType = "application/json"
	HTMLContentType = "text/html" // Not yet supported
)
View Source
const (
	HTTPStatusOk          = 200
	HTTPStatusNotModified = 304
	HTTPStatusServerError = 500
	HTTPStatusClientError = 400

	HTTPMethodGET  = "GET"
	HTTPMethodHEAD = "HEAD"
)
View Source
const DEFAULT_PAGE_SIZE = 10

Variables

Functions

func StartServer

func StartServer(p data_provider.Provider)

Types

type HandlerError

type HandlerError struct {
	Details string `json:"detail"`
}

Jump to

Keyboard shortcuts

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