swagception icon indicating copy to clipboard operation
swagception copied to clipboard

Add support All HTTP methods

Open sgdot opened this issue 7 years ago • 3 comments

sgdot avatar Jul 02 '18 17:07 sgdot

Thank you for this @sgdot I will give this a proper review and give feedback.

mlambley avatar Jul 02 '18 23:07 mlambley

Closes https://github.com/mlambley/swagception/issues/15

mlambley avatar Jul 02 '18 23:07 mlambley

Could you please start by looking at DefaultPathHandlerCest and giving some thought regarding how that will look in the new structure? Because right now the test will run GET /users/1 three times, rather than each of the three methods.

Perhaps SwaggerSchema->getPaths() can return [ [ action, convertedPath ] ... ] I'm thinking action first because then codeception will put the action first on the output. You will also need to add method to the dummy responses in DummyURLRetriever as well, to get the tests to work.

To run the tests, you will need to mkdir var (sorry) then run composer test.

Thank you.

mlambley avatar Jul 03 '18 00:07 mlambley