Class GestoreController
java.lang.Object
it.unicam.cs.ids2425.FilieraAgricola.controller.GestoreController
@RestController
@RequestMapping("/api/gestore/utenti")
public class GestoreController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> accreditaDistributore(Long id, AccreditaDistributoreRequest request) org.springframework.http.ResponseEntity<Void> accreditaProduttore(Long id, AccreditaProduttoreRequest request) org.springframework.http.ResponseEntity<Void> accreditaRuoloBase(Long id, AccreditaRequest request) org.springframework.http.ResponseEntity<Void> accreditaTrasformatore(Long id, AccreditaTrasformatoreRequest request)
-
Constructor Details
-
GestoreController
public GestoreController()
-
-
Method Details
-
accreditaProduttore
@PreAuthorize("hasRole(\'GESTORE\')") @PostMapping("/{id}/accredita-produttore") public org.springframework.http.ResponseEntity<Void> accreditaProduttore(@PathVariable Long id, @RequestBody AccreditaProduttoreRequest request) -
accreditaTrasformatore
@PreAuthorize("hasRole(\'GESTORE\')") @PostMapping("/{id}/accredita-trasformatore") public org.springframework.http.ResponseEntity<Void> accreditaTrasformatore(@PathVariable Long id, @RequestBody AccreditaTrasformatoreRequest request) -
accreditaDistributore
@PreAuthorize("hasRole(\'GESTORE\')") @PostMapping("/{id}/accredita-distributore") public org.springframework.http.ResponseEntity<Void> accreditaDistributore(@PathVariable Long id, @RequestBody AccreditaDistributoreRequest request) -
accreditaRuoloBase
@PreAuthorize("hasRole(\'GESTORE\')") @PostMapping("/{id}/accredita-ruolo") public org.springframework.http.ResponseEntity<Void> accreditaRuoloBase(@PathVariable Long id, @RequestBody AccreditaRequest request)
-