forked from loafle/openapi-generator-original
updated ruby template
This commit is contained in:
parent
950bfff1c1
commit
15236ef376
@ -18,6 +18,7 @@ class {{classname}}
|
||||
{{/optional}}{{/allParams}} # @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}
|
||||
def self.{{nickname}} ({{#allParams}}{{paramName}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}}, {{/allParams}}opts={})
|
||||
query_param_keys = [{{#queryParams}}:{{paramName}}{{#hasMore}},{{/hasMore}}{{/queryParams}}]
|
||||
headerParams = {}
|
||||
|
||||
{{#requiredParamCount}}
|
||||
# verify existence of params
|
||||
|
@ -15,6 +15,7 @@ class PetApi
|
||||
# @return void
|
||||
def self.updatePet (body, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -83,6 +84,7 @@ class PetApi
|
||||
# @return void
|
||||
def self.addPet (body, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -151,6 +153,7 @@ class PetApi
|
||||
# @return array[Pet]
|
||||
def self.findPetsByStatus (status, opts={})
|
||||
query_param_keys = [:status]
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -201,6 +204,7 @@ class PetApi
|
||||
# @return array[Pet]
|
||||
def self.findPetsByTags (tags, opts={})
|
||||
query_param_keys = [:tags]
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -251,6 +255,7 @@ class PetApi
|
||||
# @return Pet
|
||||
def self.getPetById (pet_id, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -303,6 +308,7 @@ class PetApi
|
||||
# @return void
|
||||
def self.updatePetWithForm (pet_id, name, status, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -357,6 +363,7 @@ class PetApi
|
||||
# @return void
|
||||
def self.deletePet (api_key, pet_id, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -409,6 +416,7 @@ class PetApi
|
||||
# @return void
|
||||
def self.uploadFile (pet_id, additional_metadata, file, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
|
@ -14,6 +14,7 @@ class StoreApi
|
||||
# @return map[string,int]
|
||||
def self.getInventory (opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -63,6 +64,7 @@ class StoreApi
|
||||
# @return Order
|
||||
def self.placeOrder (body, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -132,6 +134,7 @@ class StoreApi
|
||||
# @return Order
|
||||
def self.getOrderById (order_id, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -182,6 +185,7 @@ class StoreApi
|
||||
# @return void
|
||||
def self.deleteOrder (order_id, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
|
@ -15,6 +15,7 @@ class UserApi
|
||||
# @return void
|
||||
def self.createUser (body, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -83,6 +84,7 @@ class UserApi
|
||||
# @return void
|
||||
def self.createUsersWithArrayInput (body, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -151,6 +153,7 @@ class UserApi
|
||||
# @return void
|
||||
def self.createUsersWithListInput (body, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -220,6 +223,7 @@ class UserApi
|
||||
# @return string
|
||||
def self.loginUser (username, password, opts={})
|
||||
query_param_keys = [:username,:password]
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -269,6 +273,7 @@ class UserApi
|
||||
# @return void
|
||||
def self.logoutUser (opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -316,6 +321,7 @@ class UserApi
|
||||
# @return User
|
||||
def self.getUserByName (username, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -367,6 +373,7 @@ class UserApi
|
||||
# @return void
|
||||
def self.updateUser (username, body, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
@ -437,6 +444,7 @@ class UserApi
|
||||
# @return void
|
||||
def self.deleteUser (username, opts={})
|
||||
query_param_keys = []
|
||||
headerParams = {}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user