I am new to Django. I have created an API named http://127.0.0.1:8000/api/update/1/ and it works perfectly in the browser and on the Postman app.
http://127.0.0.1:8000/api/update/1/
Howev
In local host You must start the server and also do app development in same system then only it works for you..