Search in sources :

Example 1 with BusinessServiceListDTO

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();
}
Also used : BusinessService(org.opennms.netmgt.bsm.service.model.BusinessService) BusinessServiceListDTO(org.opennms.web.rest.v2.bsm.model.BusinessServiceListDTO) GET(javax.ws.rs.GET)

Aggregations

GET (javax.ws.rs.GET)1 BusinessService (org.opennms.netmgt.bsm.service.model.BusinessService)1 BusinessServiceListDTO (org.opennms.web.rest.v2.bsm.model.BusinessServiceListDTO)1