This is an apollo server layer for interacting with XIVAPI and requesting data using GraphQL.
npm i
npm run start
Open http://localhost:8080 to use GraphQL's playground.
query {
freecompany(name: "power xiv", server: "phoenix") {
Results {
ID
Name
}
}
}
query {
character(name: "bordeaux", page: 2) {
Pagination {
Page
PageTotal
}
Results {
ID
Name
Server
}
}
}
There is currently a default internal cache that will cache data (for 1 hour) for /character/search
and /freecompany/search
endpoints (the only 2 supported enpoints, at the moment).
This project is open source, under the terms described in the MIT License.