catalyst 0.2.9

A lightweight API testing tool
Documentation
[config]
base_url = "https://httpbin.org"
default_headers = { "Content-Type" = "application/json" }

[[tests]]
name = "Test with Custom Directory Body File"
method = "POST"
endpoint = "/post"
body_file = "data/test-request.json"
expected_status = 200

[[tests.assertions]]
type = "Contains"
value = { "url" = "https://httpbin.org/post" }

[[tests]]
name = "Test with File Inclusion in Body"
method = "POST"
endpoint = "/post"
expected_status = 200

[tests.body]
metadata = { "type" = "document", "source" = "test" }
content = "{{file:data/sample-text.txt}}"

[[tests.assertions]]
type = "Contains"
value = { "json" = { "content" = "Hello from a text file!" } }