Update Hurl snippet in FAQ.

This commit is contained in:
jcamiel 2023-02-02 21:46:49 +01:00
parent fa12d59e77
commit 7171d0c4e4
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC

View File

@ -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