A basic set of JSON APIs that you can use to retrieve information relating to the game Runescape.
Currently this isn't even close to complete, and still under development.
Please note: you will need Composer to install the dependencies, I suggest you install it globally.
- Clone this repository
git clone https://github.com/zomfshark/runescape-api.git - Navigate into the new directory (
cd runescape-api) and install the dependencies (composer install) - Create a new database
- Create
database.phpinside theapp/config/live/and populate it with your database credentials (see example inapp/config/database.php) - Run
php artisan migrate --env=liveto create the database tables - Run
php artisan db:seed -env=liveto populate the database with sample data - Start hitting the API endpoints!
You can, of course, set up your own environment(s) or use the dev environment, check out the Laravel Docs for more information on configuring environments.
All responses are in JSON format.
- 200: The request was successful.
- 404: The resource was not found.
- 500: A server error occurred.
Retrieves various actions that you can perform to gain experience.
Retrieves various actions that you can perform to gain experience for a specific skill.
Along with an appropriate HTTP error code, any errors will return a JSON object which will contain an errors array.
As an example, this is the response you'd see when querying the actions API for a skill which doesn't exist.
{
"errors": [
"No actions found for fishinxg."
]
}
- Add API rates & possibly authentication
- Start adding other endpoints!
- Setup GH pages for Docs?
- Tests :'(
api/v1/actions/fishinxgshould return 'skill not found' or something similar? or perhaps better to keep it generic?
This is open-sourced software licensed under the MIT license.
