@RequestMapping(method = RequestMethod.GET) public @ResponseBody List<Pedido> list() throws APIException { return pedidoService.findAll(); }