3 ms·
This is a really nice approach to the problem of getting fake data. For the lazy, it responds with your request data if you have any. Super useful if you just w
by basicallydan 12y ago
This is a really nice approach to the problem of getting fake data. For the lazy, it responds with your request data if you have any. Super useful if you just want to get parsing with a real response.
I'd like to point out though, as I always do when things like this, I'm in the maintainer of a similar project which isn't hosted but is an open source node project: http://github.com/basicallydan/interfake http://github.com/basicallydan/interfake - if you wanna do a similar thing but make responses more explicit. About the same amount of work up front, but you don't specify responses in requests.
Anyway, nice one Ben!
- girvo 12y agoI've been looking for something like interfake for a few weeks, so thanks for creating it! We've just been loading JSON from the file-system directly, but this will be much much nicer :)
- couchand 12y agoLikewise, made a brutally simple fake REST API in response to a HN thread a few months back. Mine isn't nearly as configurable as interfake but it is quicker to set up "basic" REST resources. https://github.com/couchand/fake-api-server https://github.com/couchand/fake-api-server