[Vuejs]-Is there any way to rename the values I get from this API?

2👍

The API includes a team resource that includes shortName. You would need to fetch the individual team info separately using the teams resource url.

https://api.football-data.org/v2/teams/{id}

In your example using the id of 65 for Man City

https://api.football-data.org/v2/teams/65
👤phuzi

1👍

One way is to have a predefined map of short names and add a computed property in your Vue component to match long names with short ones.

Leave a comment