Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, api_map, root_endpoint):
"""
Initializes the api_map and eventual sandbox mode
Params:
`api_map`: Dict with urls and methods for the request
`root_endpoint`: Api root endpoint
"""
self.api_map = api_map
self.root_endpoint = root_endpoint
self.resolver = resolvers.SimpleResolver(self.root_endpoint)