ng-apimock / core

ng-apimock core module
MIT License
34 stars 20 forks source link

Reflect data changes (POST, PUT, PATCH or DELETE requests) #20

Open FrancescoBorzi opened 4 years ago

FrancescoBorzi commented 4 years ago

Is there a way to make the mocks hold some kind of status so we can make adding/removing/editing entities work?

For example, json-server has a way to do it:

If you make POST, PUT, PATCH or DELETE requests, changes will be automatically and safely saved to db.json using lowdb.

I was wondering if in ng-apimock we can have something similar.

mdasberg commented 4 years ago

Not yet, but it is a nice addition. @FrancescoBorzi Let me do a poc to see if it is feasible

arialfaro85 commented 4 years ago

If you are able to make it would be so great!