I can do the Rasa Rest API call in python by below code.
inp = str(input())
url = 'http://localhost:5005/model/parse'
data = {'text': inp}
response = requests.post(url, json=data)
response = json.loads(response.text)
How can we write the equivalent code in java? Thanks in advance.