How to create the JSON in the integration flow. I want to send the JSON
{
"username": "user",
"password": "password1"
}
to the URL http://localhost:8051/session
My integration flow builder is:
.integrationFlowBuilder
.handle(Http.outboundGateway("http://localhost:8051/session")
.httpMethod(HttpMethod.POST).expectedResponseType(String.class))