Class PrenotazioneController
java.lang.Object
it.unicam.cs.ids2425.FilieraAgricola.controller.PrenotazioneController
@RestController
@RequestMapping("/api/prenotazioni")
public class PrenotazioneController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<PrenotazioneResponse>> getByUtente(Long id) org.springframework.http.ResponseEntity<PrenotazioneResponse> prenota(PrenotazioneRequest request)
-
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)
-