Example #1
0
  @GET
  @Path("/definitions")
  @PropertyFiltering
  public Response getAllBuildDefinitions(@QueryParam("since") @DefaultValue("0") long since) {
    Set<BuildDefinition> buildDefinitions = buildDefinitionService.getAllActive(since);
    long offset = Math.max(maxUpdatedTimestamp(buildDefinitions), since);

    return Response.ok(buildDefinitions).header("x-last-modified-timestamp", offset).build();
  }