Here's an example:
-
http://localhost:1880/request gets you to output 3
-
http://localhost:1880/request?key1=x gets you to output 1
-
http://localhost:1880/request?key2=x gets you to output 2
Hope this is clear enough. Pretty straightforward, but it matches also if you do
http://localhost:1880/request?property=key1[{"id":"fe60d660.34adb8","type":"http in","z":"d2441641.e71a8","name":"request URL","url":"/request","method":"get","swaggerDoc":"","x":258,"y":128,"wires":[["ba0c270.3b9afd8"]]},{"id":"ba0c270.3b9afd8","type":"switch","z":"d2441641.e71a8","name":"Key-switch","property":"$string(msg.payload)","propertyType":"jsonata","rules":[{"t":"cont","v":"key1","vt":"str"},{"t":"cont","v":"key2","vt":"str"},{"t":"else"}],"checkall":"false","outputs":3,"x":469,"y":335,"wires":[[],[],[]]}]
Op vrijdag 16 juni 2017 02:34:57 UTC+2 schreef Glenn: