public interface ReadRestController<M extends BaseModelAbstract<I>,C extends BaseCriteriaAbstract<I>,S extends BaseService<M,C,?,I,U>,I extends Comparable<? super I>,U>
| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER_URL |
static String |
GET_LIST_URL |
static String |
GET_URL |
| Modifier and Type | Method and Description |
|---|---|
default org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<M>> |
FILTER(C criteria,
org.springframework.data.domain.Pageable page) |
default org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<M>> |
GET(C criteria,
org.springframework.data.domain.Pageable page) |
default org.springframework.http.ResponseEntity<M> |
GET(I id) |
S |
getService() |
U |
getUser() |
static final String GET_LIST_URL
static final String GET_URL
static final String FILTER_URL
@GetMapping(value="{id}")
default org.springframework.http.ResponseEntity<M> GET(@PathVariable
I id)
@PostMapping(value="filter",
consumes="application/json")
default org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<M>> FILTER(@RequestBody @Validated
C criteria,
org.springframework.data.domain.Pageable page)
@GetMapping(value="") default org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<M>> GET(@Validated C criteria, org.springframework.data.domain.Pageable page)
S getService()
U getUser()
Copyright © 2020. All rights reserved.