@FeignClient(name="direct-config-service",
url="${direct.config.service.url}",
configuration=org.nhindirect.common.rest.feign.DefaultFeignClientConfiguration.class)
public interface AddressClient
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Void> |
addAddress(org.nhindirect.config.model.Address address) |
org.nhindirect.config.model.Address |
getAddress(String address) |
Collection<org.nhindirect.config.model.Address> |
getAddressesByDomain(String domainName) |
org.springframework.http.ResponseEntity<Void> |
removeAddress(String address) |
void |
updateAddress(org.nhindirect.config.model.Address address) |
@GetMapping(value="/address/{address}")
org.nhindirect.config.model.Address getAddress(@PathVariable(value="address")
String address)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceException@GetMapping(value="/address/domain/{domainName}")
Collection<org.nhindirect.config.model.Address> getAddressesByDomain(@PathVariable(value="domainName")
String domainName)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceException@PutMapping(value="/address",
consumes="application/json")
org.springframework.http.ResponseEntity<Void> addAddress(@RequestBody
org.nhindirect.config.model.Address address)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceException@PostMapping(value="/address",
consumes="application/json")
void updateAddress(@RequestBody
org.nhindirect.config.model.Address address)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceException@DeleteMapping(value="address/{address}",
consumes="application/json")
org.springframework.http.ResponseEntity<Void> removeAddress(@PathVariable(value="address")
String address)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceExceptionCopyright © 2021. All rights reserved.