一、概要和文档
1. 安装包
pip install coreapi
2. 在urls里面导入
from rest_framework.schemas import get_schema_view
schema_view = get_schema_view(title='Pastebin API')
....
url(r'^schema/$',schema_view),
- 刷新浏览器
3. 改进
from rest_framework.documentation import include_docs_urls
....
urlpatterns = [
url(r'^docs/',include_docs_urls(title='图书管理系统')),
....
- 刷新浏览器
[图片上传失败...(image-85cfa3-1540134902009)]
二、集成Swagger
三、postman
官网下载或者浏览器插件