Im trying to start an API design using Django Rest Framework, and the problem Im trying to solve is the following: Request endpoint is like this: POST http://server:8080/api/v1/device attribute: create
When my server receives this API request, it will launch a backend process which takes around 20-60 seconds(Starts an SSH connection to a remote server and check periodically for status there.). I'm not sure how to respond to initial API request? Using a 200 OK indication that request is handled with a "starting" and then offer an endpoint to provide status?
What is the best architecture for this type of requests?