92 أسطر
2.2 KiB
JSON
92 أسطر
2.2 KiB
JSON
[
|
|
{
|
|
"name": "get-all-wonders",
|
|
"method": "GET",
|
|
"url": "https://localhost:7247/api/wonders",
|
|
"headers": {
|
|
"Accept": "application/json"
|
|
},
|
|
"expect_status": "2xx",
|
|
"expect_contains": "\"Name\"",
|
|
"max_latency_ms": 2000,
|
|
"retries": 1
|
|
},
|
|
{
|
|
"name": "get-wonder-by-id-1",
|
|
"method": "GET",
|
|
"url": "https://localhost:7247/api/wonders/1",
|
|
"headers": {
|
|
"Accept": "application/json"
|
|
},
|
|
"expect_status": "200",
|
|
"expect_contains": "\"Id\": 1",
|
|
"max_latency_ms": 1500,
|
|
"retries": 1
|
|
},
|
|
{
|
|
"name": "get-wonder-by-id-invalid",
|
|
"method": "GET",
|
|
"url": "https://localhost:7247/api/wonders/abc",
|
|
"headers": {
|
|
"Accept": "application/json"
|
|
},
|
|
"expect_status": "400",
|
|
"expect_contains": "Invalid ID",
|
|
"max_latency_ms": 1500,
|
|
"retries": 0
|
|
},
|
|
{
|
|
"name": "create-wonder",
|
|
"method": "POST",
|
|
"url": "https://localhost:7247/api/wonders",
|
|
"headers": {
|
|
"Content-Type": "application/json",
|
|
"Accept": "application/json"
|
|
},
|
|
"body": "{\"Name\":\"Test Wonder\",\"Country\":\"Testland\",\"Era\":\"Contemporary\",\"Type\":\"Statue\",\"Description\":\"A test wonder\",\"DiscoveryYear\":2025}",
|
|
"expect_status": "201",
|
|
"expect_contains": "\"Name\":\"Test Wonder\"",
|
|
"follow_location": true,
|
|
"max_latency_ms": 3000,
|
|
"retries": 1
|
|
},
|
|
{
|
|
"name": "update-wonder-1",
|
|
"method": "PUT",
|
|
"url": "https://localhost:7247/api/wonders/1",
|
|
"headers": {
|
|
"Content-Type": "application/json",
|
|
"Accept": "application/json"
|
|
},
|
|
"body": "{\"Id\":1,\"Name\":\"Great Pyramid of Giza (edited)\",\"Country\":\"Egypt\",\"Era\":\"Ancient Egypt\",\"Type\":\"Pyramid\",\"Description\":\"Edited\",\"DiscoveryYear\":-2560}",
|
|
"expect_status": "204",
|
|
"expect_contains": "",
|
|
"max_latency_ms": 3000,
|
|
"retries": 1
|
|
},
|
|
{
|
|
"name": "delete-wonder-temp",
|
|
"method": "DELETE",
|
|
"url": "https://localhost:7247/api/wonders/6",
|
|
"headers": {
|
|
"Accept": "application/json"
|
|
},
|
|
"expect_status": "204",
|
|
"expect_contains": "",
|
|
"max_latency_ms": 3000,
|
|
"retries": 1
|
|
},
|
|
{
|
|
"name": "get-random-wonder",
|
|
"method": "GET",
|
|
"url": "https://localhost:7247/api/wonders/random",
|
|
"headers": {
|
|
"Accept": "application/json"
|
|
},
|
|
"expect_status": "2xx",
|
|
"expect_contains": "\"Name\"",
|
|
"max_latency_ms": 2000,
|
|
"retries": 1
|
|
}
|
|
]
|