I need to build a /search
API that allows someone to send a POST, and retrieve an ID that can be queried later via a seperate /results
API.
I've looked at Spring methods:
DeferredResult
@Async
but neither seem to demonstrate returning an ID from a search. I need to have a system that can remember the ID and reference it when someone calls the /results
API to retrieve specific results for a search.
Are there any examples of a Spring application doing this