method:GET
endpoint:api/pull/test
request:
{}
response:
{
"msg": "Success"
}
method:POST
endpoint:api/pull
request:
{
"id": 1
}
response:
{
"msg": "Success"
}
method:GET
endpoint:/api/walk/prevwalk?user_id=1
request:
{}
response:
{
"now": 123
}
method:POST
endpoint:/api/walk
request:
{
"user_id": 1
}
response:
{
"walk_id": 12
}
method:GET
endpoint:/api/walk/now?user_id=1
request:
{}
response:
{
"now": 12
}
method:PUT
endpoint:/api/walk
request:
{
"walk_id": 10
}
response:
{
"results": [
{
"count": 1,
"time": "2018-05-12 22:35:00"
},
{
"count": 3,
"time": "2018-05-12 22:40:00"
},
{
"count": 1,
"time": "2018-05-12 22:45:00"
},
{
"count": 3,
"time": "2018-05-13 00:10:00"
},
{
"count": 10,
"time": "2018-05-13 00:15:00"
},
{
"count": 2,
"time": "2018-05-13 00:20:00"
},
{
"count": 2,
"time": "2018-05-13 01:00:00"
},
{
"count": 3,
"time": "2018-05-13 01:05:00"
},
{
"count": 2,
"time": "2018-05-13 01:35:00"
},
{
"count": 2,
"time": "2018-05-13 01:40:00"
},
{
"count": 4,
"time": "2018-05-13 02:15:00"
}
]
}
method:GET
endpoint:/api/walk/list?user_id=1
request:{}
response:
{
"results": [
{
"count": 13,
"date": "2018-05-12",
"id": 4
}
]
}
method:GET
endpoint:/api/walk/list/4?user_id=1
request:{}
response:
{
"results": [
{
"count": 1,
"time": "2018-05-12 22:35:00"
},
{
"count": 3,
"time": "2018-05-12 22:40:00"
},
{
"count": 1,
"time": "2018-05-12 22:45:00"
},
{
"count": 3,
"time": "2018-05-13 00:10:00"
},
{
"count": 10,
"time": "2018-05-13 00:15:00"
},
{
"count": 2,
"time": "2018-05-13 00:20:00"
},
{
"count": 2,
"time": "2018-05-13 01:00:00"
},
{
"count": 3,
"time": "2018-05-13 01:05:00"
},
{
"count": 2,
"time": "2018-05-13 01:35:00"
},
{
"count": 2,
"time": "2018-05-13 01:40:00"
},
{
"count": 4,
"time": "2018-05-13 02:15:00"
}
]
}