Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/praneethkarnena/django-drf-api

A very simple Django project to demonstrate an API built using Django ReST Framework
https://github.com/praneethkarnena/django-drf-api

api api-server django django-rest-framework python python3

Last synced: about 2 months ago
JSON representation

A very simple Django project to demonstrate an API built using Django ReST Framework

Awesome Lists containing this project

README

        

## API demonstration - Django ReST Framework

Sample data has already been inserted.
Base API URL: [https://testing-19.herokuapp.com/api/](https://testing-19.herokuapp.com/api/)

*All the requests should be made through HTTP GET method.*

- Get all patients info - `/get-patients/` - returns just the name, ID of the patient
- Get all doctors info - `/get-doctors/` - returns name, ID of the doctors
- Send a friend request to a patient - `/send-request/{patient-id}/{doctor-id}/`
- Accept a request - `/request/{patient-id}/{doctor-id}/{ACTION}` - `ACCEPT` or `REJECT`
- View a patient data - `/view-patient/{patient-id}/{doctor-id}/`
- View friends - `/get-friends/{patient_id}/{doctor-id}/`

*Note: No authentication has been implemented for time being*