跳到主要内容

用户 API

用户信息 api

个人信息

获取个人信息


GET /openapi/v1/athlete/info/

Response 200

{
"count": 0,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"id": 0,
"username": "string",
"sex": 0,
"birthday": "2023-07-26",
"weight": 0,
"height": -2147483648,
"age": "string",
"avatar": "string"
}
]
}

运动员信息

指定用户id获取运动员个人信息


GET /openapi/v1/athlete/{id}/

Response 200

{
"id": 0,
"username": "string",
"sex": 0,
"birthday": "2023-07-26",
"weight": 0,
"height": -2147483648,
"age": "string",
"avatar": "string",
"ftp": 0.0,
"max_hr": 120
}

Error Response

400

{
"code": 400,
"msg": "API Limited",
"data": {}
}

401

{
"code": 401,
"msg": "Unauthorized Error",
"data": {}
}

500

{
"code": 500,
"msg": "Server Error",
"data": {}
}