Interface HousesAPI
- All Known Implementing Classes:
HousesAPIClient
public interface HousesAPI
This interface defines the REST-like, RMM-level3 interface to the
House Service.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<HouseDTO> createHouse
(HouseDTO house) org.springframework.http.ResponseEntity
<HouseListDTO> findHousesBy
(HouseSearchParams searchParams, org.springframework.data.domain.Pageable pageable) An example query using a GET and query parameters.org.springframework.http.ResponseEntity
<HouseDTO> org.springframework.http.ResponseEntity
<Void> org.springframework.http.ResponseEntity
<Void> org.springframework.http.ResponseEntity
<Void> removeHouse
(String id) org.springframework.http.ResponseEntity
<HouseDTO> updateHouse
(String id, HouseDTO house) withRestTemplate
(org.springframework.web.client.RestTemplate restTemplate) Used to change the authenticated identity of the client when security has been enabled.
-
Field Details
-
HOUSES_PATH
- See Also:
-
HOUSE_PATH
- See Also:
-
-
Method Details
-
withRestTemplate
Used to change the authenticated identity of the client when security has been enabled.- Parameters:
restTemplate
- contains basis for client/identity- Returns:
- new client using the supplied restTemplate
-
createHouse
-
findHousesBy
org.springframework.http.ResponseEntity<HouseListDTO> findHousesBy(HouseSearchParams searchParams, org.springframework.data.domain.Pageable pageable) An example query using a GET and query parameters. Useful in expressing range searches.- Parameters:
searchParams
- object expressing min/max propertiespageable
- paging constraints- Returns:
- list of results
-
getHouse
-
hasHouse
-
updateHouse
-
removeHouse
-
removeAllHouses
org.springframework.http.ResponseEntity<Void> removeAllHouses()
-