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.28.0 (latest)
Published
Mar 9, 2024
Platform
js/wasm
Imports
9 packages
Last checked
2 hours ago

Tools for package owners.