docs: update default config
This commit is contained in:
parent
9013515290
commit
543f258724
2 changed files with 21 additions and 85 deletions
|
@ -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
21
postwoman.toml
Normal 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" }
|
Loading…
Reference in a new issue