mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 00:22:10 +03:00
Update Hurl snippet in FAQ.
This commit is contained in:
parent
fa12d59e77
commit
7171d0c4e4
@ -65,14 +65,14 @@ And Hurl:
|
||||
|
||||
POST http://myhost.com/v1/cats
|
||||
{ "name": "Billie" }
|
||||
HTTP/* 201
|
||||
HTTP 201
|
||||
[Captures]
|
||||
cat_id: jsonpath "$.id"
|
||||
[Asserts]
|
||||
jsonpath "$.name" == "Billie"
|
||||
|
||||
GET http://myshost.com/v1/cats/{{cat_id}}
|
||||
HTTP/* 200
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
A key point of Hurl is to work on the HTTP domain. In particular, there is no Javascript runtime, Hurl works on the
|
||||
|
Loading…
Reference in New Issue
Block a user