@RequestMapping( value = "update", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE) @ResponseBody public Reponse updateReponse(@RequestBody Reponse reponse) { return rs.updateReponse(reponse); }
// Fonction utilisée uniquement par le QcmService public List<Reponse> findReponseByIdQuestion(long id) { return rs.findReponseByIdQuestion(id); }
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) void deleteReponse(@PathVariable long id) { rs.deleteReponse(id); }
@RequestMapping(value = "/{id}", method = RequestMethod.GET) public List<Reponse> findById(@PathVariable String id) { return rs.findById(id); }
@RequestMapping(value = "/all", method = RequestMethod.GET) public List<Reponse> findAll() { return rs.findAll(); }