-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.json
127 lines (127 loc) · 8.9 KB
/
api.json
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"_type": "export",
"__export_format": 3,
"__export_date": "2017-03-31T06:22:35.595Z",
"__export_source": "insomnia.desktop.app:v4.0.9",
"resources": [
{
"_id": "wrk_143885a9de974e2eb0e28c54f350c9b0",
"parentId": null,
"modified": 1488341304543,
"created": 1488341304543,
"name": "Foodguy",
"description": "",
"certificates": [],
"_type": "workspace"
},
{
"_id": "env_e0bcefa8ff2743839d4689516914b360",
"parentId": "wrk_143885a9de974e2eb0e28c54f350c9b0",
"modified": 1488341408141,
"created": 1488341329829,
"name": "Development",
"data": {},
"_type": "environment"
},
{
"_id": "jar_942597cc7eda4b269d15830463ea2f5e",
"parentId": "wrk_143885a9de974e2eb0e28c54f350c9b0",
"modified": 1490940994061,
"created": 1488341451451,
"name": "Default Jar",
"cookies": [],
"_type": "cookie_jar"
},
{
"_id": "req_1bc65abceb8f4b1c96a565c8f8f55209",
"parentId": "wrk_143885a9de974e2eb0e28c54f350c9b0",
"modified": 1490922358907,
"created": 1488341315543,
"url": "{{ url }}",
"name": "assert valid city/state/country response",
"method": "POST",
"body": {
"mimeType": "application/json",
"text": "{\n \"id\": \"51f38ee4-2f80-491d-ba77-f8c48a027cfb\",\n \"timestamp\": \"2017-03-16T18:19:52.347Z\",\n \"lang\": \"en\",\n \"result\": {\n \"source\": \"agent\",\n \"resolvedQuery\": \"food in san francisco, california\",\n \"action\": \"recommendation\",\n \"actionIncomplete\": false,\n \"parameters\": {\n \"city\": \"San Francisco\",\n \"country\": \"\",\n \"cuisines\": [],\n \"lat\": \"\",\n \"list_size\": \"3\",\n \"lon\": \"\",\n \"sorting\": \"best\",\n \"state\": \"California\"\n },\n \"contexts\": [\n {\n \"name\": \"recommendation\",\n \"parameters\": {\n \"country\": \"\",\n \"sorting.original\": \"\",\n \"city\": \"San Francisco California\",\n \"state.original\": \"\",\n \"country.original\": \"\",\n \"lon\": \"\",\n \"city.original\": \"san francisco, california\",\n \"list_size\": \"3\",\n \"cuisines\": [],\n \"cuisines.original\": \"\",\n \"sorting\": \"\",\n \"state\": \"\",\n \"list_size.original\": \"\",\n \"lon.original\": \"\",\n \"lat\": \"\",\n \"lat.original\": \"\"\n },\n \"lifespan\": 5\n }\n ],\n \"metadata\": {\n \"intentId\": \"07f0ff2a-c4c8-4b52-8d48-4f94b3115476\",\n \"webhookUsed\": \"true\",\n \"webhookForSlotFillingUsed\": \"false\",\n \"intentName\": \"recommendation\"\n },\n \"fulfillment\": {\n \"speech\": \"\",\n \"messages\": [\n {\n \"type\": 0,\n \"speech\": \"\"\n }\n ]\n },\n \"score\": 1\n },\n \"status\": {\n \"code\": 206,\n \"errorType\": \"partial_content\",\n \"errorDetails\": \"Webhook call failed. Error message: Webhook response was empty. ErrorId: e5180fba-3a3c-460d-9a4b-59d21aa96aab\"\n },\n \"sessionId\": \"fce4625a-541e-4351-87bd-f280a081855d\"\n}"
},
"parameters": [],
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"authentication": {},
"metaSortKey": -1488341315543,
"_type": "request"
},
{
"_id": "req_1ea1a9ea7c754f919d2a012ceb69e5ae",
"parentId": "wrk_143885a9de974e2eb0e28c54f350c9b0",
"modified": 1490940898568,
"created": 1490940871683,
"url": "{{ url }}",
"name": "assert unspecified location response",
"method": "POST",
"body": {
"mimeType": "application/json",
"text": "{\n \"id\": \"51f38ee4-2f80-491d-ba77-f8c48a027cfb\",\n \"timestamp\": \"2017-03-16T18:19:52.347Z\",\n \"lang\": \"en\",\n \"result\": {\n \"source\": \"agent\",\n \"resolvedQuery\": \"food in san francisco, california\",\n \"action\": \"recommendation\",\n \"actionIncomplete\": false,\n \"parameters\": {\n \"city\": \"\",\n \"country\": \"\",\n \"cuisines\": [],\n \"lat\": \"\",\n \"list_size\": \"3\",\n \"lon\": \"\",\n \"sorting\": \"best\",\n \"state\": \"\"\n },\n \"contexts\": [\n {\n \"name\": \"recommendation\",\n \"parameters\": {\n \"country\": \"\",\n \"sorting.original\": \"\",\n \"city\": \"San Francisco California\",\n \"state.original\": \"\",\n \"country.original\": \"\",\n \"lon\": \"\",\n \"city.original\": \"san francisco, california\",\n \"list_size\": \"3\",\n \"cuisines\": [],\n \"cuisines.original\": \"\",\n \"sorting\": \"\",\n \"state\": \"\",\n \"list_size.original\": \"\",\n \"lon.original\": \"\",\n \"lat\": \"\",\n \"lat.original\": \"\"\n },\n \"lifespan\": 5\n }\n ],\n \"metadata\": {\n \"intentId\": \"07f0ff2a-c4c8-4b52-8d48-4f94b3115476\",\n \"webhookUsed\": \"true\",\n \"webhookForSlotFillingUsed\": \"false\",\n \"intentName\": \"recommendation\"\n },\n \"fulfillment\": {\n \"speech\": \"\",\n \"messages\": [\n {\n \"type\": 0,\n \"speech\": \"\"\n }\n ]\n },\n \"score\": 1\n },\n \"status\": {\n \"code\": 206,\n \"errorType\": \"partial_content\",\n \"errorDetails\": \"Webhook call failed. Error message: Webhook response was empty. ErrorId: e5180fba-3a3c-460d-9a4b-59d21aa96aab\"\n },\n \"sessionId\": \"fce4625a-541e-4351-87bd-f280a081855d\"\n}"
},
"parameters": [],
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"authentication": {},
"metaSortKey": -1490940871683,
"_type": "request"
},
{
"_id": "req_81850edbcbce4c51b8a321b9df8b677f",
"parentId": "wrk_143885a9de974e2eb0e28c54f350c9b0",
"modified": 1490924350205,
"created": 1490921438168,
"url": "{{ url }}",
"name": "assert valid lat/lon response",
"method": "POST",
"body": {
"mimeType": "application/json",
"text": "{\n \"id\": \"51f38ee4-2f80-491d-ba77-f8c48a027cfb\",\n \"timestamp\": \"2017-03-16T18:19:52.347Z\",\n \"lang\": \"en\",\n \"originalRequest\": {\n\t \"data\": {\n\t\t \"postback\": {\n\t\t\t \"data\": {\n\t\t\t\t \"lat\": 43.4643,\n\t\t\t\t \"long\": -80.5204\n\t\t\t }\n\t\t }\n\t }\n },\n \"result\": {\n \"source\": \"agent\",\n \"resolvedQuery\": \"food in san francisco, california\",\n \"action\": \"recommendation\",\n \"actionIncomplete\": false,\n \"parameters\": {\n \"city\": \"\",\n \"country\": \"\",\n \"cuisines\": [\"Jamaican\"],\n \"lat\": \"\",\n \"list_size\": \"3\",\n \"lon\": \"\",\n \"sorting\": \"best\",\n \"state\": \"\"\n },\n \"contexts\": [\n {\n \"name\": \"recommendation\",\n \"parameters\": {\n \"country\": \"\",\n \"sorting.original\": \"\",\n \"city\": \"San Francisco California\",\n \"state.original\": \"\",\n \"country.original\": \"\",\n \"lon\": \"\",\n \"city.original\": \"san francisco, california\",\n \"list_size\": \"3\",\n \"cuisines\": [],\n \"cuisines.original\": \"\",\n \"sorting\": \"\",\n \"state\": \"\",\n \"list_size.original\": \"\",\n \"lon.original\": \"\",\n \"lat\": \"\",\n \"lat.original\": \"\"\n },\n \"lifespan\": 5\n }\n ],\n \"metadata\": {\n \"intentId\": \"07f0ff2a-c4c8-4b52-8d48-4f94b3115476\",\n \"webhookUsed\": \"true\",\n \"webhookForSlotFillingUsed\": \"false\",\n \"intentName\": \"recommendation\"\n },\n \"fulfillment\": {\n \"speech\": \"\",\n \"messages\": [\n {\n \"type\": 0,\n \"speech\": \"\"\n }\n ]\n },\n \"score\": 1\n },\n \"status\": {\n \"code\": 206,\n \"errorType\": \"partial_content\",\n \"errorDetails\": \"Webhook call failed. Error message: Webhook response was empty. ErrorId: e5180fba-3a3c-460d-9a4b-59d21aa96aab\"\n },\n \"sessionId\": \"fce4625a-541e-4351-87bd-f280a081855d\"\n}"
},
"parameters": [],
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"authentication": {},
"metaSortKey": -1490921438168,
"_type": "request"
},
{
"_id": "env_22cd4f55a0094426822d3d77f4de1215",
"parentId": "env_e0bcefa8ff2743839d4689516914b360",
"modified": 1488827119681,
"created": 1488827103585,
"name": "Production",
"data": {
"url": "https://murmuring-brook-99018.herokuapp.com"
},
"_type": "environment"
},
{
"_id": "env_30601ec41e38449096e1600e5733a1af",
"parentId": "env_e0bcefa8ff2743839d4689516914b360",
"modified": 1488341461129,
"created": 1488341351727,
"name": "Development",
"data": {
"url": "http://localhost:4000"
},
"_type": "environment"
}
]
}