MCPcopy Create free account
hub / github.com/apache/cloudstack / get_args

Function get_args

tools/ngui/app.py:21–26  ·  view source on GitHub ↗

Default type of request.args or request.json is multidict. Converts it to dict so that can be passed to make_request

(multidict)

Source from the content-addressed store, hash-verified

19app = Flask(__name__)
20
21def get_args(multidict):
22 """Default type of request.args or request.json is multidict. Converts it to dict so that can be passed to make_request"""
23 data = {}
24 for key in multidict.keys():
25 data[key] = multidict.get(key)
26 return data
27
28@app.route('/api/<command>', methods=['GET'])
29def rawapi(command):

Callers 1

rawapiFunction · 0.70

Calls 2

keysMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected