docs: more examples on default config

This commit is contained in:
əlemi 2024-10-19 04:13:42 +02:00
parent 72c5b443db
commit f6577e6f63
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -1,5 +1,8 @@
[client]
user_agent = "api-tester@alemi.dev"
user_agent = "postwoman@sample/0.2.0"
[route.healthcheck]
url = "https://api.alemi.dev/"
[route.debug]
url = "https://api.alemi.dev/debug"
@ -11,11 +14,20 @@ headers = [
body = { hello = "world!", success = true }
extract = { type = "body" }
[route.payload]
url = "https://api.alemi.dev/debug"
method = "POST"
body = '''{
"complex": {
"json": "payloads",
"can": "be",
"expressed": "this",
"way": true
}
}'''
extract = { type = "body" }
[route.cookie]
url = "https://api.alemi.dev/getcookie"
method = "GET"
headers = [
"Authorization: Basic ...",
"Accept: application/json"
]
extract = { type = "header", key = "Set-Cookie" }