smollweide / node-mock-server

File based Node REST API mock server
MIT License
255 stars 65 forks source link

#44 #46

Closed dschulten closed 7 years ago

dschulten commented 7 years ago

Opened as pull request for easier review, serves non-json api responses through content-negotiation (node-mock-server considers Accept: header). That allows to serve an api success file as json, xml, html, image. E.g. a rest backend could serve an html fragment with dynamic content for inclusion by an SPA, or it could serve a dynamic QRCode image as API response.

Closes smollweide/node-mock-server/issues/44

dschulten commented 7 years ago

Closed in favor of smollweide's impl