lc-application / shareCostNew

0 stars 0 forks source link

Restructure request type for APIs. #5

Open ethancwb opened 5 years ago

ethancwb commented 5 years ago

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 for update. But for now, get is the most important part.

ethancwb commented 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.