petstore

package
v0.0.0-...-0e3049a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPI

func NewAPI(t *gotest.T) (*spec.Document, *untyped.API)

NewAPI registers a stub api for the pet store

func NewRootAPI

func NewRootAPI(t *gotest.T) (*spec.Document, *untyped.API)

NewRootAPI registers a stub api for the pet store

Types

type Pet

type Pet struct {
	ID        int64
	Name      string
	PhotoURLs []string
	Status    string
	Tags      []Tag
}

Pet the pet model

type Tag

type Tag struct {
	ID   int64
	Name string
}

Tag the tag model

Jump to

Keyboard shortcuts

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