use of org.opennms.web.rest.v2.bsm.model.BusinessServiceListDTO in project opennms by OpenNMS.
the class BusinessServiceRestService method list.
@GET
public Response list() {
List<BusinessService> services = getManager().getAllBusinessServices();
if (services == null || services.isEmpty()) {
return Response.noContent().build();
}
BusinessServiceListDTO serviceList = new BusinessServiceListDTO(services);
return Response.ok(serviceList).build();
}
Aggregations