Feature: Add link Property for Character from tibia.com Website
An enhancement to the current character data structure to include a link property that provides the URL to the character's profile on tibia.com. This would be useful for directly accessing the character's profile on the official website.
Proposed Change:
- Add a link property to the character object, which should contain the URL to the character's profile on tibia.com.
- The URL should replace spaces in the character's name with "+" to match the URL format used by tibia.com. e.g. character Atom Ironman => Atom+Ironman
Example:
The updated structure for the character object should look like this:
"character": {
"account_status": "string",
"achievement_points": 0,
"comment": "string",
"deletion_date": "string",
"former_names": [
"string"
],
"former_worlds": [
"string"
],
"guild": {
"name": "string",
"rank": "string"
},
"houses": [
{
"houseid": 0,
"name": "string",
"paid": "string",
"town": "string"
}
],
"last_login": "string",
"level": 0,
"married_to": "string",
"name": "string",
"position": "string",
"residence": "string",
"sex": "string",
"title": "string",
"traded": false,
"unlocked_titles": 0,
"vocation": "string",
"world": "string",
//new link property
"link": "https://www.tibia.com/community/?name=Trollefar"
},
hi @Skyliife, thanks for the suggestion, what about having that field in the information section and not mixed into the "data"-parts?
@tobiasehlert also a good idea we could add guilds and other usefull links as well for example in the guild request?
@tobiasehlert also a good idea we could add guilds and other usefull links as well for example in the guild request?
That would be something that is added on every endpoint the same way.
hey @tobiasehlert , can I work on this?
hey @tobiasehlert , can I work on this?
Sure @Kai-Animator, submit a pull request and we can try to get it merged :)
hey @tobiasehlert , can I work on this?
Sure @Kai-Animator, submit a pull request and we can try to get it merged :)
Awesome :) How would you prefer to see it done? I considered adding link to the Information struct and do only the Character endpoint for now. Otherwise I could be adding the tibia.com links to all the endpoints that require it