api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const Author1Content = `{
	"@id": "/authors/1.jsonld",
	"name": "Kévin"
	}`

Author1Content contains the raw JSON of /authors/1.jsonld

View Source
const BooksContent = `` /* 208-byte string literal not displayed */

BooksContent contains the raw JSON of /books.jsonld

View Source
const OAAuthor1Content = `{
	"id": 1,
	"name": "Kévin"
}`

OAAuthor1Content contains the raw JSON of /authors/1

View Source
const OABooksContent = `{
	"member": [
		1,
		2
	]
}`

OABooksContent contains the raw JSON of /books

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONLDHandler

type JSONLDHandler struct {
}

JSONLDHandler provides a dummy JSON-LD API

func (*JSONLDHandler) ServeHTTP

func (h *JSONLDHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type OpenAPIHandler

type OpenAPIHandler struct {
}

OpenAPIHandler provides a dummy API documented with OpenAPI

func (*OpenAPIHandler) ServeHTTP

func (h *OpenAPIHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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