22 ms·
You can use JSONPath asserts on responses, for instance: GET https://api.foo.net HTTP/1.1 200 [Asserts] jsonpath "$.books[0].author.name" == "Hugo"
by jicea 4y ago
You can use JSONPath asserts on responses, for instance:
GET https://api.foo.net
HTTP/1.1 200
[Asserts]
jsonpath "$.books[0].author.name" == "Hugo"
- gbourne 4y agoThanks for this - became a big fan of Hurl. Created a guide on Hurl for calling API requests and used the array technique with [Captures]. [0] [0] https://www.ayrshare.com/hurl-run-and-test-http-api-requests/ https://www.ayrshare.com/hurl-run-and-test-http-api-requests...