All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.catools.atlassian.zapi.rest.util.CZApiProjectClient Maven / Gradle / Ivy

package org.catools.atlassian.zapi.rest.util;

import io.restassured.response.Response;
import org.catools.atlassian.zapi.model.CZApiProjects;
import org.catools.atlassian.zapi.rest.CZApiRestClient;
import org.catools.common.utils.CJsonUtil;

public class CZApiProjectClient extends CZApiRestClient {

  public CZApiProjectClient() {
    super();
  }

  public CZApiProjects getProjects() {
    Response response = get("/util/project-list");
    return CJsonUtil.read(
        CJsonUtil.toString(response.body().jsonPath().get("options")), CZApiProjects.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy