forked from loafle/openapi-generator-original
clean up of formatting
This commit is contained in:
@@ -9,14 +9,12 @@ class User_api
|
||||
end
|
||||
|
||||
def self.create_users_with_array_input (body,opts={})
|
||||
query_param_keys = [
|
||||
]
|
||||
query_param_keys = []
|
||||
|
||||
# verify existence of params
|
||||
raise "body is required" if body.nil?
|
||||
# set default values and merge with input
|
||||
options = {
|
||||
:body => body}.merge(opts)
|
||||
options = { :body => body}.merge(opts)
|
||||
|
||||
#resource path
|
||||
path = "/user.{format}/createWithArray".sub('{format}','json')
|
||||
@@ -52,15 +50,13 @@ class User_api
|
||||
|
||||
end
|
||||
|
||||
def self.create_user (body,opts={})
|
||||
query_param_keys = [
|
||||
]
|
||||
def self.create_user (body,opts={})
|
||||
query_param_keys = []
|
||||
|
||||
# verify existence of params
|
||||
raise "body is required" if body.nil?
|
||||
# set default values and merge with input
|
||||
options = {
|
||||
:body => body}.merge(opts)
|
||||
options = { :body => body}.merge(opts)
|
||||
|
||||
#resource path
|
||||
path = "/user.{format}".sub('{format}','json')
|
||||
@@ -96,15 +92,13 @@ class User_api
|
||||
|
||||
end
|
||||
|
||||
def self.create_users_with_list_input (body,opts={})
|
||||
query_param_keys = [
|
||||
]
|
||||
def self.create_users_with_list_input (body,opts={})
|
||||
query_param_keys = []
|
||||
|
||||
# verify existence of params
|
||||
raise "body is required" if body.nil?
|
||||
# set default values and merge with input
|
||||
options = {
|
||||
:body => body}.merge(opts)
|
||||
options = { :body => body}.merge(opts)
|
||||
|
||||
#resource path
|
||||
path = "/user.{format}/createWithList".sub('{format}','json')
|
||||
@@ -140,17 +134,14 @@ class User_api
|
||||
|
||||
end
|
||||
|
||||
def self.update_user (username,body,opts={})
|
||||
query_param_keys = [
|
||||
]
|
||||
def self.update_user (username,body,opts={})
|
||||
query_param_keys = []
|
||||
|
||||
# verify existence of params
|
||||
raise "username is required" if username.nil?
|
||||
raise "body is required" if body.nil?
|
||||
# set default values and merge with input
|
||||
options = {
|
||||
:username => username,
|
||||
:body => body}.merge(opts)
|
||||
options = { :username => username, :body => body}.merge(opts)
|
||||
|
||||
#resource path
|
||||
path = "/user.{format}/{username}".sub('{format}','json').sub('{' + 'username' + '}', escapeString(username))
|
||||
@@ -187,15 +178,13 @@ class User_api
|
||||
|
||||
end
|
||||
|
||||
def self.delete_user (username,opts={})
|
||||
query_param_keys = [
|
||||
]
|
||||
def self.delete_user (username,opts={})
|
||||
query_param_keys = []
|
||||
|
||||
# verify existence of params
|
||||
raise "username is required" if username.nil?
|
||||
# set default values and merge with input
|
||||
options = {
|
||||
:username => username}.merge(opts)
|
||||
options = { :username => username}.merge(opts)
|
||||
|
||||
#resource path
|
||||
path = "/user.{format}/{username}".sub('{format}','json').sub('{' + 'username' + '}', escapeString(username))
|
||||
@@ -212,15 +201,13 @@ class User_api
|
||||
|
||||
end
|
||||
|
||||
def self.get_user_by_name (username,opts={})
|
||||
query_param_keys = [
|
||||
]
|
||||
def self.get_user_by_name (username,opts={})
|
||||
query_param_keys = []
|
||||
|
||||
# verify existence of params
|
||||
raise "username is required" if username.nil?
|
||||
# set default values and merge with input
|
||||
options = {
|
||||
:username => username}.merge(opts)
|
||||
options = { :username => username}.merge(opts)
|
||||
|
||||
#resource path
|
||||
path = "/user.{format}/{username}".sub('{format}','json').sub('{' + 'username' + '}', escapeString(username))
|
||||
@@ -237,17 +224,14 @@ class User_api
|
||||
User.new(response)
|
||||
end
|
||||
|
||||
def self.login_user (username,password,opts={})
|
||||
query_param_keys = [
|
||||
:username, :password]
|
||||
def self.login_user (username,password,opts={})
|
||||
query_param_keys = [:username,:password]
|
||||
|
||||
# verify existence of params
|
||||
raise "username is required" if username.nil?
|
||||
raise "password is required" if password.nil?
|
||||
# set default values and merge with input
|
||||
options = {
|
||||
:username => username,
|
||||
:password => password}.merge(opts)
|
||||
options = { :username => username, :password => password}.merge(opts)
|
||||
|
||||
#resource path
|
||||
path = "/user.{format}/login".sub('{format}','json')
|
||||
@@ -263,13 +247,11 @@ class User_api
|
||||
string.new(response)
|
||||
end
|
||||
|
||||
def self.logout_user (opts={})
|
||||
query_param_keys = [
|
||||
]
|
||||
def self.logout_user (opts={})
|
||||
query_param_keys = []
|
||||
|
||||
# set default values and merge with input
|
||||
options = {
|
||||
}.merge(opts)
|
||||
options = { }.merge(opts)
|
||||
|
||||
#resource path
|
||||
path = "/user.{format}/logout".sub('{format}','json')
|
||||
@@ -285,5 +267,5 @@ class User_api
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user