Last active
October 21, 2022 01:06
-
-
Save wenqiglantz/59eec8e131386c8527fb39b32efad6d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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