lishulong's blog

  2019年过去了,我很怀念他
 开始使用
首页 我的开源 CSDN 学习资源 动态 标签墙 存档 友情链接 RSS
  • 开始使用
  • 首页
  • 我的开源
  • CSDN
  • 学习资源
  • 动态
  • 标签墙
  • 存档
  • 友情链接
  • RSS

FastAPI

2020-10-20   |   0 评论   |   85 浏览

FastAPI Serialize

return JSONResponse(status_code=status.HTTP_200_OK, content=jsonable_encoder({'data': bean}, custom_encoder={
        ObjectId: str,
        datetime: str
    }))


标题:FastAPI
作者:lishulongVI
地址:https://blog.thinking.mobi/articles/2020/10/20/1603186693899.html

编程语言
旧一篇
新一篇

评论

发表评论


  • FastAPI Serialize
© 2021 lishulong's blog
Powered by Solo ♥ Theme 9IPHP [ref] by Vanessa