Back to godoc.org
github.com/go-openapi/runtime / internal / testing / simplepetstore

package simplepetstore

v0.19.19
Latest Go to latest
Published: Jun 17, 2020 | License: Apache-2.0 | Module: github.com/go-openapi/runtime

Index

func NewPetstore

func NewPetstore() (http.Handler, error)

NewPetstore creates a new petstore api handler

type Pet

type Pet struct {
	ID        int64    `json:"id"`
	Name      string   `json:"name"`
	PhotoURLs []string `json:"photoUrls,omitempty"`
	Status    string   `json:"status,omitempty"`
	Tags      []Tag    `json:"tags,omitempty"`
}

Pet the pet model

type Tag

type Tag struct {
	ID   int64
	Name string
}

Tag the tag model

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier