kenneth-gray / data-mocks-server

Mock HTTP server
2 stars 4 forks source link

improvement: improve how responses return status, headers, data and how the delay is decided #68

Closed kenneth-gray closed 1 year ago

kenneth-gray commented 1 year ago

API change for responses allow for responses to change some of the data returned without having to use the __override feature (which has subsequently been removed). The operation type has also been cleaned up to only allow GQL responses to be added to the mock (originally it also allowed for HttpResponse). This will now pick up more GQL related errors.

BREAKING CHANGE: The API for response has changed. Now all response related properties are nested under response: status, headers, data and delay. The function version of response has the same requirements.

fix #59

kenneth-gray commented 1 year ago

:tada: This PR is included in version 9.3.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: