package petstore

import "github.com/go-openapi/runtime/internal/testing/petstore"

Index

Functions

func NewAPI

func NewAPI(t gotest.TB) (*loads.Document, *untyped.API)

NewAPI registers a stub api for the pet store

func NewRootAPI

func NewRootAPI(t gotest.TB) (*loads.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

Source Files

api.go

Version
v0.19.29
Published
Apr 26, 2021
Platform
windows/amd64
Imports
13 packages
Last checked
1 minute ago

Tools for package owners.