code: def handle_discovery_request(self, path, request, start_response):
      
      if path == self._GET_REST_API:
        return self._get_rest_doc(request, start_response)
      elif path == self._GET_RPC_API:
        error_msg = ('RPC format documents are no longer supported with the '
                     'Endpoints Framework for Python. Please use the REST '
                     'format.')
        _logger.error('%s', error_msg)
        return util.send_wsgi_error_response(error_msg, start_response)
      elif path == self._LIST_API:
        return self._list(request, start_response)
      return False
docs: Returns the result of a discovery service request.
  
      This calls start_response and returns the response body.
  
      Args:
        path: A string containing the API path (the portion of the path
          after /_ah/api/).
        request: An ApiRequest, the transformed request sent to the Discovery API.
        start_response: A function with semantics defined in PEP-333.
  
      Returns:
        The response body.  Or returns False if the request wasn't handled by
        DiscoveryService.