Changes in feature/request branch #35
uhuru-rawlings
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As requested earlier for an API endpoint that fetch results for a doctor who requested a test, I created a new app called lab because I didn't want to interfere with your routing and also your views. I created two endpoints for viewing all results and for viewing a specific doctors request and results, I made a serializer so that each request should show up with its results.
here are the endpoints
http://127.0.0.1:8000/api/v1/lab-test-resultsThis will show all results from the LabTestResult table
http://127.0.0.1:8000/api/v1/lab-test-results/1This will show request details and results details for a specific doctor (the doctor who requested a test). the id should be the current logged in doctor .
I prefer to use the function based view.
If you will be satisfied with the work and agree that i take on the work I'll request to make changes on the folder structure for the sake of versioning because currently you have
api/v1which should be implemented also on the folder structure too not only theurland also if it's not a monolith application you can separate the
back endandfront endBeta Was this translation helpful? Give feedback.
All reactions