@ GET @ Path ( "/application/{id}" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response pushMessageInformationPerApplication ( @ PathParam ( "id" ) String id , @ QueryParam ( "page" ) Integer page , @ QueryParam ( "per_page" ) Integer pageSize , @ QueryParam ( "sort" ) String sorting , @ QueryParam ( "search" ) String search ) { pageSize = parsePageSize ( pageSize ) ; if ( page == null ) { page = 0 ; } if ( id == null ) { return Response . status ( Response . Status . NOT_FOUND ) . entity ( "Could not find requested information" ) . build ( ) ; } PageResult < FlatPushMessageInformation , MessageMetrics > pageResult = metricsService . findAllFlatsForPushApplication ( id , search , isAscendingOrder ( sorting ) , page , pageSize ) ; return Response . ok ( pageResult . getResultList ( ) ) . header ( "total" , pageResult . getAggregate ( ) . getCount ( ) ) . header ( "receivers" , "0" ) . header ( "appOpenedCounter" , pageResult . getAggregate ( ) . getAppOpenedCounter ( ) ) . build ( ) ; }
GET info about submitted push messages for the given Push Application