drf-restricted-fields:Django Rest Framework限制字段

时间:2021-03-28 06:57:11
【文件属性】:
文件名称:drf-restricted-fields:Django Rest Framework限制字段
文件大小:19KB
文件格式:ZIP
更新时间:2021-03-28 06:57:11
drf-restricted-fields 限制DRF序列化程序返回的字段 GET http://127.0.0.1:8000/api/users/ ? only=id & only=name 仅序列化id和name字段。 { " count " : 198 , " next " : " http://127.0.0.1:8000/api/users/?only=id&only=name&page=1 " , " previous " : null , " results " :[ { " id " : 1 , " name " : " Test " }, ... ], } 免费软件:MIT许可证 文档: : 。 特征 去做 学分 该程序包是
【文件预览】:
drf-restricted-fields-main
----MANIFEST.in(262B)
----README.rst(2KB)
----CONTRIBUTING.rst(4KB)
----.github()
--------ISSUE_TEMPLATE.md(332B)
--------FUNDING.yml(534B)
--------workflows()
----HISTORY.rst(89B)
----requirements.txt(20B)
----AUTHORS.rst(152B)
----tox.ini(497B)
----LICENSE(1KB)
----requirements_dev.txt(185B)
----setup.cfg(464B)
----setup.py(1KB)
----Makefile(2KB)
----docs()
--------authors.rst(28B)
--------make.bat(783B)
--------readme.rst(27B)
--------contributing.rst(33B)
--------conf.py(5KB)
--------usage.rst(115B)
--------installation.rst(1KB)
--------history.rst(28B)
--------index.rst(318B)
--------Makefile(622B)
----.editorconfig(292B)
----tests()
--------__init__.py(47B)
--------test_restricted_fields.py(571B)
----.gitignore(1KB)
----restricted_fields()
--------__init__.py(235B)
--------mixins.py(2KB)
----.pyup.yml(133B)

网友评论