mirror of https://github.com/fafhrd91/actix-web
848 lines
17 KiB
JSON
848 lines
17 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "1147f102-8d16-40e4-8642-5f0679879e59",
|
|
"name": "actix-web",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "field in deserialize errors",
|
|
"item": [
|
|
{
|
|
"name": "optional filters",
|
|
"item": [
|
|
{
|
|
"name": "without filters",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with a single filter",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=1",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both filters",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=1&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with a single invalid filter",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=wrong&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both invalid filters",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=wrong&active=wrong",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "wrong"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "mandatory filters",
|
|
"item": [
|
|
{
|
|
"name": "without filters",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with a single filter",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=1",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both filters",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=1&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with a single invalid filter",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=wrong&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both invalid filters",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=wrong&active=wrong",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "wrong"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "optional filters and payload",
|
|
"item": [
|
|
{
|
|
"name": "without filters",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with a single filter",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=1",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both filters",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=1&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with a single invalid filter",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=wrong&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both invalid filters",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=wrong&active=wrong",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "wrong"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both filters and invalid payload",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": \"wrong\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=1&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both invalid filters and invalid payload",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": \"wrong\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/optional?limit=wrong&active=wrong",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"optional"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "wrong"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "mandatory filters and payload",
|
|
"item": [
|
|
{
|
|
"name": "without filters",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with a single filter",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=1",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both filters",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=1&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with a single invalid filter",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=wrong&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both invalid filters",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": 13\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=wrong&active=wrong",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "wrong"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both filters and invalid payload",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": \"wrong\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=1&active=true",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "true"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "with both invalid filters and invalid payload",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John\",\n \"age\": \"wrong\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "127.0.0.1:8080/mandatory?limit=wrong&active=wrong",
|
|
"host": [
|
|
"127",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
],
|
|
"port": "8080",
|
|
"path": [
|
|
"mandatory"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "limit",
|
|
"value": "wrong"
|
|
},
|
|
{
|
|
"key": "active",
|
|
"value": "wrong"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |