0.1.3 • Published 5 years ago

gw2api-emulator v0.1.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

GW2 API Emulator

GW2 API emulator is a simple Node.js program that emulates the GW2 APIs.

Its purposes are:

  • Allow quick testing of software based on the GW2 API by using an in-memory, locally running server with a very small amount of data
  • Allow for integration tests with GW2 API

Usage

Install the GW2 API Emulator:

$ npm install gw2api-emulator -g

Run it:

$ gw2api-emulator --port 2837

For more information about the supported options and how they work:

$ gw2api-emulator --help

Currently implemented endpoints and limitations

Currently the following "container" endpoints have been implemented:

  • /v2/items
  • /v2/recipes

Each of them contain only the first 150 elements of the GW2 API as of 16/06/2019.

The allowed ways to call these endpoints are (e.g. for items):

The returned headers are consistent with the GW2 API (especially Link, X-Page-Size, X-Page-Total, X-Result-Count, X-Result-Total).

Errors are not considered.