后端
服务器站点:
登记
POST“ ”
成功的回应
状态:201
JSON:{“ message”:“注册成功!” )
必填字段
用户名(字符串)
密码(字符串)
登录
POST“ ”
成功的回应
状态:200
JSON:{“ message”:“登录成功!”,令牌}
必填字段
用户名(字符串)
密码(字符串)
获取所有文章
获取https://pintereach-1.herokuapp.com/api/articles
授权:令牌
通过ID获取文章
GET https://pintereach-1.herokuapp.com/api/articles/:id (文章ID)
标头
授权:令牌
获取用户文章
-获取https://pintereach-1.herokuapp.com/api/articles/user/:id (用户ID)
标头
授权:令牌