minos.api_gateway.common.rest.loader module¶
- class minos.api_gateway.common.rest.loader.RestRoutesLoader(endpoints, config, app=<Application 0x7f0e8f4386d0>)[source]¶
Bases:
object
Rest Interface Handler
Rest Interface for aiohttp web handling.
- __init__(endpoints, config, app=<Application 0x7f0e8f4386d0>)[source]¶
Initialize self. See help(type(self)) for accurate signature.
- resolve_callable(controller, action)[source]¶
Load controller class and action method. :type controller:
str
:param controller: Controller string. Example: “tests.service.CommandTestService.CommandService” :type action:str
:param action: Config instance. Example: “get_order” :return: A class method callable instance.