openapi-generator/samples/client/petstore/go/go-petstore
2016-05-03 10:16:47 -07:00
..
docs added missing model api response md 2016-04-24 15:52:26 -07:00
.gitignore add new files 2016-04-17 17:10:28 +08:00
api_client.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
api_response.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
category.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
configuration.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
git_push.sh Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
model_api_response.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
order.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
pet_api.go fixed merge conflict 2016-05-03 10:16:47 -07:00
pet.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
pom.xml added packageName in the codegen option 2016-04-27 22:47:57 -07:00
README.md fixed merge conflict 2016-05-03 10:16:47 -07:00
store_api.go fixed merge conflict 2016-05-03 10:16:47 -07:00
tag.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
user_api.go fixed merge conflict 2016-05-03 10:16:47 -07:00
user.go Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00

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-03T10:14:09.589-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

Class Method HTTP request Description
PetApi AddPet Post /pet Add a new pet to the store
PetApi DeletePet Delete /pet/{petId} Deletes a pet
PetApi FindPetsByStatus Get /pet/findByStatus Finds Pets by status
PetApi FindPetsByTags Get /pet/findByTags Finds Pets by tags
PetApi GetPetById Get /pet/{petId} Find pet by ID
PetApi UpdatePet Put /pet Update an existing pet
PetApi UpdatePetWithForm Post /pet/{petId} Updates a pet in the store with form data
PetApi UploadFile Post /pet/{petId}/uploadImage uploads an image
StoreApi DeleteOrder Delete /store/order/{orderId} Delete purchase order by ID
StoreApi GetInventory Get /store/inventory Returns pet inventories by status
StoreApi GetOrderById Get /store/order/{orderId} Find purchase order by ID
StoreApi PlaceOrder Post /store/order Place an order for a pet
UserApi CreateUser Post /user Create user
UserApi CreateUsersWithArrayInput Post /user/createWithArray Creates list of users with given input array
UserApi CreateUsersWithListInput Post /user/createWithList Creates list of users with given input array
UserApi DeleteUser Delete /user/{username} Delete user
UserApi GetUserByName Get /user/{username} Get user by user name
UserApi LoginUser Get /user/login Logs user into the system
UserApi LogoutUser Get /user/logout Logs out current logged in user session
UserApi UpdateUser Put /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

apiteam@swagger.io