ericblade / mws-advanced

Javascript (node) Amazon Merchant Web Services (MWS) code with mws-simple as it's underpinnings
Apache License 2.0
41 stars 11 forks source link

create a mock mws server code to test mws-advanced (and mws-simple) without live data #25

Open ericblade opened 6 years ago

ericblade commented 6 years ago

We should be able to use the example outputs from the MWS documentation to put together a library of data to test many things without going live.

We can also use that to validate that completely unexpected things like server 503's or whatever, don't completely blow up the libraries.

This probably actually should be filed into mws-simple, then both libs can take advantage of it. I posted it to mws-advanced since there are more people visiting this repo than that repo.

ericblade commented 6 years ago

... for what it's worth, the PHP APIs to each of the MWS functions have mocked dummy data available for most calls. It doesn't seem to provide a server, per se, rather it stubs the interface to get the data locally instead of from the remote.