Backend REST API for Android Application , Repository Link
Follow instructions to install the latest version of python for your platform in the python docs
I recommend working within a virtual environment whenever using Python for projects. This keeps your dependencies for each project separate and organaized. Instructions for setting up a virual enviornment for your platform can be found in the python docs
Once you have your virtual environment setup and running, install dependencies by naviging to the /backend
directory and running:
pip install -r requirements.txt
This will install all of the required packages we selected within the requirements.txt
file.
-
Django is a backend framework. Django is required to handle requests and responses.
-
Django-rest-framework Django REST framework is a powerful and flexible toolkit for building Web APIs.
From within the MedicalInsurance
directory first ensure you are working using your created virtual environment.
To run the server, execute:
python3 manage.py runserver
To run the server, execute:
python manage.py runserver
GET
POST
DELETE
GET 'hospitals/'
GET 'hospitals/<pk>'
POST 'hospitals/'
DELETE 'hospitals/<pk>'
GET 'clinics/'
GET 'clinics/<pk>'
POST 'clinics/'
DELETE 'clinics/<pk>'