I am new to web communication. I use ubuntu and try to learn fastapi. However, I think it is really hard to understand how to format the response that I intend to send back to the client.
What are the rules for the responses that are to be sent back? And if you want to send back a customized answer - for example two image files - how is that encoded?
Thus far, I only managed to get something like this to work:
@app.post("/")
async def post_test():
print("Bonjour")
return {"I don't know what options I have to format this response and for example return images :( "}
Please help with this!