HI, All
A server has HTTP REST API.
We need to make 3 requests one by one with control of execution, for each request, say, batch:
1) HTTP GET (search db), if any fail during network operations - stop with False result.
2) If found - HTTP DELETE request, if any fail during network operations - stop with False result.
3) If successfully deleted - HTTP POST request, to insert data, if any fail during network operations - stop with False result.
How to implement such synchronous batch universally ? Maybe even cross-platform.
A server has HTTP REST API.
We need to make 3 requests one by one with control of execution, for each request, say, batch:
1) HTTP GET (search db), if any fail during network operations - stop with False result.
2) If found - HTTP DELETE request, if any fail during network operations - stop with False result.
3) If successfully deleted - HTTP POST request, to insert data, if any fail during network operations - stop with False result.
How to implement such synchronous batch universally ? Maybe even cross-platform.