@DELETE
@Produces({MediaType.APPLICATION_JSON})
@Path("/{id}")
public Response deleteBook(@PathParam("id") String id) {
BookActivity bookActivity = new BookActivity();
String res = bookActivity.deleteBook(id);
if (res.equals("OK")) {
return Response.status(Status.OK).build();
}
return null;
}