I am building a REST API using ASP.NET Web API. I have a post request that may take more than 30s to complete. I resolved this by returning a 200 OK and a status attribute that can be polled by client app. If the status becomes "complete" the client can retrieve this result. But i am doing this mostly in any similar operation in the API.
I discovered the 102 HTTP Status Code that tells the client that the request is "Processing" and that it should wait for the complete response.
Questions : 1-What is your advice for using this approach ? 2-How to implement it in ASP.NET Web API using C#?
Edit:
For more precise explanation i want to implement this sequence diagram on ASP.NET.