Commit 4de5c571 authored by wojiushixiaobai's avatar wojiushixiaobai

更新文档

parent 1e17a95c
...@@ -13,5 +13,6 @@ API 文档 ...@@ -13,5 +13,6 @@ API 文档
$ curl -X POST -d '{"username": "admin", "password": "admin"}' http://localhost/api/users/v1/token/ # 获取token $ curl -X POST -d '{"username": "admin", "password": "admin"}' http://localhost/api/users/v1/token/ # 获取token
{"Token":"937b38011acf499eb474e2fecb424ab3","KeyWord":"Bearer"}% # 获取到的token {"Token":"937b38011acf499eb474e2fecb424ab3","KeyWord":"Bearer"}% # 获取到的token
$ curl -H 'Authorization: Bearer 937b38011acf499eb474e2fecb424ab3' -H "Content-Type:application/json" http://localhost/api/users/v1/users/ $ curl -H 'Authorization: Bearer 937b38011acf499eb474e2fecb424ab3' -H "Content-Type:application/json" http://localhost/api/users/v1/users/
# 使用token访问,token有效期 1小时 # 使用token访问,token有效期 1小时
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment