19
edits
Ankushdutt (talk | contribs) m |
Ankushdutt (talk | contribs) m |
||
Line 16: | Line 16: | ||
Here is an example for an entry in the JSON response: | Here is an example for an entry in the JSON response: | ||
< | <syntaxhighlight lang="json"> | ||
{ | |||
"description": "Lure of the Temptress (VGA/DOS/English)", | |||
"engineid": "lure", | |||
"extra": "VGA", | |||
"gameid": "lure", | |||
"guioptions": "sndNoSpeech gameOption1 lang_English", | |||
"id": "lure-1.1-vga", | |||
"language": "en", | |||
"name": "Lure of the Temptress - Freeware Version (English)", | |||
"platform": "pc", | |||
"size": 5678861, | |||
"url": "https://downloads.scummvm.org/frs/extras/Lure%20of%20the%20Temptress/lure-1.1.zip" | |||
} | |||
</syntaxhighlight> | |||
To add a new game entry in the JSON response, you need to check where the HTTP request needs to be sent. Look at <code>ScummVMCloud::getAllDLCs(...)</code> function for the HTTP link. You will need to have permission to edit the JSON entry there or ask someone with permission to add a new entry. | To add a new game entry in the JSON response, you need to check where the HTTP request needs to be sent. Look at <code>ScummVMCloud::getAllDLCs(...)</code> function for the HTTP link. You will need to have permission to edit the JSON entry there or ask someone with permission to add a new entry. | ||
At the time of writing this, <code>getAllDLCs(...)</code> currently make request to a temporary firebase instance whose entries can be easily edited from the browser. This will be changed later. | At the time of writing this, <code>getAllDLCs(...)</code> currently make request to a temporary firebase instance whose entries can be easily edited from the browser. This will be changed later. |
edits