aboutsummaryrefslogtreecommitdiff
path: root/files/.vim/templates/=template=hurl
blob: c8ad735002bc3ddaaa3ee14501a2878992e8223a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env -S hurl --test

# GET http://localhost/api/method
# [Options]
# variable: foo="bar"
# [Query]
# filter: {{capture_value}}
# HTTP 200
# [Asserts]
# jsonpath "$.content" count == 1
# jsonpath "$.content[0].id" > 0
# jsonpath "$..name" includes "test"
# [Captures]
# id: jsonpath "$.content[0].id"