forked from loafle/openapi-generator-original
Updating all samples (except feign) (#5281)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user