...

Package simplepetstore

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

Overview ▾

func NewPetstore

func NewPetstore() (http.Handler, error)

NewPetstore creates a new petstore api handler

type Pet

Pet the pet model

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"`
}

type Tag

Tag the tag model

type Tag struct {
    ID   int64
    Name string
}