drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
423 stars 122 forks source link

REST- Body Request Example & Support #47

Closed raDiesle closed 10 years ago

raDiesle commented 10 years ago

Hi,

My situation: I'd like to have a mock-server to match REST-Verbs:

How about matching specific parameters inside a body like when sending a POST Request with a specific ID, I'd like to redirect it to a file with this concrete ID

An example or support would be nice!

drewzboto commented 10 years ago

I wouldn't really consider a proxy plugin the proper place to be mocking an API. There are projects out there that already do this (see https://github.com/gstroup/apimocker). There are also services like Apiary's API Blueprint that create a mock server for you based on the API definition (http://apiary.io/how-it-works)

raDiesle commented 10 years ago

Thanks for answer! I was wondering, if the middleware functionality is meant for mocking.