Documentation ¶
Index ¶
- func AddPet(c *gin.Context)
- func CreateUser(c *gin.Context)
- func CreateUsersWithArrayInput(c *gin.Context)
- func CreateUsersWithListInput(c *gin.Context)
- func DeleteOrder(c *gin.Context)
- func DeletePet(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func FindPetsByStatus(c *gin.Context)
- func FindPetsByTags(c *gin.Context)
- func GetInventory(c *gin.Context)
- func GetOrderById(c *gin.Context)
- func GetPetById(c *gin.Context)
- func GetUserByName(c *gin.Context)
- func Index(c *gin.Context)
- func LoginUser(c *gin.Context)
- func LogoutUser(c *gin.Context)
- func NewRouter() *gin.Engine
- func PlaceOrder(c *gin.Context)
- func UpdatePet(c *gin.Context)
- func UpdatePetWithForm(c *gin.Context)
- func UpdateUser(c *gin.Context)
- func UploadFile(c *gin.Context)
- type ApiResponse
- type Category
- type Order
- type Pet
- type Route
- type Routes
- type Tag
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUsersWithArrayInput ¶
CreateUsersWithArrayInput - Creates list of users with given input array
func CreateUsersWithListInput ¶
CreateUsersWithListInput - Creates list of users with given input array
func FindPetsByStatus ¶
FindPetsByStatus - Finds Pets by status
func GetInventory ¶
GetInventory - Returns pet inventories by status
func LogoutUser ¶
LogoutUser - Logs out current logged in user session
func UpdatePetWithForm ¶
UpdatePetWithForm - Updates a pet in the store with form data
Types ¶
type ApiResponse ¶
type ApiResponse struct { Code int32 `json:"code,omitempty"` Type string `json:"type,omitempty"` Message string `json:"message,omitempty"` }
ApiResponse - Describes the result of uploading an image resource
type Order ¶
type Order struct { Id int64 `json:"id,omitempty"` PetId int64 `json:"petId,omitempty"` Quantity int32 `json:"quantity,omitempty"` ShipDate time.Time `json:"shipDate,omitempty"` // Order Status Status string `json:"status,omitempty"` Complete bool `json:"complete,omitempty"` }
Order - An order for a pets from the pet store
type Pet ¶
type Pet struct { Id int64 `json:"id,omitempty"` Category Category `json:"category,omitempty"` Name string `json:"name"` PhotoUrls []string `json:"photoUrls"` Tags []Tag `json:"tags,omitempty"` // pet status in the store Status string `json:"status,omitempty"` }
Pet - A pet for sale in the pet store
type Route ¶
type Route struct { // Name is the name of this Route. Name string // Method is the string for the HTTP method. ex) GET, POST etc.. Method string // Pattern is the pattern of the URI. Pattern string // HandlerFunc is the handler function of this route. HandlerFunc gin.HandlerFunc }
Route is the information for every URI.
type User ¶
type User struct { Id int64 `json:"id,omitempty"` Username string `json:"username,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Email string `json:"email,omitempty"` Password string `json:"password,omitempty"` Phone string `json:"phone,omitempty"` // User Status UserStatus int32 `json:"userStatus,omitempty"` }
User - A User who is purchasing from the pet store
Click to show internal directories.
Click to hide internal directories.