package
2.2.0+incompatible
Repository: https://github.com/theworkshoplabs/swagger-codegen.git
Documentation: pkg.go.dev

# README

Go API client for petstore

This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key special-key to test the authorization filters.

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-05-26T21:47:25.590-07:00
  • Build package: class io.swagger.codegen.languages.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

    "./petstore"

Documentation for API Endpoints

All URIs are relative to http://petstore.swagger.io/v2

ClassMethodHTTP requestDescription
PetApiAddPetPost /petAdd a new pet to the store
PetApiDeletePetDelete /pet/{petId}Deletes a pet
PetApiFindPetsByStatusGet /pet/findByStatusFinds Pets by status
PetApiFindPetsByTagsGet /pet/findByTagsFinds Pets by tags
PetApiGetPetByIdGet /pet/{petId}Find pet by ID
PetApiUpdatePetPut /petUpdate an existing pet
PetApiUpdatePetWithFormPost /pet/{petId}Updates a pet in the store with form data
PetApiUploadFilePost /pet/{petId}/uploadImageuploads an image
StoreApiDeleteOrderDelete /store/order/{orderId}Delete purchase order by ID
StoreApiGetInventoryGet /store/inventoryReturns pet inventories by status
StoreApiGetOrderByIdGet /store/order/{orderId}Find purchase order by ID
StoreApiPlaceOrderPost /store/orderPlace an order for a pet
UserApiCreateUserPost /userCreate user
UserApiCreateUsersWithArrayInputPost /user/createWithArrayCreates list of users with given input array
UserApiCreateUsersWithListInputPost /user/createWithListCreates list of users with given input array
UserApiDeleteUserDelete /user/{username}Delete user
UserApiGetUserByNameGet /user/{username}Get user by user name
UserApiLoginUserGet /user/loginLogs user into the system
UserApiLogoutUserGet /user/logoutLogs out current logged in user session
UserApiUpdateUserPut /user/{username}Updated user

Documentation For Models

Documentation For Authorization

petstore_auth

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header

Author

[email protected]

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author