Open ethancwb opened 5 years ago
https://sunscrapers.com/blog/ultimate-tutorial-django-rest-framework-part-1/
Technically we need to structure our apis like the way shown in the tutorial. That's the standard way of doing REST api. It will automatically general get, put, post, delete
requests for us. Let's save that as a future goal.
Now all apis are in post. We need to transfer some api to get. Usually Post requests are only used for
create
(It is probably the slowest request). The convention is to use Put forupdate
. But for now, get is the most important part.