'Get the effective policy for an endpoint.'

@controller.protected()
def get_policy_for_endpoint(self, request, endpoint_id):

    self.catalog_api.get_endpoint(endpoint_id)
    ref = self.endpoint_policy_api.get_policy_for_endpoint(endpoint_id)
    self._add_self_referential_link(request.context_dict, ref)
    return {'policy': ref}
