There should be a way for skin databases to provide an index of all skins they offer as a json file.
This is necessary so the client could fetch this index and show a list of all available downloaded skins directly in the menu (with lazy loading and unloading, which is work-in-progress).
Currently, one could parse the directory listing of https://skins.ddnet.org/skin/ but a standardized way like adding a file index.json to every skin download URL would be much preferred.
I suggest the following extensible format:
{
"skins": [
{
"name": "topaz"
}
]
}
Which could be extended by other attributes which may or may not be shown in the client or be used for grouping:
{
"skins": [
{
"name": "topaz",
"creator": "Pipou",
"pack": "Gems",
"license": "CC BY-NC-SA"
}
]
}
There should be a way for skin databases to provide an index of all skins they offer as a json file.
This is necessary so the client could fetch this index and show a list of all available downloaded skins directly in the menu (with lazy loading and unloading, which is work-in-progress).
Currently, one could parse the directory listing of https://skins.ddnet.org/skin/ but a standardized way like adding a file
index.jsonto every skin download URL would be much preferred.I suggest the following extensible format:
{ "skins": [ { "name": "topaz" } ] }Which could be extended by other attributes which may or may not be shown in the client or be used for grouping:
{ "skins": [ { "name": "topaz", "creator": "Pipou", "pack": "Gems", "license": "CC BY-NC-SA" } ] }