路书 API
路书信息 api
个人路书列表
获取个人路书列表
GET
/openapi/v1/routes/
Response 200
{
"count": 0,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"id": 0,
"distance": "string",
"modify_time": -9223372036854776000,
"title": "string",
"desc": "string",
"type": 0,
"sport": -2147483648,
"file_name": "string",
"elevation_gain": 0,
"elevation_loss": 0,
"city": "string",
"avg_grade": 0,
"thumbnail_url": "string",
"max_grade": 0,
"min_grade": 0,
"min_altitude": 0,
"max_altitude": 0,
"file_url": "string"
}
]
}
路书GPX文件
获取路书GPX文件
GET
/openapi/v1/routes/{id}/gpx/
Response 304
{
"gpx_file": "File"
}
Error Response
400
{
"code": 400,
"msg": "API Limited",
"data": {}
}
401
{
"code": 401,
"msg": "Unauthorized Error",
"data": {}
}
500
{
"code": 500,
"msg": "Server Error",
"data": {}
}