I a trying to create an api which will take health app details and store them in database. I have completed the shortcut app and also the api, but from postman things are fine but from shortcut app it is not finishing the task and getting stuck at "getcontent from url" part here is the code and shortcut app.
from fastapi import Body, FastAPI, Response, status, HTTPException, Request
from pydantic import BaseModel
from random import randrange
app = FastAPI()
@app.post("/dummypath")
async def get_body(request:Request):
req_info = await request.json()
return {
"Status":"Success",
"data":req_info
}
The shortcut is created by this guy. https://betterprogramming.pub/create-an-apple-health-api-with-shortcuts-and-firebase-a76d178319b7