[英]dynamic route for http-request in total.js flow
這是可能的,而且非常容易。 您可以使用Code
(更好)或Repository
組件。
Code
組件: // This will be as dynamic argument stored in hidden Flow Message repository:
repository.code = 'sk';
// or you can bind value from received data:
repository.code = value.code; // value === received data
// Continue with processing
send(0, value);
URL: https://restcountries.eu/rest/v2/alpha/{code}
HTTP請求組件將用{code}
替換repository.code
值。 您可以使用多個值。 就這樣 :-)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.