-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge interesting parts of behat/rest-extension #3
Comments
I think it will be better if this will be a separate packages. This gives more flexibility for developer, who will decide which library he wants to use to make requests (webapiextension or just custom steps with curl/guzzle) and check responses. You can use ApiClientAwareContext and provide to user similar interface to inject response. For example my json_spec provides JsonProviderInterface for this purposes. |
Since yesterday JsonContext from behatch-context is totally decoupled from its RestContext : So it become very simple to use it with WebApiContext. Here is a Poc I currently use : |
This extension uses |
@jakzal started https://github.com/jakzal/RestExtension for a similar purpose. The interesting parts of the extension should be merged here.
I'm thinking in particular to the response matcher, which is something I wanted to implement in WebApiExtension. The library used in the RestExtension seems to fit very well with what I have in mind.
The text was updated successfully, but these errors were encountered: