aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2024-12-18 21:44:14 +0500
committerAnton Bobov <anton@bobov.name>2024-12-18 21:44:14 +0500
commita123ad5d8400b72994e108b41970021266fd547a (patch)
tree330d304429e940d113035a8eb3839efb372f6aa7
parentbfd9abb5ff4e1bbd1e240ceb344a0b1c7a7fe327 (diff)
vim: Update hurl template
-rwxr-xr-xfiles/.vim/templates/=template=hurl5
1 files changed, 4 insertions, 1 deletions
diff --git a/files/.vim/templates/=template=hurl b/files/.vim/templates/=template=hurl
index 71554ea..c8ad735 100755
--- a/files/.vim/templates/=template=hurl
+++ b/files/.vim/templates/=template=hurl
@@ -1,11 +1,14 @@
#!/usr/bin/env -S hurl --test
# GET http://localhost/api/method
-# [QueryStringParams]
+# [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"