CodeForPhilly / balancer-main

CodeForPhilly balancer project (https://opencollective.com/code-for-philly/projects/balancer)
GNU Affero General Public License v3.0
11 stars 8 forks source link

[Backend] Convert API endpoints to rest framework #115

Open ryanrrogers opened 3 months ago

ryanrrogers commented 3 months ago

*** This task must be completed before the unit testing for backend task (#114 )

Currently, most of our API endpoints are using basic http rather than rest framework. Rest framework is a modern solution for building APIs with django. Rest framework provides the tools necessary to build a sustainable and performance-oriented API for Balancer.

Objectives:

  1. Convert existing HTTP API views to class-based rest framework views.
  2. Ensure API views are relevant to necessary functions of Balancer application.
  3. Enhance and overhaul any outdated views.
lb-cake commented 2 months ago

@taichan03 are there any views that might need to be skipped here? I'd like to take this one on if possible

taichan03 commented 2 months ago

@lb-cake Hey, Feel free to reach out to Ryan to see which one to convert. We also need an endpoint that can response with a list of meds currently in the system. Do you want to work on that? You can build it with DRF and that is very similar work to this.