Class ManufacturerRestController

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

@RestController public class ManufacturerRestController extends Object
  • Constructor Details

    • ManufacturerRestController

      public ManufacturerRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/manufacturers") public List<ManufacturerDisplayDto> loadAll()
    • loadById

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

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

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

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