@DELETE
@Path("grid/{id}")
@Produces(MediaType.APPLICATION_JSON)
public Response excluirGridEntity(@PathParam("id") Long id){
GridEntity entity = demoService.obterGridEntityPorId(id);
if(entity != null){
demoService.excluirGridEntity(entity);
return Response.status(Response.Status.OK).build();
}
return Response.status(Response.Status.NOT_FOUND).build();