package simplepetstore

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

Index

Functions

func NewPetstore

func NewPetstore() (http.Handler, error)

NewPetstore creates a new petstore api handler

Types

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

Source Files

api.go

Version
v0.19.29
Published
Apr 26, 2021
Platform
windows/amd64
Imports
9 packages
Last checked
2 minutes ago

Tools for package owners.