Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorPetNotFound = errors.New("Pet not found")
View Source
var PetStore = NewStore()
Functions ¶
func GeneratePetStore ¶
Types ¶
type APIResponse ¶
type Pet ¶
type Pet struct {
// id
ID int64 `json:"id,omitempty"`
// name
// Required: true
Name string `json:"name"`
// photo urls
// Required: true
PhotoUrls []string `json:"photoUrls" xml:"photoUrl"`
// pet status in the store
// Enum: [available pending sold]
Status string `json:"status,omitempty"`
// tags
Tags []Tag `json:"tags" xml:"tag"`
// created_at
CreatedAt time.Time `json:"created_at" xml:"created_at"`
}
type Tag ¶
type Tag struct {
// id
ID int64 `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
}
Tag tag
swagger:model Tag
type XMLPetsWrapper ¶
Click to show internal directories.
Click to hide internal directories.