1.0.12 • Published 8 years ago

recalbox-api v1.0.12

Weekly downloads
87
License
MIT
Repository
github
Last release
8 years ago

Recalbox API

REST API for recalbox

Installation

API

Available formats

FormatMIME type
texttext/plain
jsonapplication/json
xmlapplication/xml

To get a specific response format, you have to send the HTTP header Accept with a listed MIME type above.

Pagination

On endpoints that return a collection, you can paginate the result with these queries :

nameTypeDefaultDescription
pageInteger1The page (start at 1)
countInteger25The amount of item to return
rangeStringnullThe index range to return

The response returns the items with 2 headers :

  • Content-Range
  • Accept-Range

Endpoints

HTTP VERBEndpointDescription
GET PUT/configurationThe main configuration
GET PUT/hostnameThe hostname
GET PUT/localeThe locale
GET PUT/keyboardlayoutThe keyboard layout
GET PUT/timezoneThe timezone
GET PUT/updates/enabledEnable/disable the updates check at startup
GET/kodiGet Kodi settings
GET PUT/kodi/enabledEnable/disable Kodi
GET PUT/kodi/atstartupStart Kodi at launch
GET PUT/kodi/xbuttonSet x button shortcut
GET/wifiGet wifi settings
GET PUT/wifi/enabledEnable/disable wifi
GET PUT/wifi/ssidWifi SSID
GET PUT/wifi/keyWifi key
GET/audioGet audio settings
GET PUT/audio/deviceThe audio device
GET PUT/audio/volumeThe volume
GET PUT/audio/bgmusicEnable/disable sounds in EmulationStation
GET/controllers/ps3Get PS3 controllers settings
GET PUT/controllers/ps3/enabledEnable/disable PS3 controllers support
GET PUT/controllers/ps3/driverPS3 controllers driver
GET/controllers/xboxdrvGet xboxdrv driver settings
GET PUT/controllers/xboxdrv/enabledEnable/disable xboxdrv driver
GET PUT/controllers/xboxdrv/nbcontrolsThe amount of controllers to use with xboxdrv
GET/controllers/gpioGet GPIO settings
GET PUT/controllers/gpio/enabledEnable/disable controllers on GPIO
GET PUT/controllers/gpio/argsmk_gpio arguments
GET/controllers/db9Get DB9 driver settings
GET PUT/controllers/db9/enabledEnable/disable DB9 driver
GET PUT/controllers/db9/argsDB9 driver arguments
GET/controllers/gameconGet gamecon driver settings
GET PUT/controllers/gamecon/enabledEnable/disable gamecon driver
GET PUT/controllers/gamecon/argsGamecon driver arguments
GET POST/biosThe bios list for all systems
GET DELETE/bios/:fileNameThe BIOS file
GET/bios/metadata/:fileNameThe file information
GET/systemsThe system list
GET/systems/defaultThe default system settings
GET PUT/systems/default/videomodeThe default resolution
GET PUT/systems/default/shadersThe default shaders
GET PUT/systems/default/ratioThe default ratio
GET PUT/systems/default/smoothThe default smooth value
GET PUT/systems/default/rewindThe default rewind value
GET/systems/:idThe settings of the specified system
GET PUT/systems/:id/videomodeThe game resolution of the specified system
GET PUT/systems/:id/shadersThe shaders of the specified system
GET PUT/systems/:id/ratioThe ratio of the specified system
GET PUT/systems/:id/smoothEnable/disable the smooth of the specified system
GET PUT/systems/:id/rewindEnable/disable the rewind of the specified system
GET PUT/systems/:id/coreThe core of the specified system
GET PUT/systems/:id/emulatorThe emulator of the specified system
GET POST/systems/:id/romsThe game list of the specified system
GET DELETE/systems/:id/roms/:gameThe game file
GET/systems/:id/roms/metadata/:gameThe game informations

Examples

curl http://192.168.0.42:1337/configuration
curl --header "Accept: application/xml" http://192.168.0.42:1337/configuration
curl -X PUT -d "1" http://192.168.0.42:1337/kodi/enabled
curl --header "Accept: application/json" "http://192.168.0.42:1337/bios?count=5&page=2"
curl --head "http://192.168.0.42:1337/bios?count=5&page=2"
curl "http://192.168.0.42:1337/bios?range=2-7"
curl -X POST -F 'file=@SCPH5502.BIN' "http://192.168.0.42:1337/bios"
curl -X DELETE -I "http://192.168.0.42:1337/systems/snes/roms/Zelda.sfc"
1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.0

9 years ago