📅  最后修改于: 2023-12-03 15:19:51.008000             🧑  作者: Mango
Ronaldo's Club 是致力于为足球迷们提供最新足球赛事资讯、球队数据和球员信息的在线平台。作为一个专为球迷打造的平台,Ronaldo's Club 提供了丰富的足球内容和功能,为球迷们提供了一个交流和分享的互动社区。
Ronaldo's Club 平台采用了多种开发技术和框架,包括:
以下为 Ronaldo's Club
提供球员数据 API 的代码片段:
### Ronaldo's Club API
#### 球员数据
- 获取球员详细信息
**Request:**
GET api/player/:id
**Response:**
```json
{
"name": "Cristiano Ronaldo",
"club": "Manchester United",
"nationality": "Portugal",
"position": "Forward",
"number": 7,
"birthDate": "1985-02-05",
"height": "185cm",
"weight": "80kg",
"marketValue": "120m€"
}
获取球员赛季数据
Request:
GET api/player/:id/season/:seasonId
Response:
{
"season": "2021/2022",
"matches": 10,
"goals": 5,
"assists": 3,
"shotsOnTarget": 20,
"passes": 200,
"passesSuccess": 90%
}
获取球员荣誉记录
Request:
GET api/player/:id/honours
Response:
{
"clubAchievements": [
{
"competition": "UEFA Champions League",
"year": 2007,
"medal": "Winner"
},
{
"competition": "English Premier League",
"year": 2008,
"medal": "Winner"
}
],
"internationalAchievements": [
{
"competition": "UEFA European Championship",
"year": 2016,
"medal": "Winner"
}
],
"individualAchievements": [
{
"competition": "FIFA Ballon d'Or",
"year": 2008,
"medal": "Winner"
}
]
}