pretenderjs / pretender

A mock server library with a nice routing DSL
MIT License
1.26k stars 158 forks source link

Store passthrough responses in localstorage #174

Open trek opened 8 years ago

trek commented 8 years ago

Part of https://github.com/pretenderjs/pretender/issues/172, which contains lots of explanatory writing to make this PR more approachable by those new to Pretender. Check that Issue out!


As part of a larger feature, we need the ability to record the responses of "passthrough" requests into a storage mechanism that persists between page loads.

You should absolutely borrow heavily from prior art when design these interfaces.

PRs that help close this issue will:

Bonus points for making this code isolated enough that it can be extracted or replaced with another implementation that has the same interface.

iezer commented 8 years ago

Might be useful to look at ember-cli-betamax as well which is basically vcr for Ember.