angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 231 forks source link

Is it possible to do post requests? #221

Open modiract opened 5 years ago

modiract commented 5 years ago

Like the title says.

vishal423 commented 5 years ago

yes :smile:

robbiemu commented 5 years ago

Im not clear on this. Do you mean that you can issue a post with a body to update a record in the data service_ Because, if you want to use this to stub out data from an endpoint that acts like a get .. like with req body = { num: 10 }, you dont get back all the results , or obviously ten would be kinda magical, ... instead you just get back your request body

modiract commented 5 years ago

I'm sorry but this is like a half year ago. I don't know what I have done after this question. I think I used Angular http interceptors.