X-Git-Url: https://git.cweiske.de/stouyapi.git/blobdiff_plain/88f30ce5ce826324598b587c7f10687195df9dbf..589b53932620c5a45f5b4e54b7575c1326050544:/README.rst diff --git a/README.rst b/README.rst index 785269d..f5df7cf 100644 --- a/README.rst +++ b/README.rst @@ -40,11 +40,36 @@ Virtual host configuration:: Script PUT /empty-json.php Script DELETE /api/v1/queued_downloads_delete.php -``mod_actions`` and ``mod_expires`` need to be enabled for apache 2.4. + + AllowOverride All + + +``mod_actions``, ``mod_expires`` and ``mod_php`` (or php-fpm) need to be enabled +for Apache 2.4. The virtual host's document root needs to point to the ``www`` folder. +Test your Apache setup +---------------------- +:: + + # check if normal API routes work + $ curl -I http://stouyapi.cwboo/api/firmware_builds + HTTP/1.1 200 OK + [...] + + # check if rewritten API routes work + $ curl -I http://stouyapi.cwboo/api/v1/discover/discover + HTTP/1.1 200 OK + [...] + + # check if PHP routes work + curl -I http://stouyapi.cwboo/api/v1/gamers/me + HTTP/1.1 200 OK + [...] + + Building API data ================= Download the OUYA game data repository from