Spaces:
Running
Running
Upload service_config.jsonc
Browse files- service_config.jsonc +17 -17
service_config.jsonc
CHANGED
@@ -176,20 +176,20 @@
|
|
176 |
"apis": [
|
177 |
{
|
178 |
"name": "book_flight_api",
|
179 |
-
"url": "
|
180 |
"method": "POST",
|
181 |
-
"headers": { "Authorization": "Bearer {{token}}" },
|
182 |
"body_template": {
|
183 |
-
"origin": "{{origin}}",
|
184 |
-
"destination": "{{destination}}",
|
185 |
-
"date": "{{flight_date}}",
|
186 |
-
"passenger_count": "{{passenger_count}}"
|
187 |
},
|
188 |
"timeout_seconds": 10,
|
189 |
"retry": { "retry_count": 2, "backoff_seconds": 2, "strategy": "static" },
|
190 |
"auth": {
|
191 |
"enabled": true,
|
192 |
-
"token_endpoint": "
|
193 |
"response_token_path": "token",
|
194 |
"token_request_body": {}
|
195 |
},
|
@@ -197,18 +197,18 @@
|
|
197 |
},
|
198 |
{
|
199 |
"name": "flight_info_api",
|
200 |
-
"url": "
|
201 |
"method": "POST",
|
202 |
-
"headers": { "Authorization": "Bearer {{token}}" },
|
203 |
"body_template": {
|
204 |
-
"flight_number": "{{flight_number}}",
|
205 |
-
"date": "{{flight_date}}"
|
206 |
},
|
207 |
"timeout_seconds": 10,
|
208 |
"retry": { "retry_count": 2, "backoff_seconds": 2, "strategy": "static" },
|
209 |
"auth": {
|
210 |
"enabled": true,
|
211 |
-
"token_endpoint": "
|
212 |
"response_token_path": "token",
|
213 |
"token_request_body": {}
|
214 |
},
|
@@ -216,18 +216,18 @@
|
|
216 |
},
|
217 |
{
|
218 |
"name": "cancel_booking_api",
|
219 |
-
"url": "
|
220 |
"method": "POST",
|
221 |
-
"headers": { "Authorization": "Bearer {{token}}" },
|
222 |
"body_template": {
|
223 |
-
"pnr": "{{pnr}}",
|
224 |
-
"surname": "{{surname}}"
|
225 |
},
|
226 |
"timeout_seconds": 10,
|
227 |
"retry": { "retry_count": 2, "backoff_seconds": 2, "strategy": "static" },
|
228 |
"auth": {
|
229 |
"enabled": true,
|
230 |
-
"token_endpoint": "
|
231 |
"response_token_path": "token",
|
232 |
"token_request_body": {}
|
233 |
},
|
|
|
176 |
"apis": [
|
177 |
{
|
178 |
"name": "book_flight_api",
|
179 |
+
"url": "https://529b-176-88-34-20.ngrok-free.app/book_flight",
|
180 |
"method": "POST",
|
181 |
+
"headers": { "Authorization": "Bearer {{auth_tokens.book_flight_api.token}}" },
|
182 |
"body_template": {
|
183 |
+
"origin": "{{variables.origin}}",
|
184 |
+
"destination": "{{variables.destination}}",
|
185 |
+
"date": "{{variables.flight_date}}",
|
186 |
+
"passenger_count": "{{variables.passenger_count}}"
|
187 |
},
|
188 |
"timeout_seconds": 10,
|
189 |
"retry": { "retry_count": 2, "backoff_seconds": 2, "strategy": "static" },
|
190 |
"auth": {
|
191 |
"enabled": true,
|
192 |
+
"token_endpoint": "https://529b-176-88-34-20.ngrok-free.app/auth",
|
193 |
"response_token_path": "token",
|
194 |
"token_request_body": {}
|
195 |
},
|
|
|
197 |
},
|
198 |
{
|
199 |
"name": "flight_info_api",
|
200 |
+
"url": "https://529b-176-88-34-20.ngrok-free.app/flight_info",
|
201 |
"method": "POST",
|
202 |
+
"headers": { "Authorization": "Bearer {{auth_tokens.flight_info_api.token}}" },
|
203 |
"body_template": {
|
204 |
+
"flight_number": "{{variables.flight_number}}",
|
205 |
+
"date": "{{variables.flight_date}}"
|
206 |
},
|
207 |
"timeout_seconds": 10,
|
208 |
"retry": { "retry_count": 2, "backoff_seconds": 2, "strategy": "static" },
|
209 |
"auth": {
|
210 |
"enabled": true,
|
211 |
+
"token_endpoint": "https://529b-176-88-34-20.ngrok-free.app/auth",
|
212 |
"response_token_path": "token",
|
213 |
"token_request_body": {}
|
214 |
},
|
|
|
216 |
},
|
217 |
{
|
218 |
"name": "cancel_booking_api",
|
219 |
+
"url": "https://529b-176-88-34-20.ngrok-free.app/cancel_booking",
|
220 |
"method": "POST",
|
221 |
+
"headers": { "Authorization": "Bearer {{auth_tokens.cancel_booking_api.token}}" },
|
222 |
"body_template": {
|
223 |
+
"pnr": "{{variables.pnr}}",
|
224 |
+
"surname": "{{variables.surname}}"
|
225 |
},
|
226 |
"timeout_seconds": 10,
|
227 |
"retry": { "retry_count": 2, "backoff_seconds": 2, "strategy": "static" },
|
228 |
"auth": {
|
229 |
"enabled": true,
|
230 |
+
"token_endpoint": "https://529b-176-88-34-20.ngrok-free.app/auth",
|
231 |
"response_token_path": "token",
|
232 |
"token_request_body": {}
|
233 |
},
|