Exemplo n.º 1
0
 @Override
 @GET
 @Path("/workitem/getallwithissue")
 public Response getWorkItemsWithIssue() {
   try {
     List<WorkItem> workItems = ticketSystemService.getWorkItemsWithIssue();
     return Response.status(200).entity(gson.toJson(workItems)).build();
   } catch (final TicketSystemServiceException exception) {
     return Response.status(400).entity(exception).build();
   }
 }