forked from AmericanAirlines/Flight-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlight Engine.postman_collection.json
More file actions
94 lines (94 loc) · 1.62 KB
/
Flight Engine.postman_collection.json
File metadata and controls
94 lines (94 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"info": {
"_postman_id": "586c604c-b761-490e-b9d4-46d5c86ad18e",
"name": "Flight Engine",
"description": "Sample requests for the Flight Engine API.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "GET flights",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseURL}}/flights?date=2021-01-01",
"host": [
"{{baseURL}}"
],
"path": [
"flights"
],
"query": [
{
"key": "date",
"value": "2021-01-01"
}
]
}
},
"response": []
},
{
"name": "GET flights with origin and destination",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseURL}}/flights?date=2021-01-01&destination=ORD&origin=DFW",
"host": [
"{{baseURL}}"
],
"path": [
"flights"
],
"query": [
{
"key": "date",
"value": "2021-01-01"
},
{
"key": "destination",
"value": "ORD"
},
{
"key": "origin",
"value": "DFW"
}
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "3846d78e-bf86-4d7f-9e36-0dfe3474563c",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "2476c3be-10fb-4bcc-83ba-463c27a8ae05",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"id": "b4b01f45-e0b3-479d-9125-cf2d77c1b921",
"key": "baseURL",
"value": "localhost:3030"
}
],
"protocolProfileBehavior": {}
}