def __init__(self, api, path, mapping):
self.api = api<EOL>self.path = path<EOL>self.mapping = mapping<EOL>self.regex = self._build_regex()<EOL>self.name = self._build_view_name()<EOL>
:type api: lepo.apidef.APIDefinition
:type path: str
:type mapping: dict