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 Details

  • 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

      @GetMapping("/getProdotto/{id_prodotto}") public org.springframework.http.ResponseEntity<Prodotto> GetProdotto(@PathVariable("id_prodotto") Integer idProdotto)
    • GetAllProdottiByIdRistorante

      @GetMapping("/getAllProdottiByIdRistorante/{id_ristorante}") public org.springframework.http.ResponseEntity<List<Prodotto>> GetAllProdottiByIdRistorante(@PathVariable("id_ristorante") Integer idRistorante)