update php sample

This commit is contained in:
wing328
2016-05-10 22:38:21 +08:00
parent 3c72547e27
commit 1cb1b0351c
45 changed files with 73 additions and 43 deletions
@@ -5,7 +5,7 @@ This PHP package is automatically generated by the [Swagger Codegen](https://git
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-05-10T00:30:19.190+08:00
- Build date: 2016-05-10T22:37:00.768+08:00
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
## Requirements
@@ -87,48 +87,48 @@ All URIs are relative to *http://petstore.swagger.io/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
*PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
*PetApi* | [**findPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
*PetApi* | [**findPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
*PetApi* | [**getPetById**](docs/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
*PetApi* | [**updatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
*PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
*PetApi* | [**uploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
*StoreApi* | [**getInventory**](docs/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
*StoreApi* | [**getOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
*StoreApi* | [**placeOrder**](docs/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
*UserApi* | [**createUser**](docs/UserApi.md#createuser) | **POST** /user | Create user
*UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
*UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
*UserApi* | [**deleteUser**](docs/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
*UserApi* | [**getUserByName**](docs/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
*UserApi* | [**loginUser**](docs/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
*UserApi* | [**logoutUser**](docs/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
*UserApi* | [**updateUser**](docs/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
*FakeApi* | [**testEndpointParameters**](docs/ApiFakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*PetApi* | [**addPet**](docs/ApiPetApi.md#addpet) | **POST** /pet | Add a new pet to the store
*PetApi* | [**deletePet**](docs/ApiPetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
*PetApi* | [**findPetsByStatus**](docs/ApiPetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
*PetApi* | [**findPetsByTags**](docs/ApiPetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
*PetApi* | [**getPetById**](docs/ApiPetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
*PetApi* | [**updatePet**](docs/ApiPetApi.md#updatepet) | **PUT** /pet | Update an existing pet
*PetApi* | [**updatePetWithForm**](docs/ApiPetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
*PetApi* | [**uploadFile**](docs/ApiPetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
*StoreApi* | [**deleteOrder**](docs/ApiStoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
*StoreApi* | [**getInventory**](docs/ApiStoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
*StoreApi* | [**getOrderById**](docs/ApiStoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
*StoreApi* | [**placeOrder**](docs/ApiStoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
*UserApi* | [**createUser**](docs/ApiUserApi.md#createuser) | **POST** /user | Create user
*UserApi* | [**createUsersWithArrayInput**](docs/ApiUserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
*UserApi* | [**createUsersWithListInput**](docs/ApiUserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
*UserApi* | [**deleteUser**](docs/ApiUserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
*UserApi* | [**getUserByName**](docs/ApiUserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
*UserApi* | [**loginUser**](docs/ApiUserApi.md#loginuser) | **GET** /user/login | Logs user into the system
*UserApi* | [**logoutUser**](docs/ApiUserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
*UserApi* | [**updateUser**](docs/ApiUserApi.md#updateuser) | **PUT** /user/{username} | Updated user
## Documentation For Models
- [Animal](docs/Animal.md)
- [AnimalFarm](docs/AnimalFarm.md)
- [ApiResponse](docs/ApiResponse.md)
- [Cat](docs/Cat.md)
- [Category](docs/Category.md)
- [Dog](docs/Dog.md)
- [EnumClass](docs/EnumClass.md)
- [EnumTest](docs/EnumTest.md)
- [FormatTest](docs/FormatTest.md)
- [Model200Response](docs/Model200Response.md)
- [ModelReturn](docs/ModelReturn.md)
- [Name](docs/Name.md)
- [Order](docs/Order.md)
- [Pet](docs/Pet.md)
- [SpecialModelName](docs/SpecialModelName.md)
- [Tag](docs/Tag.md)
- [User](docs/User.md)
- [Animal](docs/ModelAnimal.md)
- [AnimalFarm](docs/ModelAnimalFarm.md)
- [ApiResponse](docs/ModelApiResponse.md)
- [Cat](docs/ModelCat.md)
- [Category](docs/ModelCategory.md)
- [Dog](docs/ModelDog.md)
- [EnumClass](docs/ModelEnumClass.md)
- [EnumTest](docs/ModelEnumTest.md)
- [FormatTest](docs/ModelFormatTest.md)
- [Model200Response](docs/ModelModel200Response.md)
- [ModelReturn](docs/ModelModelReturn.md)
- [Name](docs/ModelName.md)
- [Order](docs/ModelOrder.md)
- [Pet](docs/ModelPet.md)
- [SpecialModelName](docs/ModelSpecialModelName.md)
- [Tag](docs/ModelTag.md)
- [User](docs/ModelUser.md)
## Documentation For Authorization
@@ -29,5 +29,8 @@
},
"autoload": {
"psr-4": { "Swagger\\Client\\" : "lib/" }
},
"autoload-dev": {
"psr-4": { "Swagger\\Client\\" : "test/" }
}
}
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
**name** | **int** | |
**snake_case** | **int** | | [optional]
**property** | **string** | | [optional]
**_123_number** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -60,7 +60,8 @@ class Name implements ArrayAccess
static $swaggerTypes = array(
'name' => 'int',
'snake_case' => 'int',
'property' => 'string'
'property' => 'string',
'_123_number' => 'int'
);
static function swaggerTypes() {
@@ -74,7 +75,8 @@ class Name implements ArrayAccess
static $attributeMap = array(
'name' => 'name',
'snake_case' => 'snake_case',
'property' => 'property'
'property' => 'property',
'_123_number' => '123Number'
);
static function attributeMap() {
@@ -88,7 +90,8 @@ class Name implements ArrayAccess
static $setters = array(
'name' => 'setName',
'snake_case' => 'setSnakeCase',
'property' => 'setProperty'
'property' => 'setProperty',
'_123_number' => 'set123Number'
);
static function setters() {
@@ -102,7 +105,8 @@ class Name implements ArrayAccess
static $getters = array(
'name' => 'getName',
'snake_case' => 'getSnakeCase',
'property' => 'getProperty'
'property' => 'getProperty',
'_123_number' => 'get123Number'
);
static function getters() {
@@ -128,6 +132,7 @@ class Name implements ArrayAccess
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['snake_case'] = isset($data['snake_case']) ? $data['snake_case'] : null;
$this->container['property'] = isset($data['property']) ? $data['property'] : null;
$this->container['_123_number'] = isset($data['_123_number']) ? $data['_123_number'] : null;
}
/**
@@ -221,6 +226,27 @@ class Name implements ArrayAccess
return $this;
}
/**
* Gets _123_number
* @return int
*/
public function get123Number()
{
return $this->container['_123_number'];
}
/**
* Sets _123_number
* @param int $_123_number
* @return $this
*/
public function set123Number($_123_number)
{
$this->container['_123_number'] = $_123_number;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset