@Override
    public ApiRequestPathInfo parseEndpoint(String path, HeaderMap headers) {
       String[] split = StringUtils.split(path, "/", 3);

       if (split == null || split.length < 2) {
          throw new IllegalArgumentException("Invalid path format, expected /apiId/apiVersion/<resource path>");
       }

       ApiRequestPathInfo parsed = new ApiRequestPathInfo();
       // Let's set the org name manually as our configured `defaultOrgName`
       parsed.orgId = defaultOrgName;
       parsed.apiId = split[0];
       parsed.apiVersion = split[1];
       if (split.length > 2) {
          parsed.resource = "/" + split[2];
       } else {
          parsed.resource = "/";
       }
       return parsed;
    }
Example {@link IApiRequestPathParser} implementation.

See {@link DefaultRequestPathParser} for the standard implementation.

@author Marc Savy {@literal <marc@rhymewithgravy.com>}
plugins/custom-path-parser-demo/src/main/java/io/apiman/plugins/demo/custompathparser/CustomPathParserImpl.java