code: @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();
      }
docs: GET info about submitted push messages for the given Push Application
  
  @param id        id of {@link org.jboss.aerogear.unifiedpush.api.PushApplication}
  @param page      page number
  @param pageSize  number of items per page
  @param sorting   sorting order: {@code asc} (default) or {@code desc}
  @param search    search query
  @return          list of {@link FlatPushMessageInformation}s
  
  @responseheader total            Total count of items
  @responseheader receivers        Receivers
  @responseheader appOpenedCounter App Opened Counter
  
  @statuscode 404 The requested PushApplication resource does not exist