V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
kayseen
V2EX  ›  Python

麻烦问一下,大家在写 django 或者使用 drf 框架的时候,都使用什么生成 api 文档

  •  
  •   kayseen · 2020-01-13 14:01:00 +08:00 · 2386 次点击
    这是一个创建于 1572 天前的主题,其中的信息可能已经有所发展或是发生改变。

    以前在别的框架中使用 swagger, 然后今天看了一下 django-swagger, github 已经停止更新了,

    然后又看了下 drf-yasg, 这个还一直在更新, 但是我看官方写的示例, 确实没太看懂, 比如使用 get 方法传递 url 参数, 在 drf-yasg 的 demo 中都找不到对应的入参字段...(本人太菜)

    所以想请问一下大家在 django 中用什么来维护测试 api?

    4 条回复    2020-01-17 08:55:49 +08:00
    ericls
        1
    ericls  
       2020-01-13 14:07:47 +08:00 via iPhone
    graphene
    wuwukai007
        2
    wuwukai007  
       2020-01-13 23:02:17 +08:00
    pip install coreapi
    smartwusir007
        3
    smartwusir007  
       2020-01-14 16:04:31 +08:00
    额,手写 md
    Cuo
        4
    Cuo  
       2020-01-17 08:55:49 +08:00 via iPhone
    手写 md+1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   814 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 19:54 · PVG 03:54 · LAX 12:54 · JFK 15:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.