-1

I am trying to call a 3rd party API from inside my API.

That 3rd party API sends OTP to a mobile number.

My question is how can I send mobile number with the request to this 3rd party API.

It is easy to send a body with your request using Postman but how to do it using RestTemplate in spring? What methods to use?

This is how that 3rd party API consumes data in JSON format:

{
  "mobile": "98xxxxxxxxxx"
}

0 Answers0