Skip to content

An API for finding disease by its symptoms, using Aws API gateway, Lambda functions and DynamoDB.

Notifications You must be signed in to change notification settings

venisprajapati/symptom-disease-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

symptom-disease-api

An API for finding disease by its symptoms, using Aws API gateway, Lambda functions and DynamoDB.

System diagram

System diagram

Also refer to the deployed lambda functions code.

API Calls

  • API URL = "https://(api_id).execute-{api-region}.amazonaws.com/stage/"

  • API Routes - Methods:

    • /disease:
      • GET
      • query:
        • diseaseName = string (required)
        • pageSize = int (default = 10)
        • offset = int (default = 1)
    • /symptoms:
      • GET
      • query:
        • symptomId = string (required)
        • pageSize = int (default = 10)
        • offset = int (default = 1)
  • Refer to the disease.json and symptoms.json for responses given by api calls.

Dataset

DynamoDB Schema

  1. Disease

    • symptom (PK)
    • symptom_number (SK)
    • symptom_name
  2. Symptoms

    • disease (PK)
    • disease_id (SK)
    • disease_name
    • disease_symptoms
    • disease_symptoms_names [ 1, 2, 3, 4, 5]
    • disease_desc
    • disease_precautions [ 1, 2, 3, 4]

Screen Shots

  • Response of /disease Api call: Response /disease api

  • Response of /symptoms Api call: Response /symptoms api

  • API Gateway Disease: API Gateway disease

  • API Gateway Symptoms: API Gateway symptom

References

Kaggle Disease Symptom Prediction Dataset

AWS API Gateway

Amazon DynamoDB

YouTube tutorials

About

An API for finding disease by its symptoms, using Aws API gateway, Lambda functions and DynamoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published