-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from TebogoYungMercykay/feature_01
The Python FastAPI Implementation Files
- Loading branch information
Showing
9 changed files
with
128 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from fastapi import FastAPI, Response, status, HTTPException, Depends, APIRouter | ||
from sqlalchemy.orm import Session | ||
from typing import List, Optional | ||
|
||
from sqlalchemy import func | ||
from .. import models, schemas, oauth2 | ||
from ..database import get_db | ||
|
||
|
||
MESSAGE_UNDER_CONSTRUCTION = "Functionality Under Construction." | ||
|
||
router = APIRouter( | ||
prefix="/chats", | ||
tags=['Chats'] | ||
) | ||
|
||
@router.get('/') | ||
def chat_messages(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.get('/get_feedback') | ||
def get_feedback(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.post('/post_feedback') | ||
def post_feedback(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.post('/whatsapp') | ||
def whatsapp(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.post('/meeting') | ||
def meeting(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from fastapi import FastAPI, Response, status, HTTPException, Depends, APIRouter | ||
from sqlalchemy.orm import Session | ||
from typing import List, Optional | ||
|
||
from sqlalchemy import func | ||
from .. import models, schemas, oauth2 | ||
from ..database import get_db | ||
|
||
MESSAGE_UNDER_CONSTRUCTION = "Functionality Under Construction." | ||
|
||
router = APIRouter( | ||
prefix="/consultations", | ||
tags=['Consultations'] | ||
) | ||
|
||
@router.get('/') | ||
def consult_a_doctor(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.post('/make_consultation') | ||
def make_consultation(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.get('/consultation_history') | ||
def consultation_history(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.get('/consultation_view') | ||
def consultation_view(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.post('/close_consultation') | ||
def close_consultation(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.post('/rate_review') | ||
def rate_review(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from fastapi import FastAPI, Response, status, HTTPException, Depends, APIRouter | ||
from sqlalchemy.orm import Session | ||
from typing import List, Optional | ||
|
||
from sqlalchemy import func | ||
from .. import models, schemas, oauth2 | ||
from ..database import get_db | ||
|
||
MESSAGE_UNDER_CONSTRUCTION = "Functionality Under Construction." | ||
|
||
router = APIRouter( | ||
prefix="/disease_prediction", | ||
tags=['Disease Prediction Model'] | ||
) | ||
|
||
@router.get('/') | ||
def checkdisease(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
||
|
||
@router.post('/checkdisease') | ||
def checkdisease(): | ||
return { "status":"pending", "message": MESSAGE_UNDER_CONSTRUCTION } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters