Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/praneethkarnena/django-drf-api
- Owner: PraneethKarnena
- Created: 2019-07-25T01:45:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-22T22:04:51.000Z (over 2 years ago)
- Last Synced: 2024-04-17T00:59:19.441Z (9 months ago)
- Topics: api, api-server, django, django-rest-framework, python, python3
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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*