Class VendorRestController

java.lang.Object
org.xbricks.inventories.inventory.controllers.rest.VendorRestController

@RestController public class VendorRestController extends Object
  • Constructor Details

    • VendorRestController

      public VendorRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/vendors") public List<VendorDisplayDto> loadAll()
    • loadById

      @GetMapping("/inventory/rest/vendors/{id}") public VendorDisplayDto loadById(@PathVariable long id)
    • create

      @PostMapping("/inventory/rest/vendors") public org.springframework.http.ResponseEntity<VendorSaveDto> create(@Valid @RequestBody @Valid VendorSaveDto dto, org.springframework.validation.BindingResult bindingResult)
    • update

      @PutMapping("/inventory/rest/vendors/{id}") public org.springframework.http.ResponseEntity<VendorSaveDto> update(@PathVariable long id, @Valid @RequestBody @Valid VendorSaveDto dto, org.springframework.validation.BindingResult bindingResult)
    • delete

      @DeleteMapping("/inventory/rest/vendors/{id}") public org.springframework.http.ResponseEntity<String> delete(@PathVariable long id)