use of org.eclipse.winery.repository.rest.resources.apiData.InstanceStateApiData in project winery by eclipse.
the class InstanceStatesResource method getInstanceStates.
@GET
@Produces(MediaType.APPLICATION_JSON)
public List<InstanceStateApiData> getInstanceStates() {
List<TInstanceState> instanceStates = this.instanceStates;
ArrayList<InstanceStateApiData> states = new ArrayList<>(instanceStates.size());
for (TInstanceState instanceState : instanceStates) {
states.add(new InstanceStateApiData(instanceState.getState()));
}
return states;
}
Aggregations