Commit a4893acdff2a38cc6c6071159353d98af70cbbc8
1 parent
c5a2e24a
postman collection updated (facebook, telegram)
Showing
1 changed file
with
108 additions
and
20 deletions
docu/postman/beuth-bot.json
1 | 1 | { |
2 | - "variables": [], | |
3 | 2 | "info": { |
4 | 3 | "name": "beuth-bot-v1", |
5 | - "_postman_id": "", | |
4 | + "_postman_id": "8b06966b-f57c-2927-3250-8241d48b465b", | |
6 | 5 | "description": "", |
7 | - "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
6 | + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
8 | 7 | }, |
9 | 8 | "item": [ |
10 | 9 | { |
11 | 10 | "name": "Facebook", |
12 | - "description": "", | |
13 | - "item": [] | |
11 | + "item": [ | |
12 | + { | |
13 | + "name": "setWebhook", | |
14 | + "request": { | |
15 | + "method": "GET", | |
16 | + "header": [], | |
17 | + "body": {}, | |
18 | + "url": { | |
19 | + "raw": "localhost:8080/facebook/setWebhook", | |
20 | + "host": [ | |
21 | + "localhost" | |
22 | + ], | |
23 | + "port": "8080", | |
24 | + "path": [ | |
25 | + "facebook", | |
26 | + "setWebhook" | |
27 | + ] | |
28 | + }, | |
29 | + "description": "" | |
30 | + }, | |
31 | + "response": [] | |
32 | + }, | |
33 | + { | |
34 | + "name": "getUpdates", | |
35 | + "request": { | |
36 | + "method": "POST", | |
37 | + "header": [ | |
38 | + { | |
39 | + "key": "Content-Type", | |
40 | + "value": "application/json" | |
41 | + } | |
42 | + ], | |
43 | + "body": { | |
44 | + "mode": "raw", | |
45 | + "raw": "{\"object\":\"page\",\"entry\":[{\"id\":\"163783704220143\",\"time\":1513427045712,\"messaging\":[{\"sender\":{\"id\":\"1385529261556255\"},\"recipient\":{\"id\":\"163783704220143\"},\"timestamp\":1513427044846,\"message\":{\"mid\":\"mid.$cAADOButO2l5mkI1R7lgX0gFO8FR5\",\"seq\":4370,\"text\":\"Was gibt es in der Mensa heute?\"}}]}]}" | |
46 | + }, | |
47 | + "url": { | |
48 | + "raw": "localhost:8080/facebook/getUpdates", | |
49 | + "host": [ | |
50 | + "localhost" | |
51 | + ], | |
52 | + "port": "8080", | |
53 | + "path": [ | |
54 | + "facebook", | |
55 | + "getUpdates" | |
56 | + ] | |
57 | + }, | |
58 | + "description": "" | |
59 | + }, | |
60 | + "response": [] | |
61 | + } | |
62 | + ] | |
14 | 63 | }, |
15 | 64 | { |
16 | 65 | "name": "Rasa", |
17 | - "description": "", | |
18 | 66 | "item": [ |
19 | 67 | { |
20 | 68 | "name": "Hello", |
21 | 69 | "request": { |
70 | + "method": "GET", | |
71 | + "header": [], | |
72 | + "body": { | |
73 | + "mode": "raw", | |
74 | + "raw": "" | |
75 | + }, | |
22 | 76 | "url": { |
23 | 77 | "raw": "http://localhost:5000/parse?q=Hello", |
24 | 78 | "protocol": "http", |
... | ... | @@ -33,16 +87,10 @@ |
33 | 87 | { |
34 | 88 | "key": "q", |
35 | 89 | "value": "Hello", |
36 | - "equals": true, | |
37 | - "description": "" | |
90 | + "equals": true | |
38 | 91 | } |
39 | - ], | |
40 | - "variable": [] | |
41 | - }, | |
42 | - "method": "GET", | |
43 | - "header": [], | |
44 | - "body": {}, | |
45 | - "description": "" | |
92 | + ] | |
93 | + } | |
46 | 94 | }, |
47 | 95 | "response": [] |
48 | 96 | } |
... | ... | @@ -50,17 +98,57 @@ |
50 | 98 | }, |
51 | 99 | { |
52 | 100 | "name": "Telegram", |
53 | - "description": "", | |
54 | - "item": [] | |
101 | + "item": [ | |
102 | + { | |
103 | + "name": "getUpdates", | |
104 | + "request": { | |
105 | + "method": "POST", | |
106 | + "header": [ | |
107 | + { | |
108 | + "key": "Content-Type", | |
109 | + "value": "application/json" | |
110 | + } | |
111 | + ], | |
112 | + "body": { | |
113 | + "mode": "raw", | |
114 | + "raw": "Update{update_id=800044739, message=Message{message_id=103, from=User{id=61996740, first_name='Markus', last_name='Buhl', username='tweeeeak', language_code='en'}, date=1512399307, chat=Chat{id=61996740, type=Private, first_name='Markus', last_name='Buhl', username='tweeeeak', title='null', all_members_are_administrators=null}, forward_from=null, forward_from_chat=null, forward_from_message_id=null, forward_date=null, reply_to_message=null, edit_date=null, text='Hallo', entities=null, audio=null, document=null, game=null, photo=null, sticker=null, video=null, voice=null, video_note=null, new_chat_members=null, caption='null', contact=null, location=null, venue=null, new_chat_member=null, left_chat_member=null, new_chat_title='null', new_chat_photo=null, delete_chat_photo=null, group_chat_created=null, supergroup_chat_created=null, channel_chat_created=null, migrate_to_chat_id=null, migrate_from_chat_id=null, pinned_message=null, invoice=null, successful_payment=null}, edited_message=null, channel_post=null, edited_channel_post=null, inline_query=null, chosen_inline_result=null, callback_query=null, shipping_query=null, pre_checkout_query=null}" | |
115 | + }, | |
116 | + "url": { | |
117 | + "raw": "localhost:8080/telegram/getUpdates", | |
118 | + "host": [ | |
119 | + "localhost" | |
120 | + ], | |
121 | + "port": "8080", | |
122 | + "path": [ | |
123 | + "telegram", | |
124 | + "getUpdates" | |
125 | + ] | |
126 | + }, | |
127 | + "description": "" | |
128 | + }, | |
129 | + "response": [] | |
130 | + } | |
131 | + ] | |
55 | 132 | }, |
56 | 133 | { |
57 | 134 | "name": "Application appearing", |
58 | 135 | "request": { |
59 | - "url": "localhost:8080/bht-chatbot ", | |
60 | 136 | "method": "GET", |
61 | 137 | "header": [], |
62 | - "body": {}, | |
63 | - "description": "" | |
138 | + "body": { | |
139 | + "mode": "raw", | |
140 | + "raw": "" | |
141 | + }, | |
142 | + "url": { | |
143 | + "raw": "localhost:8080/bht-chatbot", | |
144 | + "host": [ | |
145 | + "localhost" | |
146 | + ], | |
147 | + "port": "8080", | |
148 | + "path": [ | |
149 | + "bht-chatbot" | |
150 | + ] | |
151 | + } | |
64 | 152 | }, |
65 | 153 | "response": [] |
66 | 154 | } | ... | ... |