-
Notifications
You must be signed in to change notification settings - Fork 32
Home
Installation instructions are available here.
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:
- World database routes
- Characters database routes
- Auth database routes
- DBC routes (using sqlite database /storage/database/sqlite_database.db)
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.
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).
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.