Skip to content

Commit cc01087

Browse files
committed
updated view
1 parent 80dd78a commit cc01087

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

_scss/_main.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,13 @@ body #footer .links {
17061706

17071707
.changelog-wrapper {
17081708
h3 {
1709-
margin-top: 60px;
1709+
margin-top: 4rem;
1710+
text-transform: none;
1711+
1712+
code {
1713+
font-size: 24px;
1714+
color: #45414B;
1715+
padding: 0;
1716+
}
17101717
}
1711-
}
1718+
}

docs/10-APITesting.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,24 @@ $I->seeResponseMatchesJsonType([
223223

224224
Codeception uses this simple and lightweight definitions format which can be [easily learned and extended](http://codeception.com/docs/modules/REST#seeResponseMatchesJsonType).
225225

226-
### Taking Data From Responses
226+
### Working with Responses
227227

228-
When you need to obtain a value from a response and use it in next requests you can use `grab*` methods. For instance, use `grabDataFromResponseByJsonPath` allows to query JSON for a value.
228+
Responses are returned from `send*` methods:
229229

230230
{% highlight php %}
231+
<?php
232+
233+
$users = $I->sendGet('/users');
234+
235+
// alternatively
236+
237+
$users = $I->grabResponse();
231238

239+
{% endhighlight %}
240+
241+
When you need to obtain a value from a response and use it in next requests you can use `grab*` methods. For instance, use `grabDataFromResponseByJsonPath` allows to query JSON for a value.
242+
243+
{% highlight php %}
232244
<?php
233245
list($id) = $I->grabDataFromResponseByJsonPath('$.id');
234246
$I->sendGet('/pet/' . $id);

0 commit comments

Comments
 (0)