@Override
    public ApiRequestPathInfo parseEndpoint(String path, HeaderMap headers) {
        ApiRequestPathInfo parsedPath = ApimanPathUtils.parseApiRequestPath(
                headers.get(ApimanPathUtils.X_API_VERSION_HEADER),
                headers.get(ApimanPathUtils.ACCEPT_HEADER),
                path);

        if (parsedPath.orgId == null)
            throw new IllegalArgumentException(String.format("Invalid endpoint provided: %s", path)); //$NON-NLS-1$

        return parsedPath;
    }
The standard apiman {@link IApiRequestPathParser}.

@author Marc Savy {@literal <marc@rhymewithgravy.com>}
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/DefaultRequestPathParser.java