basicallydan / interfake

:computer: Fake APIs for prototypes & automated tests.
Other
805 stars 39 forks source link

Match request body on POST #51

Open iamsumanth opened 6 years ago

iamsumanth commented 6 years ago

POST takes only url as a parameter, it would be great if it can take request body also, so it can give different responses for different request body.

Expected post implementation: interfake.post({url: '/next-items', body: {}}).status(201).body({ created : true });