Methods w/o parameters don't have a parameters object in discovery.
This commit is contained in:
@@ -163,6 +163,7 @@ def createResource(http, baseUrl, model, resourceName, resourceDesc,
|
||||
pattern_params = {} # Parameters that must match a regex
|
||||
query_params = [] # Parameters that will be used in the query string
|
||||
path_params = {} # Parameters that will be used in the base URL
|
||||
if 'parameters' in methodDesc:
|
||||
for arg, desc in methodDesc['parameters'].iteritems():
|
||||
param = key2param(arg)
|
||||
argmap[param] = arg
|
||||
|
||||
Reference in New Issue
Block a user