Skip to content

Instantly share code, notes, and snippets.

@wenqiglantz
Last active October 21, 2022 01:06
Show Gist options
  • Select an option

  • Save wenqiglantz/59eec8e131386c8527fb39b32efad6d1 to your computer and use it in GitHub Desktop.

Select an option

Save wenqiglantz/59eec8e131386c8527fb39b32efad6d1 to your computer and use it in GitHub Desktop.
@ReactiveFeignClient(
name = "customer-service",
url = "${customer-service.urls.base-url}",
configuration = CustomerClientConfig.class
)
public interface CustomerServiceClient {
@PostMapping(value = "${customer-service.urls.create-customer-url}", headers = {"Content-Type=application/json"})
Mono<CustomerVO> createCustomer(@RequestBody CustomerVO customerVO);
@PutMapping(value = "${customer-service.urls.update-customer-url}", headers = {"Content-Type=application/json"})
Mono<CustomerVO> updateCustomer(@PathVariable("customerId") String customerId,
@RequestBody CustomerVO customerVO);
@GetMapping(value = "${customer-service.urls.get-customer-url}")
Mono<CustomerVO> getCustomer(@PathVariable("customerId") String customerId);
@DeleteMapping(value = "${customer-service.urls.delete-customer-url}")
Mono<Void> deleteCustomer(@PathVariable("customerId") String customerId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment