How to add both file and JSON body in a FastAPI POST request?

后端 未结 0 1922
礼貌的吻别
礼貌的吻别 2020-12-30 16:13

Specifically, I want below example to work:

from typing import List
from pydantic import BaseModel
from fastapi import FastAPI, UploadFile, File


app = FastA         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题