Last active
April 4, 2021 09:21
-
-
Save mehmetcemyucel/105429985b5cb00c9f73ad37c414698e to your computer and use it in GitHub Desktop.
mcy-sb-rest-test
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
@RestController | |
public class RestService { | |
@Autowired | |
SecondService service; | |
@PostMapping("/post-service") | |
public Response restService(@RequestBody Request request) { | |
return new Response(request.getRequestValue1() + service.getValue(), request.getRequestValue2()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment