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