code: private WebResource getResource(WebResource service, APIInfo api, String... pathParams) {
          WebResource resource = service.path(api.getPath());
          resource = appendPathParams(resource, pathParams);
          return resource;
      }
docs: Modify URL to include the path params