[config]
base_url = "https://httpbin.org"
default_headers = { "Content-Type" = "application/json" }
[[tests]]
name = "Test with CLI Variables"
method = "GET"
endpoint = "/get?user={{user_id}}&token={{api_token}}"
expected_status = 200
[[tests.assertions]]
type = "Contains"
value = { "args" = { "user" = "{{user_id}}", "token" = "{{api_token}}" } }
[[tests]]
name = "Store Variable Test"
method = "GET"
endpoint = "/uuid"
expected_status = 200
store = { "$.uuid" = "generated_uuid" }
[[tests]]
name = "Use Stored Variable"
method = "GET"
endpoint = "/get?uuid={{generated_uuid}}"
expected_status = 200
[[tests.assertions]]
type = "Contains"
value = { "args" = { "uuid" = "{{generated_uuid}}" } }