gcivil-nyu-org / spring2020-cs-gy-9223-backend

0 stars 2 forks source link

Immigrate the current system to new API design #12

Closed VentusXu09 closed 4 years ago

VentusXu09 commented 4 years ago

We have several reasons to use Django REST framework:

  1. It enables authentication and permissions check for out API. (Scenario: Users fetch data with event codes)
  2. It enables format suffixes to our API endpoints. (Scenario: No more hard write url strings)
  3. It enables us using hyperlink to represent relationships between our API, which means we can send several requests for one large query. This is very helpful for us to implement pagination (Scenario: Users may query much data at the same time)

We need a demo to evaluate whether we need to use DRF.