Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.
Francesco Borzì edited this page Aug 8, 2016 · 20 revisions

How to install

Installation instructions are available here.

Available routes

In order to perform calls to the API, you have to send http request to the public directory. For example, if you have installed your API in under the "TC-JSON-API" directory inside your local web server main directory, you have to perform an http request to:

http://localhost/TC-JSON-API/public/route

replacing /route with whatever you are looking for. Example:

http://localhost/TC-JSON-API/public/creature/template/6

Below are listed all available resources provided by the API routes:

If you don't want the API to share the datas of all databases, just configure the database you need in your .env config file.

Version parameter

Using the version optional parameter you can specify the game version. By default the API supports the 3.3.5 game version, if you set: version=6 the game version will be 6.x (Warlords of Draenor).

Search resources by filtering with multiple optional paramters

Your application may need to search for resources by looking for multiple parameters, without using always all of them in the same time.

Standard routes don't provide this possibility, for this reason the API provides special routes to allow to fetch data by filtering using multiple optional parameters.