I am building a spring boot rest API in which. I want to send the file via HTTP from one spring rest API application to another rest API application and get a response whether the file successfully sends or not.
more explanation about the above scenario
I have 2 spring-rest-API. one running on port 4000 and another on 5000 on the local machine. I want to send a file from 4000 port rest API to 5000 port rest-API via post request and 5000 port rest-API will give a response whether the file successfully received or not. as this process is asynchronous. I also want to know how to handle it asynchronously.
Thanks in advance.