def helper_rest_sys(self, request): result = { "Information": {"Description": "Wedge System"}, "Actions": [], "Resources": get_endpoints("/api/sys"), } return web.json_response(result, dumps=dumps_bytestr)
async def rest_sys(self, request): result = { "Information": { "Description": "Wedge System", }, "Actions": [], "Resources": get_endpoints('/api/sys') } return web.json_response(result)
def helper_rest_mb_sys(self, request): result = { "Information": { "Description": "System Motherboard", }, "Actions": [], "Resources": get_endpoints('/api/sys/mb') } return web.json_response(result, dumps=dumps_bytestr)
async def rest_api(self, request): result = { "Information": { "Description": "Wedge RESTful API Entry", }, "Actions": [], "Resources": get_endpoints('/api') } return web.json_response(result)
def helper_rest_api(self, request): result = { "Information": { "Description": "Wedge RESTful API Entry", "version": "v0.1", }, "Actions": [], "Resources": get_endpoints("/api"), } return web.json_response(result, dumps=dumps_bytestr)