xiaoyan159 / tokentask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tokentask

1. 注册

curl -c cookie -H "Content-type: application/json" -X POST -d '{"username":"yekai","password":"123"}' "http://localhost:8080/register"

2. 登陆

curl -c cookie -H "Content-type: application/json" -X POST -d '{"username":"yekai","password":"123"}' "http://localhost:8080/login"

3. 发布

curl -c cookie -H "Content-type: application/json" -X POST -d '{"task_name":"kill fuhongxue","task_bonus":100}' "http://localhost:8080/issue"

4. 列表

curl "http://localhost:8080/tasklist?page=1"

5. 更改状态

curl -H "Content-type: application/json" -X POST -d '{"task_id":1,"task_status":1, "comment":"ok"}' "http://localhost:8080/update"

curl -H "Content-type: application/json" -X POST -d '{"task_id":3,"task_status":1, "comment":"干的漂亮"}' "http://118.89.103.58:8080/update"

curl -c cookie -H "Content-type: application/json" -X POST -d '{"username":"yekai","password":"123"}' "http://118.89.103.58:8080/login"

curl -c cookie -H "Content-type: application/json" -X POST -d '{"username":"yekai","password":"123"}' "http://118.89.103.58:8080/register"

About


Languages

Language:HTML 41.4%Language:Go 38.9%Language:JavaScript 11.5%Language:CSS 3.4%Language:PowerShell 2.4%Language:Dockerfile 1.9%Language:Ruby 0.6%