What's the purpose of doing that?
If it's for
testing purposes, I suggest looking at
Consumer-Driven Contracts (CDC) using a tool like Pact or Spring Cloud Contract. That way, you can better manage synchronization of both sides of the conversation. If you don't go that far, you could just stub out the service yourself and have it return whatever it is you need for testing purposes. But CDC is still a better way to go.