11

如何对 flask api 的接口做校验?

 3 years ago
source link: https://www.v2ex.com/t/786356
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Python

如何对 flask api 的接口做校验?

  chaleaoch · 8 小时 39 分钟前 · 300 次点击
类似于 drf 中的 serializer. 或者类似于 pydantic
我记着 flask 的 restful 插件里面有一个 schema 的概念, 但是记不得插件的名字了. 搜了半天也没搜到.

然后 现在 flask 的 rest api 插件 活的好的就是 flask-restful 了吧?

在然后 eve 是个啥? 感觉有点重啊. 和 flask 的设计理念是不是 不很兼容? 请大佬赐教一下理论.


一共三个问题, 谢谢大佬们.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK