code: public JSONObject getPathFromEndpoint(String pathValue, String requestType) throws Exception {
          int type = getRequestTypeFromString(requestType);
          String url = BASE_PATH;
          JSONObject response = new JSONObject(doGet(url, null));
          JSONArray paths = response.getJSONArray("paths");
          for (int i = 0; i < paths.length(); i++) {
              JSONObject path = paths.getJSONObject(i);
              if (path.getString("path").equals(pathValue) && path.getInt("requestType") == type) {
                  return path;
              }
          }
          return null;
      }
docs: Retrieves the path using the endpoint value
  
  @param pathValue - path (endpoint) value
  @param requestType - "GET", "POST", etc
  @return Path or null
  @throws Exception exception