The diagnosis api enables users search for details of a particular animal disease, the details include the symptoms,causes and treatment for a given disease.
Another feature supported by the api is the ability to retrieve an animal disease based on the symptoms specified by the user.
This api is going to be a backend for the diagnosis web app. Currently has support for rabbit diseases.
create a directory on your computer by doing the following
- Open the terminal, for linux
Ctrl+Alt+ T
- Create a directory for the project by typing the following in your terminal
mkdir projectname
- Change into the directory created by using the following command
After creating the directory, the next step is to clone this project by using the following command
$ git clone (https://github.com/AineKiraboMbabazi/disease_diagnosis_with_Machine-Learning.git)
Install requirements
pip3 install -r requirements.txt
make sure that you have python3 and postman installed on your computer
snap install postman
To run this project,
- Navigate to the directory where the project was cloned. run
python3 run.py
-Copy the link from the terminal and paste it in postman. This should load the index page
Endpoint | HTTP Method | CRUD Method | Result |
---|---|---|---|
/ | GET | INDEX | Loads the home page |
/index | GET | INDEX | Loads the home page |
api/v1/get_disease_by_sypmtoms?file_name =rabbit_diseases.xls&search_params=['nasal discharge'] | GET | READ | Search disease by symptoms |
api/v1/get_disease_details?file_name =rabbit_diseases.xls&disease_name=snuffles | GET | READ | Get disease details |
To run tests
python3 -m unittest
Built with
Software Engineer: Ainekirabo Mbabazi
Python, Flask, Django
MyFarm © Ainekirabo Mbabazi