Created
June 29, 2022 10:57
-
-
Save mafei-dev/6859a939e402aa728b0a813bcd30acbb to your computer and use it in GitHub Desktop.
stacksaga example - order-service-entity-ExternalUserPointsService.java
This file contains 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
package org.mono.stacksaga.example.orderservice.service.external; | |
import org.springframework.cloud.openfeign.FeignClient; | |
import org.springframework.http.MediaType; | |
import org.springframework.web.bind.annotation.PathVariable; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
@FeignClient(value = "UserPointsService", url = "${services.url.user-service}") | |
public interface ExternalUserPointsService { | |
@RequestMapping(method = RequestMethod.PUT, value = "/user/point?user_uid={user_uid}", produces = MediaType.APPLICATION_JSON_VALUE) | |
void incrementPoints(@PathVariable("user_uid") String userUid); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment