forked from loafle/openapi-generator-original
Merge branch 'master' into new-sync-master-to-2.3.0
This commit is contained in:
@@ -41,7 +41,7 @@ module Petstore
|
||||
# verify the required parameter 'body' is set
|
||||
fail ArgumentError, "Missing the required parameter 'body' when calling FakeApi.test_client_model" if body.nil?
|
||||
# resource path
|
||||
local_var_path = "/fake".sub('{format}','json')
|
||||
local_var_path = "/fake"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -178,7 +178,7 @@ module Petstore
|
||||
end
|
||||
|
||||
# resource path
|
||||
local_var_path = "/fake".sub('{format}','json')
|
||||
local_var_path = "/fake"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -274,7 +274,7 @@ module Petstore
|
||||
fail ArgumentError, 'invalid value for "enum_query_string", must be one of _abc, -efg, (xyz)'
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/fake".sub('{format}','json')
|
||||
local_var_path = "/fake"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
|
||||
@@ -41,7 +41,7 @@ module Petstore
|
||||
# verify the required parameter 'body' is set
|
||||
fail ArgumentError, "Missing the required parameter 'body' when calling PetApi.add_pet" if body.nil?
|
||||
# resource path
|
||||
local_var_path = "/pet".sub('{format}','json')
|
||||
local_var_path = "/pet"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -95,7 +95,7 @@ module Petstore
|
||||
# verify the required parameter 'pet_id' is set
|
||||
fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet" if pet_id.nil?
|
||||
# resource path
|
||||
local_var_path = "/pet/{petId}".sub('{format}','json').sub('{' + 'petId' + '}', pet_id.to_s)
|
||||
local_var_path = "/pet/{petId}".sub('{' + 'petId' + '}', pet_id.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -146,7 +146,7 @@ module Petstore
|
||||
# verify the required parameter 'status' is set
|
||||
fail ArgumentError, "Missing the required parameter 'status' when calling PetApi.find_pets_by_status" if status.nil?
|
||||
# resource path
|
||||
local_var_path = "/pet/findByStatus".sub('{format}','json')
|
||||
local_var_path = "/pet/findByStatus"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -198,7 +198,7 @@ module Petstore
|
||||
# verify the required parameter 'tags' is set
|
||||
fail ArgumentError, "Missing the required parameter 'tags' when calling PetApi.find_pets_by_tags" if tags.nil?
|
||||
# resource path
|
||||
local_var_path = "/pet/findByTags".sub('{format}','json')
|
||||
local_var_path = "/pet/findByTags"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -250,7 +250,7 @@ module Petstore
|
||||
# verify the required parameter 'pet_id' is set
|
||||
fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.get_pet_by_id" if pet_id.nil?
|
||||
# resource path
|
||||
local_var_path = "/pet/{petId}".sub('{format}','json').sub('{' + 'petId' + '}', pet_id.to_s)
|
||||
local_var_path = "/pet/{petId}".sub('{' + 'petId' + '}', pet_id.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -301,7 +301,7 @@ module Petstore
|
||||
# verify the required parameter 'body' is set
|
||||
fail ArgumentError, "Missing the required parameter 'body' when calling PetApi.update_pet" if body.nil?
|
||||
# resource path
|
||||
local_var_path = "/pet".sub('{format}','json')
|
||||
local_var_path = "/pet"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -357,7 +357,7 @@ module Petstore
|
||||
# verify the required parameter 'pet_id' is set
|
||||
fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.update_pet_with_form" if pet_id.nil?
|
||||
# resource path
|
||||
local_var_path = "/pet/{petId}".sub('{format}','json').sub('{' + 'petId' + '}', pet_id.to_s)
|
||||
local_var_path = "/pet/{petId}".sub('{' + 'petId' + '}', pet_id.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -415,7 +415,7 @@ module Petstore
|
||||
# verify the required parameter 'pet_id' is set
|
||||
fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.upload_file" if pet_id.nil?
|
||||
# resource path
|
||||
local_var_path = "/pet/{petId}/uploadImage".sub('{format}','json').sub('{' + 'petId' + '}', pet_id.to_s)
|
||||
local_var_path = "/pet/{petId}/uploadImage".sub('{' + 'petId' + '}', pet_id.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
|
||||
@@ -41,7 +41,7 @@ module Petstore
|
||||
# verify the required parameter 'order_id' is set
|
||||
fail ArgumentError, "Missing the required parameter 'order_id' when calling StoreApi.delete_order" if order_id.nil?
|
||||
# resource path
|
||||
local_var_path = "/store/order/{orderId}".sub('{format}','json').sub('{' + 'orderId' + '}', order_id.to_s)
|
||||
local_var_path = "/store/order/{orderId}".sub('{' + 'orderId' + '}', order_id.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -87,7 +87,7 @@ module Petstore
|
||||
@api_client.config.logger.debug "Calling API: StoreApi.get_inventory ..."
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/store/inventory".sub('{format}','json')
|
||||
local_var_path = "/store/inventory"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -146,7 +146,7 @@ module Petstore
|
||||
end
|
||||
|
||||
# resource path
|
||||
local_var_path = "/store/order/{orderId}".sub('{format}','json').sub('{' + 'orderId' + '}', order_id.to_s)
|
||||
local_var_path = "/store/order/{orderId}".sub('{' + 'orderId' + '}', order_id.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -197,7 +197,7 @@ module Petstore
|
||||
# verify the required parameter 'body' is set
|
||||
fail ArgumentError, "Missing the required parameter 'body' when calling StoreApi.place_order" if body.nil?
|
||||
# resource path
|
||||
local_var_path = "/store/order".sub('{format}','json')
|
||||
local_var_path = "/store/order"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
|
||||
@@ -41,7 +41,7 @@ module Petstore
|
||||
# verify the required parameter 'body' is set
|
||||
fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.create_user" if body.nil?
|
||||
# resource path
|
||||
local_var_path = "/user".sub('{format}','json')
|
||||
local_var_path = "/user"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -91,7 +91,7 @@ module Petstore
|
||||
# verify the required parameter 'body' is set
|
||||
fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.create_users_with_array_input" if body.nil?
|
||||
# resource path
|
||||
local_var_path = "/user/createWithArray".sub('{format}','json')
|
||||
local_var_path = "/user/createWithArray"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -141,7 +141,7 @@ module Petstore
|
||||
# verify the required parameter 'body' is set
|
||||
fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.create_users_with_list_input" if body.nil?
|
||||
# resource path
|
||||
local_var_path = "/user/createWithList".sub('{format}','json')
|
||||
local_var_path = "/user/createWithList"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -191,7 +191,7 @@ module Petstore
|
||||
# verify the required parameter 'username' is set
|
||||
fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.delete_user" if username.nil?
|
||||
# resource path
|
||||
local_var_path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username.to_s)
|
||||
local_var_path = "/user/{username}".sub('{' + 'username' + '}', username.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -241,7 +241,7 @@ module Petstore
|
||||
# verify the required parameter 'username' is set
|
||||
fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.get_user_by_name" if username.nil?
|
||||
# resource path
|
||||
local_var_path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username.to_s)
|
||||
local_var_path = "/user/{username}".sub('{' + 'username' + '}', username.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -296,7 +296,7 @@ module Petstore
|
||||
# verify the required parameter 'password' is set
|
||||
fail ArgumentError, "Missing the required parameter 'password' when calling UserApi.login_user" if password.nil?
|
||||
# resource path
|
||||
local_var_path = "/user/login".sub('{format}','json')
|
||||
local_var_path = "/user/login"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -345,7 +345,7 @@ module Petstore
|
||||
@api_client.config.logger.debug "Calling API: UserApi.logout_user ..."
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/user/logout".sub('{format}','json')
|
||||
local_var_path = "/user/logout"
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
@@ -399,7 +399,7 @@ module Petstore
|
||||
# verify the required parameter 'body' is set
|
||||
fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.update_user" if body.nil?
|
||||
# resource path
|
||||
local_var_path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username.to_s)
|
||||
local_var_path = "/user/{username}".sub('{' + 'username' + '}', username.to_s)
|
||||
|
||||
# query parameters
|
||||
query_params = {}
|
||||
|
||||
@@ -134,7 +134,7 @@ module Petstore
|
||||
# @param [String] mime MIME
|
||||
# @return [Boolean] True if the MIME is application/json
|
||||
def json_mime?(mime)
|
||||
(mime == "*/*") || !(mime =~ /\Aapplication\/json(;.*)?\z/i).nil?
|
||||
(mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
|
||||
end
|
||||
|
||||
# Deserialize the response to the given return type.
|
||||
|
||||
Reference in New Issue
Block a user