Class PrenotazioneController

java.lang.Object
it.unicam.cs.ids2425.FilieraAgricola.controller.PrenotazioneController

@RestController @RequestMapping("/api/prenotazioni") public class PrenotazioneController extends Object
  • Constructor Details

    • PrenotazioneController

      public PrenotazioneController()
  • Method Details

    • prenota

      @PreAuthorize("hasRole(\'ACQUIRENTE\')") @PostMapping public org.springframework.http.ResponseEntity<PrenotazioneResponse> prenota(@RequestBody PrenotazioneRequest request)
    • getByUtente

      @PreAuthorize("hasRole(\'ACQUIRENTE\')") @GetMapping("/utente/{id}") public org.springframework.http.ResponseEntity<List<PrenotazioneResponse>> getByUtente(@PathVariable Long id)