I am designing a REST Bulk Request that will take following array of following element:
{
"method": <POST | GET | PATCH>,
"path": <Relative URL of API to execute>
}
All these Bulk elements would execute the API on the same server. Is there a way I can call dispatcher servlet to execute this internally rather than calling methods backed by API ? I also want to read response for every request operation in Bulk request and accumulate response that will returned.
Currently I am calling methods directly with if elses doing request mapping style of work.
Please let me know if I am missing any details on expressing my problem definition. Request redirect/forward wont work in my case as I need to be in control to execute every operation in Bulk request and collect and accumulate response.
I am using Spring Boot MVC
Anand