Spaces:
Running
Running
Update service_config.json
Browse files- service_config.json +8 -1
service_config.json
CHANGED
@@ -72,7 +72,14 @@
|
|
72 |
"headers": [{ "key": "Authorization", "value": "Bearer {auth_tokens.currency_api.token}" }],
|
73 |
"body": { "currency": "{variables.currency}" },
|
74 |
"timeout": 5,
|
75 |
-
"retry_count": 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
},
|
77 |
"weather_api": {
|
78 |
"url": "https://mock.api/weather",
|
|
|
72 |
"headers": [{ "key": "Authorization", "value": "Bearer {auth_tokens.currency_api.token}" }],
|
73 |
"body": { "currency": "{variables.currency}" },
|
74 |
"timeout": 5,
|
75 |
+
"retry_count": 1,
|
76 |
+
"auth": {
|
77 |
+
"auth_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/auth",
|
78 |
+
"auth_body": { "username": "user", "password": "pass" },
|
79 |
+
"auth_token_path": "token",
|
80 |
+
"auth_refresh_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/refresh",
|
81 |
+
"refresh_body": { "refresh_token": "{auth_tokens.weather_api.token}" }
|
82 |
+
}
|
83 |
},
|
84 |
"weather_api": {
|
85 |
"url": "https://mock.api/weather",
|