def get_path(self, api_info):
path = self.__path or '<STR_LIT>'<EOL>if path and path[<NUM_LIT:0>] == '<STR_LIT:/>':<EOL><INDENT>path = path[<NUM_LIT:1>:]<EOL><DEDENT>else:<EOL><INDENT>if api_info.path:<EOL><INDENT>path = '<STR_LIT>' % (api_info.path, '<STR_LIT:/>' if path else '<STR_LIT>', path)<EOL><DEDENT><DEDENT>parts = path.split('<STR_LIT:/>')<EOL>for n, part in enumerate(parts):<EOL><INDENT>r = _VALID_PART_RE if n < len(parts) - <NUM_LIT:1> else _VALID_LAST_PART_RE<EOL>if part and '<STR_LIT:{>' in part and '<STR_LIT:}>' in part:<EOL><INDENT>if not r.match(part):<EOL><INDENT>raise api_exceptions.ApiConfigurationError(<EOL>'<STR_LIT>' % (part, path))<EOL><DEDENT><DEDENT><DEDENT>return path<EOL>
Get the path portion of the URL to the method (for RESTful methods).

        Request path can be specified in the method, and it could have a base
        path prepended to it.

        Args:
          api_info: API information for this API, possibly including a base path.
            This is the api_info property on the class that's been annotated for
            this API.

        Returns:
          This method's request path (not including the http://.../{base_path}
          prefix).

        Raises:
          ApiConfigurationError: If the path isn't properly formatted.