【文件属性】:
文件名称:blogAPI:博客API
文件大小:76KB
文件格式:ZIP
更新时间:2021-04-01 08:44:34
Python
博客API
API链接: :
API规范
JSON对象的结构应如下:
用户(用于身份验证)
登录输入
{
"user": {
"email": "jake@jake.jake",
"password": "jake4444"
}
}
登录错误
{
"errors": {
"email": [
"This field may not be blank."
],
"password": [
"This field may not be blank."
]
}
}
{
"errors": {
"error": [
"A user with this email and password was not found."
]
}
}
登录成功
{
"user": {
【文件预览】:
blogAPI-develop
----.gitignore(1KB)
----requirements.txt(714B)
----.travis.yml(270B)
----LICENSE(1KB)
----authors()
--------urls.py(1KB)
--------__init__.py(0B)
--------apps()
--------wsgi.py(392B)
--------settings.py(7KB)
----LICENSE.txt(1KB)
----runtime.txt(13B)
----README.md(8KB)
----env_sample(426B)
----.coveragerc(250B)
----setup.md(897B)
----Procfile(39B)
----manage.py(805B)