|  | 
| 1 | 1 | # Go API client for swagger | 
| 2 | 2 | 
 | 
|  | 3 | +This is a sample server Petstore server.  You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).  For this sample, you can use the api key `special-key` to test the authorization filters. | 
|  | 4 | + | 
| 3 | 5 | ## Overview | 
| 4 | 6 | This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project.  By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. | 
| 5 | 7 | 
 | 
|  | 8 | +- API version: 1.0.0 | 
|  | 9 | +- Package version:  | 
|  | 10 | +- Build date: 2016-04-14T14:05:06.510-07:00 | 
|  | 11 | +- Build package: class io.swagger.codegen.languages.GoClientCodegen | 
| 6 | 12 | 
 | 
| 7 | 13 | ## Installation | 
| 8 | 14 | Put the package under your project folder and add the following in import: | 
| 9 | 15 | ``` | 
| 10 | 16 |     "./swagger" | 
| 11 | 17 | ``` | 
| 12 | 18 | 
 | 
|  | 19 | +## Documentation for API Endpoints | 
|  | 20 | + | 
|  | 21 | +All URIs are relative to *http://petstore.swagger.io/v2* | 
|  | 22 | + | 
|  | 23 | +Class | Method | HTTP request | Description | 
|  | 24 | +------------ | ------------- | ------------- | ------------- | 
|  | 25 | +*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **Post** /pet | Add a new pet to the store | 
|  | 26 | +*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **Delete** /pet/{petId} | Deletes a pet | 
|  | 27 | +*PetApi* | [**FindPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **Get** /pet/findByStatus | Finds Pets by status | 
|  | 28 | +*PetApi* | [**FindPetsByTags**](docs/PetApi.md#findpetsbytags) | **Get** /pet/findByTags | Finds Pets by tags | 
|  | 29 | +*PetApi* | [**GetPetById**](docs/PetApi.md#getpetbyid) | **Get** /pet/{petId} | Find pet by ID | 
|  | 30 | +*PetApi* | [**UpdatePet**](docs/PetApi.md#updatepet) | **Put** /pet | Update an existing pet | 
|  | 31 | +*PetApi* | [**UpdatePetWithForm**](docs/PetApi.md#updatepetwithform) | **Post** /pet/{petId} | Updates a pet in the store with form data | 
|  | 32 | +*PetApi* | [**UploadFile**](docs/PetApi.md#uploadfile) | **Post** /pet/{petId}/uploadImage | uploads an image | 
|  | 33 | +*StoreApi* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **Delete** /store/order/{orderId} | Delete purchase order by ID | 
|  | 34 | +*StoreApi* | [**GetInventory**](docs/StoreApi.md#getinventory) | **Get** /store/inventory | Returns pet inventories by status | 
|  | 35 | +*StoreApi* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **Get** /store/order/{orderId} | Find purchase order by ID | 
|  | 36 | +*StoreApi* | [**PlaceOrder**](docs/StoreApi.md#placeorder) | **Post** /store/order | Place an order for a pet | 
|  | 37 | +*UserApi* | [**CreateUser**](docs/UserApi.md#createuser) | **Post** /user | Create user | 
|  | 38 | +*UserApi* | [**CreateUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **Post** /user/createWithArray | Creates list of users with given input array | 
|  | 39 | +*UserApi* | [**CreateUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **Post** /user/createWithList | Creates list of users with given input array | 
|  | 40 | +*UserApi* | [**DeleteUser**](docs/UserApi.md#deleteuser) | **Delete** /user/{username} | Delete user | 
|  | 41 | +*UserApi* | [**GetUserByName**](docs/UserApi.md#getuserbyname) | **Get** /user/{username} | Get user by user name | 
|  | 42 | +*UserApi* | [**LoginUser**](docs/UserApi.md#loginuser) | **Get** /user/login | Logs user into the system | 
|  | 43 | +*UserApi* | [**LogoutUser**](docs/UserApi.md#logoutuser) | **Get** /user/logout | Logs out current logged in user session | 
|  | 44 | +*UserApi* | [**UpdateUser**](docs/UserApi.md#updateuser) | **Put** /user/{username} | Updated user | 
|  | 45 | + | 
|  | 46 | + | 
|  | 47 | +## Documentation For Models | 
|  | 48 | + | 
|  | 49 | + - [ApiResponse](docs/ApiResponse.md) | 
|  | 50 | + - [Category](docs/Category.md) | 
|  | 51 | + - [Order](docs/Order.md) | 
|  | 52 | + - [Pet](docs/Pet.md) | 
|  | 53 | + - [Tag](docs/Tag.md) | 
|  | 54 | + - [User](docs/User.md) | 
|  | 55 | + | 
|  | 56 | + | 
|  | 57 | +## Documentation For Authorization | 
|  | 58 | + | 
|  | 59 | + | 
|  | 60 | +## petstore_auth | 
|  | 61 | + | 
|  | 62 | +- **Type**: OAuth | 
|  | 63 | +- **Flow**: implicit | 
|  | 64 | +- **Authorizatoin URL**: http://petstore.swagger.io/api/oauth/dialog | 
|  | 65 | +- **Scopes**:  | 
|  | 66 | + - **write:pets**: modify pets in your account | 
|  | 67 | + - **read:pets**: read your pets | 
|  | 68 | + | 
|  | 69 | +## api_key | 
|  | 70 | + | 
|  | 71 | +- **Type**: API key  | 
|  | 72 | +- **API key parameter name**: api_key | 
|  | 73 | +- **Location**: HTTP header | 
|  | 74 | + | 
|  | 75 | + | 
|  | 76 | +## Author | 
|  | 77 | + | 
|  | 78 | + | 
|  | 79 | + | 
0 commit comments