欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Django REST framework
来自开放百科 - 灰狐
Django REST framework
指南
pip install django pip install djangorestframework pip install django-rest-swagger django-admin.py startproject example . ./manage.py syncdb
修改 example/urls.py 和 settings.py 后,
./manage.py runserver http://127.0.0.1:8000/
curl -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/
[ { "url": "http://127.0.0.1:8000/users/1/", "username": "huihoo", "email": "[email protected]", "is_staff": true }, { "url": "http://127.0.0.1:8000/users/2/", "username": "gougou", "email": "[email protected]", "is_staff": false } ]
图集
链接
分享您的观点