website.automate.manager.api.client.ScenarioRetrievalRemoteService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of manager-api-client Show documentation
Show all versions of manager-api-client Show documentation
Implementation of the automate.website public API.
package website.automate.manager.api.client;
import static java.util.Arrays.asList;
import java.util.List;
import website.automate.manager.api.client.model.Authentication;
import website.automate.manager.api.client.model.Scenario;
import website.automate.manager.api.client.support.RestTemplate;
public class ScenarioRetrievalRemoteService {
private static final ScenarioRetrievalRemoteService INSTANCE = new ScenarioRetrievalRemoteService();
public static ScenarioRetrievalRemoteService getInstance(){
return INSTANCE;
}
private RestTemplate restTemplate = RestTemplate.getInstance();
public List getScenariosByProjectIdAndPrincipal(String projectId, Authentication principal) {
return asList(restTemplate.performGet(Scenario [].class,
"/public/project/" + projectId + "/scenario?profile=BRIEF",
principal));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy