docs: update default config

This commit is contained in:
əlemi 2024-10-19 04:12:46 +02:00
parent 9013515290
commit 543f258724
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 21 additions and 85 deletions

View file

@ -1,85 +0,0 @@
{
"variables": [],
"info": {
"name": "Sample Postman Collection",
"_postman_id": "35567af6-6b92-26c2-561a-21fe8aeeb1ea",
"description": "A sample collection to demonstrate collections as a set of related requests",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "GET request",
"request": {
"url": {
"raw": "https://api.alemi.dev/dump?source=sample-collection",
"protocol": "https",
"host": [
"alemi",
"dev"
],
"path": [
"dump"
],
"query": [
{
"key": "source",
"value": "sample-collection",
"equals": true,
"description": ""
}
],
"variable": []
},
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "POST requests",
"item": [
{
"name": "Text body",
"request": {
"url": "https://api.alemi.dev/dump",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "text/plain",
"type": "default"
}
],
"body": {
"mode": "raw",
"raw": "Duis posuere augue vel cursus pharetra. In luctus a ex nec pretium..."
},
"description": ""
},
"response": []
},
{
"name": "Json body",
"request": {
"url": "https://api.alemi.dev/dump",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"text\":\"Lorem ipsum\", \"length\":100}"
},
"description": ""
},
"response": []
}
]
}
]
}

21
postwoman.toml Normal file
View file

@ -0,0 +1,21 @@
[client]
user_agent = "api-tester@alemi.dev"
[route.debug]
url = "https://api.alemi.dev/debug"
method = "PUT"
headers = [
"Content-Type: application/json",
"Authorization: Bearer ${PW_TOKEN}",
]
body = { hello = "world!", success = 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" }