kenneth-gray / data-mocks-server

Mock HTTP server
2 stars 4 forks source link

Consider supporting different responses based on query or body #2

Closed kenneth-gray closed 5 years ago

kenneth-gray commented 5 years ago

It might be useful to respond differently depending on what is submitted to an endpoint. For example; you might want 2 different data sets returned based on the date submitted. This would be useful for comparisons.

When deciding on whether to send back an error however, I'd lean towards using scenarios for that.

The change required for this could ruin the simplicity of the package, but it's worth considering.