def get_endpoints(self): endpoints = [] for verb, verb_iface in VERBS.items(): for name, adapter in self.get_endpoints_for_verb(verb_iface): endpoints.append({'name': name, 'adapter': adapter, 'verb': verb}) return endpoints
def get_endpoints(self): endpoints = [] for verb, verb_iface in VERBS.items(): for name, adapter in self.get_endpoints_for_verb(verb_iface): endpoints.append({ 'name': name, 'adapter': adapter, 'verb': verb }) return endpoints
def mark_request(self, request): for verb, iface in VERBS.items(): if request.get('REQUEST_METHOD') == verb: alsoProvides(request, iface)