Skip to content
Discussion options

You must be logged in to vote

Hi @mpas

Captures and query can work together but the capture sections needs to be after the response marker HTTP 200 (query is for the request and capture is for the response)

GET https://api.restful-api.dev/objects
[Query]
id: 1
HTTP 200
[Captures]
name: jsonpath "$[0].name"

See the structure of a Hurl file here:

https://hurl.dev/docs/request.html#structure

https://hurl.dev/docs/response.html#structure

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mpas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants