Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/client/petstore/bash/_petstore-cli
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ case $state in
deleteOrder)
local -a _op_arguments
_op_arguments=(
"orderId=:[PATH] ID of the order that needs to be deleted"
"order_id=:[PATH] ID of the order that needs to be deleted"
)
_describe -t actions 'operations' _op_arguments -S '' && ret=0
;;
Expand All @@ -419,7 +419,7 @@ case $state in
getOrderById)
local -a _op_arguments
_op_arguments=(
"orderId=:[PATH] ID of pet that needs to be fetched"
"order_id=:[PATH] ID of pet that needs to be fetched"
)
_describe -t actions 'operations' _op_arguments -S '' && ret=0
;;
Expand Down
28 changes: 14 additions & 14 deletions samples/client/petstore/bash/petstore-cli
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ operation_parameters_minimum_occurences["updatePetWithForm:::status"]=0
operation_parameters_minimum_occurences["uploadFile:::petId"]=1
operation_parameters_minimum_occurences["uploadFile:::additionalMetadata"]=0
operation_parameters_minimum_occurences["uploadFile:::file"]=0
operation_parameters_minimum_occurences["deleteOrder:::orderId"]=1
operation_parameters_minimum_occurences["getOrderById:::orderId"]=1
operation_parameters_minimum_occurences["deleteOrder:::order_id"]=1
operation_parameters_minimum_occurences["getOrderById:::order_id"]=1
operation_parameters_minimum_occurences["placeOrder:::body"]=1
operation_parameters_minimum_occurences["createUser:::body"]=1
operation_parameters_minimum_occurences["createUsersWithArrayInput:::body"]=1
Expand Down Expand Up @@ -158,8 +158,8 @@ operation_parameters_maximum_occurences["updatePetWithForm:::status"]=0
operation_parameters_maximum_occurences["uploadFile:::petId"]=0
operation_parameters_maximum_occurences["uploadFile:::additionalMetadata"]=0
operation_parameters_maximum_occurences["uploadFile:::file"]=0
operation_parameters_maximum_occurences["deleteOrder:::orderId"]=0
operation_parameters_maximum_occurences["getOrderById:::orderId"]=0
operation_parameters_maximum_occurences["deleteOrder:::order_id"]=0
operation_parameters_maximum_occurences["getOrderById:::order_id"]=0
operation_parameters_maximum_occurences["placeOrder:::body"]=0
operation_parameters_maximum_occurences["createUser:::body"]=0
operation_parameters_maximum_occurences["createUsersWithArrayInput:::body"]=0
Expand Down Expand Up @@ -211,8 +211,8 @@ operation_parameters_collection_type["updatePetWithForm:::status"]=""
operation_parameters_collection_type["uploadFile:::petId"]=""
operation_parameters_collection_type["uploadFile:::additionalMetadata"]=""
operation_parameters_collection_type["uploadFile:::file"]=""
operation_parameters_collection_type["deleteOrder:::orderId"]=""
operation_parameters_collection_type["getOrderById:::orderId"]=""
operation_parameters_collection_type["deleteOrder:::order_id"]=""
operation_parameters_collection_type["getOrderById:::order_id"]=""
operation_parameters_collection_type["placeOrder:::body"]=""
operation_parameters_collection_type["createUser:::body"]=""
operation_parameters_collection_type["createUsersWithArrayInput:::body"]=
Expand Down Expand Up @@ -1390,7 +1390,7 @@ print_deleteOrder_help() {
echo -e "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors" | fold -sw 80
echo -e ""
echo -e "$(tput bold)$(tput setaf 7)Parameters$(tput sgr0)"
echo -e " * $(tput setaf 2)orderId$(tput sgr0) $(tput setaf 4)[String]$(tput sgr0) $(tput setaf 1)(required)$(tput sgr0)$(tput sgr0) - ID of the order that needs to be deleted $(tput setaf 3)Specify as: orderId=value$(tput sgr0)" | fold -sw 80 | sed '2,$s/^/ /'
echo -e " * $(tput setaf 2)order_id$(tput sgr0) $(tput setaf 4)[String]$(tput sgr0) $(tput setaf 1)(required)$(tput sgr0)$(tput sgr0) - ID of the order that needs to be deleted $(tput setaf 3)Specify as: order_id=value$(tput sgr0)" | fold -sw 80 | sed '2,$s/^/ /'
echo ""
echo -e "$(tput bold)$(tput setaf 7)Responses$(tput sgr0)"
case 400 in
Expand Down Expand Up @@ -1480,7 +1480,7 @@ print_getOrderById_help() {
echo -e "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions" | fold -sw 80
echo -e ""
echo -e "$(tput bold)$(tput setaf 7)Parameters$(tput sgr0)"
echo -e " * $(tput setaf 2)orderId$(tput sgr0) $(tput setaf 4)[Integer]$(tput sgr0) $(tput setaf 1)(required)$(tput sgr0)$(tput sgr0) - ID of pet that needs to be fetched $(tput setaf 3)Specify as: orderId=value$(tput sgr0)" | fold -sw 80 | sed '2,$s/^/ /'
echo -e " * $(tput setaf 2)order_id$(tput sgr0) $(tput setaf 4)[Integer]$(tput sgr0) $(tput setaf 1)(required)$(tput sgr0)$(tput sgr0) - ID of pet that needs to be fetched $(tput setaf 3)Specify as: order_id=value$(tput sgr0)" | fold -sw 80 | sed '2,$s/^/ /'
echo ""
echo -e "$(tput bold)$(tput setaf 7)Responses$(tput sgr0)"
case 200 in
Expand Down Expand Up @@ -2469,14 +2469,14 @@ call_uploadFile() {
#
##############################################################################
call_deleteOrder() {
local path_parameter_names=(orderId)
local path_parameter_names=(order_id)
local query_parameter_names=()

if [[ $force = false ]]; then
validate_request_parameters "/v2/store/order/{orderId}" path_parameter_names query_parameter_names
validate_request_parameters "/v2/store/order/{order_id}" path_parameter_names query_parameter_names
fi

local path=$(build_request_path "/v2/store/order/{orderId}" path_parameter_names query_parameter_names)
local path=$(build_request_path "/v2/store/order/{order_id}" path_parameter_names query_parameter_names)
local method="DELETE"
local headers_curl=$(header_arguments_to_curl)
if [[ -n $header_accept ]]; then
Expand Down Expand Up @@ -2531,14 +2531,14 @@ call_getInventory() {
#
##############################################################################
call_getOrderById() {
local path_parameter_names=(orderId)
local path_parameter_names=(order_id)
local query_parameter_names=()

if [[ $force = false ]]; then
validate_request_parameters "/v2/store/order/{orderId}" path_parameter_names query_parameter_names
validate_request_parameters "/v2/store/order/{order_id}" path_parameter_names query_parameter_names
fi

local path=$(build_request_path "/v2/store/order/{orderId}" path_parameter_names query_parameter_names)
local path=$(build_request_path "/v2/store/order/{order_id}" path_parameter_names query_parameter_names)
local method="GET"
local headers_curl=$(header_arguments_to_curl)
if [[ -n $header_accept ]]; then
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/bash/petstore-cli.bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ _petstore-cli()
operation_parameters["updatePet"]=""
operation_parameters["updatePetWithForm"]="petId= "
operation_parameters["uploadFile"]="petId= "
operation_parameters["deleteOrder"]="orderId= "
operation_parameters["deleteOrder"]="order_id= "
operation_parameters["getInventory"]=""
operation_parameters["getOrderById"]="orderId= "
operation_parameters["getOrderById"]="order_id= "
operation_parameters["placeOrder"]=""
operation_parameters["createUser"]=""
operation_parameters["createUsersWithArrayInput"]=""
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/csharp/SwaggerClient.v5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ Class | Method | HTTP request | Description
*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* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | 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* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId)
if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");

var localVarPath = "./store/order/{orderId}";
var localVarPath = "./store/order/{order_id}";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
Expand All @@ -263,7 +263,7 @@ public ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId)
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
if (orderId != null) localVarPathParams.Add("order_id", Configuration.ApiClient.ParameterToString(orderId)); // path parameter


// make the HTTP request
Expand Down Expand Up @@ -376,7 +376,7 @@ public ApiResponse< Order > GetOrderByIdWithHttpInfo (long? orderId)
if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");

var localVarPath = "./store/order/{orderId}";
var localVarPath = "./store/order/{order_id}";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
Expand All @@ -398,7 +398,7 @@ public ApiResponse< Order > GetOrderByIdWithHttpInfo (long? orderId)
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
if (orderId != null) localVarPathParams.Add("order_id", Configuration.ApiClient.ParameterToString(orderId)); // path parameter


// make the HTTP request
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/csharp/SwaggerClient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ Class | Method | HTTP request | Description
*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* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | 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* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | 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
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/csharp/SwaggerClient/docs/StoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId)
if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");

var localVarPath = "/store/order/{orderId}";
var localVarPath = "/store/order/{order_id}";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
Expand All @@ -347,7 +347,7 @@ public ApiResponse<Object> DeleteOrderWithHttpInfo (string orderId)
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
if (orderId != null) localVarPathParams.Add("order_id", Configuration.ApiClient.ParameterToString(orderId)); // path parameter


// make the HTTP request
Expand Down Expand Up @@ -393,7 +393,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWi
if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder");

var localVarPath = "/store/order/{orderId}";
var localVarPath = "/store/order/{order_id}";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
Expand All @@ -415,7 +415,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteOrderAsyncWi
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
if (orderId != null) localVarPathParams.Add("order_id", Configuration.ApiClient.ParameterToString(orderId)); // path parameter


// make the HTTP request
Expand Down Expand Up @@ -595,7 +595,7 @@ public ApiResponse< Order > GetOrderByIdWithHttpInfo (long? orderId)
if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");

var localVarPath = "/store/order/{orderId}";
var localVarPath = "/store/order/{order_id}";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
Expand All @@ -617,7 +617,7 @@ public ApiResponse< Order > GetOrderByIdWithHttpInfo (long? orderId)
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
if (orderId != null) localVarPathParams.Add("order_id", Configuration.ApiClient.ParameterToString(orderId)); // path parameter


// make the HTTP request
Expand Down Expand Up @@ -664,7 +664,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWi
if (orderId == null)
throw new ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById");

var localVarPath = "/store/order/{orderId}";
var localVarPath = "/store/order/{order_id}";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
Expand All @@ -686,7 +686,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWi
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (orderId != null) localVarPathParams.Add("orderId", Configuration.ApiClient.ParameterToString(orderId)); // path parameter
if (orderId != null) localVarPathParams.Add("order_id", Configuration.ApiClient.ParameterToString(orderId)); // path parameter


// make the HTTP request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ Class | Method | HTTP request | Description
*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* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | 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* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | 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
Expand Down
Loading