Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct {
Code int32 `json:"code"`
Type string `json:"type"`
Message string `json:"message"`
}
ApiResponse represents a generic API response.
type CreatePetRequest ¶
type CreatePetRequest struct {
Name string `json:"name"`
Category *Category `json:"category,omitempty"`
PhotoURLs []string `json:"photoUrls"`
Tags []Tag `json:"tags,omitempty"`
Status string `json:"status,omitempty"`
}
Example request payload for creating a pet.
type DeletePetRequest ¶
type GetPetByIdRequest ¶
type GetPetByIdRequest struct {
ID int64 `params:"petId" path:"petId"`
}
type Pet ¶
type Pet struct {
ID int64 `json:"id"`
Category *Category `json:"category,omitempty"`
Name string `json:"name"`
PhotoURLs []string `json:"photoUrls"`
Tags []Tag `json:"tags,omitempty"`
Status string `json:"status,omitempty"` // available, pending, sold
}
Pet defines a pet.
Click to show internal directories.
Click to hide internal directories.