abdulhaq-e / ngrx-json-api

A JSON API client for ngrx
MIT License
61 stars 28 forks source link

Support mocking of json api endpoints #87

Open remmeier opened 7 years ago

remmeier commented 7 years ago

Frequently, at least for us, frontend developers start to work on things while the backend is not yet around. It would be great to have support for mocking where the HTTP json api endpoint is replaced by a local mock file. That mock file could simply be a json file holding an array of Resource objects.

I guess the already existing in-memory/local sorting/filtering/paging support could be used here as well. This way the mocking should be quite easy to get.

abdulhaq-e commented 7 years ago

I'll handle this. It will also help in writing tests.