Android Medical Insurance Backend

Backend REST API for Android Application , Repository Link

Getting Started

Installing Dependencies

Python

Follow instructions to install the latest version of python for your platform in the python docs

Virtual Enviornment

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

PIP Dependencies

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.

Key Dependencies
  • 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.

Running the server

From within the MedicalInsurance directory first ensure you are working using your created virtual environment.

To run the server, execute:

Mac , Linux

python3 manage.py runserver

To run the server, execute:

Windows

python manage.py runserver

API Endpoints Documentation

Allowed HTTPs requests :

GET
POST       
DELETE   

Endpoints :

GET 'hospitals/'
GET 'hospitals/<pk>'
POST 'hospitals/'
DELETE 'hospitals/<pk>'
GET 'clinics/'
GET 'clinics/<pk>'
POST 'clinics/'
DELETE 'clinics/<pk>'