feat(Packagers): started testing for post requests

This commit is contained in:
2024-11-30 12:02:30 -07:00
parent fcbee342b3
commit a0712e15eb
6 changed files with 34 additions and 6 deletions

View File

@ -30,7 +30,27 @@ from GetSchedulePackager import getSchedulePackager
@app.get("/getSchedule")
def getSchedule():
res = getSchedulePackager()
return JSONResponse(
headers={
"isBase64Encoded": "false", # Header Modification
},
content={
"body": res
},
# status_code=200 commented out just to show how to change it if you wanted
)
from postSelectAppointment import SelectAppointment
@app.post("/SelectInterview")
def postSelectInterview(request):
res = SelectAppointment(request)
return JSONResponse(
headers={
"isBase64Encoded": "false", # Header Modification