public interface WriteRestController<M extends BaseModelAbstract<I>,D,S extends BaseService<M,?,D,I,U>,I extends Comparable<? super I>,U>
| Modifier and Type | Field and Description |
|---|---|
static String |
DELETE_URL |
static String |
SAVE_URL |
static String |
UPDATE_URL |
| Modifier and Type | Method and Description |
|---|---|
default org.springframework.http.ResponseEntity<Void> |
DELETE(I id) |
S |
getService() |
U |
getUser() |
default org.springframework.http.ResponseEntity<M> |
SAVE(D dto) |
default org.springframework.http.ResponseEntity<M> |
UPDATE(I id,
D dto) |
static final String SAVE_URL
static final String UPDATE_URL
static final String DELETE_URL
@PostMapping(value="",
consumes="application/json")
default org.springframework.http.ResponseEntity<M> SAVE(@RequestBody @Validated(value=ValidationGroups.Save.class)
D dto)
throws URISyntaxException
URISyntaxException@PutMapping(value="{id}",
consumes="application/json")
default org.springframework.http.ResponseEntity<M> UPDATE(@PathVariable
I id,
@RequestBody @Validated(value=ValidationGroups.Update.class)
D dto)
@DeleteMapping(value="{id}")
default org.springframework.http.ResponseEntity<Void> DELETE(@PathVariable
I id)
S getService()
U getUser()
Copyright © 2020. All rights reserved.