Need to poll a service based on result of the GET service in angular
I have a reporting service which has the response as follows
{url}/report/72?sortby=label1
response
While the report is being computed
{
"id": "72",
"status": "computing"
}
On successful completion success
{
"id": "72",
"status": "completed",
"data": {
"columns": ["uuid", "label1", "label3"],
"rows": [
["xyghj", 927, 955]
]
}
}
I need to retry the call till I get "completed" status in the response and then defer the result