def METHOD_NAME(self, router: Router) -> list[Rule]:
    def invocation_response(request: Request, req_id: str) -> Response:
        result = InvocationResult(req_id, request.data)
        self.service_endpoint.invocation_result(invoke_id=req_id, invocation_result=result)
        return Response(status=HTTPStatus.ACCEPTED)
    def invocation_error(request: Request, req_id: str) -> Response:
        result = InvocationError(req_id, request.data)
        self.service_endpoint.invocation_error(invoke_id=req_id, invocation_error=result)
        return Response(status=HTTPStatus.ACCEPTED)
    def invocation_logs(request: Request, invoke_id: str) -> Response:
        logs = request.json
        if isinstance(logs, Dict):
            logs["request_id"] = invoke_id
            invocation_logs = InvocationLogs(**logs)
            self.service_endpoint.invocation_logs(
                invoke_id=invoke_id, invocation_logs=invocation_logs
            )
        else:
            LOG.error("Invalid logs from RAPID! Logs: %s", logs)
            # TODO handle error in some way?
        return Response(status=HTTPStatus.ACCEPTED)
    def status_ready(request: Request, executor_id: str) -> Response:
        self.service_endpoint.status_ready(executor_id=executor_id)
        return Response(status=HTTPStatus.ACCEPTED)
    def status_error(request: Request, executor_id: str) -> Response:
        LOG.warning("Execution environment startup failed: %s", to_str(request.data))
        self.service_endpoint.status_error(executor_id=executor_id)
        return Response(status=HTTPStatus.ACCEPTED)
    return [
        router.add(
            f"{self.get_endpoint_prefix()}/invocations/<req_id>/response",
            endpoint=invocation_response,
            methods=["POST"],
        ),
        router.add(
            f"{self.get_endpoint_prefix()}/invocations/<req_id>/error",
            endpoint=invocation_error,
            methods=["POST"],
        ),
        router.add(
            f"{self.get_endpoint_prefix()}/invocations/<invoke_id>/logs",
            endpoint=invocation_logs,
            methods=["POST"],
        ),
        router.add(
            f"{self.get_endpoint_prefix()}/status/<executor_id>/ready",
            endpoint=status_ready,
            methods=["POST"],
        ),
        router.add(
            f"{self.get_endpoint_prefix()}/status/<executor_id>/error",
            endpoint=status_error,
            methods=["POST"],
        ),
    ]