Class ItemController
java.lang.Object
com.deusto.coffeestack.controller.ItemController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ItemResponse> create(@Valid ItemCreateRequest request) org.springframework.http.ResponseEntity<Void> org.springframework.data.domain.Page<ItemResponse> list(org.springframework.data.domain.Pageable pageable) update(Long id, @Valid ItemUpdateRequest request)
-
Constructor Details
-
ItemController
-
-
Method Details
-
list
@GetMapping public org.springframework.data.domain.Page<ItemResponse> list(org.springframework.data.domain.Pageable pageable) -
get
-
create
@PostMapping public org.springframework.http.ResponseEntity<ItemResponse> create(@Valid @RequestBody @Valid ItemCreateRequest request) -
update
@PutMapping("/{id}") public ItemResponse update(@PathVariable Long id, @Valid @RequestBody @Valid ItemUpdateRequest request) -
delete
-