fermin-silva / mockserver

The hassle-free way of mocking a backend server API
http://ferminsilva.com/mockserver/
0 stars 0 forks source link

ADD support for writing (POSTs) #2

Open fermin-silva opened 5 years ago

fermin-silva commented 5 years ago

Allow to do POSTs, with and without data.

How would it work? Maybe if there is an index.* file with a POST section in the file config header a specific handler would be called.

At first a hardcoded response from the file could be returned, but if simple enough maybe the incoming post data could be saved, either verbatim or injected into the template, so that its rendered and then saved (for example supporting jsonpath from the incoming POST json).