Updating all samples (except feign) (#5281)

This commit is contained in:
Paŭlo Ebermann
2017-04-02 11:01:15 +02:00
committed by wing328
parent 071c012f85
commit ce41a343d8
72 changed files with 227 additions and 226 deletions

View File

@@ -86,9 +86,9 @@ Class | Method | HTTP request | Description
*PetApi* | [**updatePet**](docs/Api/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
*PetApi* | [**updatePetWithForm**](docs/Api/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
*PetApi* | [**uploadFile**](docs/Api/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
*StoreApi* | [**deleteOrder**](docs/Api/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
*StoreApi* | [**deleteOrder**](docs/Api/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
*StoreApi* | [**getInventory**](docs/Api/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
*StoreApi* | [**getOrderById**](docs/Api/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
*StoreApi* | [**getOrderById**](docs/Api/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
*StoreApi* | [**placeOrder**](docs/Api/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
*UserApi* | [**createUser**](docs/Api/UserApi.md#createuser) | **POST** /user | Create user
*UserApi* | [**createUsersWithArrayInput**](docs/Api/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array

View File

@@ -4,9 +4,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{orderId} | Find purchase order by ID
[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet

View File

@@ -118,7 +118,7 @@ class StoreApi
throw new \InvalidArgumentException('Missing the required parameter $order_id when calling deleteOrder');
}
// parse inputs
$resourcePath = "/store/order/{orderId}";
$resourcePath = "/store/order/{order_id}";
$httpBody = '';
$queryParams = [];
$headerParams = [];
@@ -132,7 +132,7 @@ class StoreApi
// path params
if ($order_id !== null) {
$resourcePath = str_replace(
"{" . "orderId" . "}",
"{" . "order_id" . "}",
$this->apiClient->getSerializer()->toPathValue($order_id),
$resourcePath
);
@@ -153,7 +153,7 @@ class StoreApi
$httpBody,
$headerParams,
null,
'/store/order/{orderId}'
'/store/order/{order_id}'
);
return [null, $statusCode, $httpHeader];
@@ -276,7 +276,7 @@ class StoreApi
}
// parse inputs
$resourcePath = "/store/order/{orderId}";
$resourcePath = "/store/order/{order_id}";
$httpBody = '';
$queryParams = [];
$headerParams = [];
@@ -290,7 +290,7 @@ class StoreApi
// path params
if ($order_id !== null) {
$resourcePath = str_replace(
"{" . "orderId" . "}",
"{" . "order_id" . "}",
$this->apiClient->getSerializer()->toPathValue($order_id),
$resourcePath
);
@@ -311,7 +311,7 @@ class StoreApi
$httpBody,
$headerParams,
'\Swagger\Client\Model\Order',
'/store/order/{orderId}'
'/store/order/{order_id}'
);
return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\Order', $httpHeader), $statusCode, $httpHeader];