module-rest icon indicating copy to clipboard operation
module-rest copied to clipboard

REST module for Codeception

Results 21 module-rest issues
Sort by recently updated
recently updated
newest added

#### What are you trying to achieve? Assert that a file can be retrieved from a webserver using the REST module with PHPBrowser, by checking if the status code is...

Variable $value should be used as link `$files as $name => &$value` https://github.com/Codeception/module-rest/blob/54021377e811c88e65798910de5b506e956e61a6/src/Codeception/Module/REST.php#L761

I believe the `seeResponseMatchesJsonType()` assert is broken and I've added a failing test to illustrate this. We are going to test different JSON documents against the same assertion. The assertion...

REST amDigestAuthenticated method doesn't work with framework modules. https://github.com/Codeception/Codeception/blob/6f30eeb1032cff54ffcf99a87b01d8d6c839450b/src/Codeception/Module/REST.php#L263 ``` php public function amDigestAuthenticated($username, $password) { $this->client->setAuth($username, $password, CURLAUTH_DIGEST); } ``` Only Guzzle connectors have `setAuth` method.

In the document, I could not find a list of build-in filters. I saw `url`, `date` and `empty` if-blocks in the code, are they filters? One more thing, do we...

Method `\Codeception\Module\REST::_failed` should take into account `shortDebugResponse` setting before adding "body" report. Otherwise test output becomes quite unreadable (in case of long responses) even if `shortDebugResponse` was set to true....

Custom headers have been capitalized. When I send my custom header in order to testing Rest service, for example: BOOK-ALL, it will be converted to Book-All, so my rest service...

To be consistent with all other header functions: `haveHttpHeader()` (to which it is the counterpart), `seeHttpHeader()`, `seeHttpHeaderOnce()`, etc. Also in [lib-innerbrowser](https://github.com/Codeception/lib-innerbrowser/blob/master/src/Codeception/Lib/InnerBrowser.php#L384)

See https://github.com/Codeception/module-rest/issues/22

Just stumbled upon this while searching for a new name for `deleteHeader()`, see https://github.com/Codeception/module-rest/issues/22 Current situation: * [`haveServerParameter('name', 'value')`](https://github.com/Codeception/module-rest/blob/master/src/Codeception/Module/REST.php#L1629) uses Symfony's [`Client::setServerParameter()`](https://github.com/symfony/browser-kit/blob/4.4/Client.php#L145) * [`setServerParameters([])`](https://github.com/Codeception/module-rest/blob/master/src/Codeception/Module/REST.php#L1617) uses Symfony's [`Client::setServerParameters()`](https://github.com/symfony/browser-kit/blob/4.4/Client.php#L132) which sets `'HTTP_USER_AGENT'...