Is there a way to generate response models for the selected request params in FastAPI?

后端 未结 0 602
长发绾君心
长发绾君心 2021-01-22 02:19

I have an enum class for storing some categorical values like this.

class Fields(str, Enum):
    text   = "text"
    para   = "para"
    image         


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