[英]React-Admin: How do I call two endpoints simultaneously from one click event within a <form>
[英]How do I call 2 endpoints with one proxy in Apigee?
嗨,我正在嘗試通過一個代理在這里調用兩個不同的端點。
第一個端點:基本上是我編寫到.js文件中的Java腳本。第二個端點:這是一個端點,我必須在其中將請求發送到第三方URL並獲取響應並返回。
所以我想像這樣在我的查詢字符串中發送一個參數:
http://[url to my apigee proxy]/endpoint?stub=true
如果這是網址,則應轉到我的JavaScript代碼。 如果這是網址:
http://[url to my apigee proxy]/endpoint?stub=false
然后,它應該轉到第三方網址。 我已經查看並嘗試實現此目標; http://stackoverflow.com/questions/22783986/one-api-proxy-calling-two-different-target-endpoints
但這對我不起作用。
任何建議將不勝感激。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.