Class ProdottoController
java.lang.Object
it.unisa.thespoon.prodotto.controller.ProdottoController
@Validated
@RestController
@RequestMapping("/prodotto")
public class ProdottoController
extends Object
Controller contenente gli endpoint delle API di TheSpoon per il sottosistema Prodotto
- Author:
- Jacopo Gennaro Esposito
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetAllProdottiByIdRistorante
(Integer idRistorante) org.springframework.http.ResponseEntity
<Prodotto> GetProdotto
(Integer idProdotto) org.springframework.http.ResponseEntity
<org.springframework.http.HttpStatus> InsertProdotto
(@Valid InsertProdottoRequest insertProdottoRequest, org.springframework.security.core.Authentication authentication) org.springframework.http.ResponseEntity
<org.springframework.http.HttpStatus> RemoveProdotto
(Integer idProdotto)
-
Field Details
-
prodottoService
-
-
Constructor Details
-
ProdottoController
public ProdottoController()
-
-
Method Details
-
InsertProdotto
@PostMapping("/insertProdotto") public org.springframework.http.ResponseEntity<org.springframework.http.HttpStatus> InsertProdotto(@Valid @RequestBody @Valid InsertProdottoRequest insertProdottoRequest, org.springframework.security.core.Authentication authentication) -
RemoveProdotto
@DeleteMapping("/removeProdotto/{id_prodotto}") public org.springframework.http.ResponseEntity<org.springframework.http.HttpStatus> RemoveProdotto(@PathVariable("id_prodotto") Integer idProdotto) -
GetProdotto
-
GetAllProdottiByIdRistorante
-