Example #1
0
 @POST
 @Consumes(MediaType.APPLICATION_JSON)
 public Response putClient(ClientModel client) {
   AppLog.log(this.getClass(), AppLog.Level.INFO, "Inserting data for Client");
   return insertModel(client, d -> d.putClient(client));
 }
Example #2
0
 @GET
 @Produces(MediaType.APPLICATION_JSON)
 public String getAllClients(@Context HttpServletResponse response) {
   AppLog.log(this.getClass(), AppLog.Level.INFO, "Getting Client data");
   return getJsonData(response, d -> d.getAllClients());
 }