Skip to content

RedGlow/gw2api-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An emulator for the GW2 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published