gstroup / apimocker

node.js module to run a simple http server for mock service responses.
MIT License
280 stars 81 forks source link

Added direct body mock specification feature #95

Closed thejonan closed 5 years ago

thejonan commented 6 years ago

Please, consider using the proposed addition of direct body message specification in the config file. Namely:

gstroup commented 5 years ago

It looks like there is a small bug in here. If the mockBody is set, then I can not set the content-type. It's coming back as application/octet-stream.

thejonan commented 5 years ago

I've rebased and make some fixes, so it should be OK now.

gstroup commented 5 years ago

Thanks! I'll try to merge in both of your PRs soon.