I do believe we are talking about a GET operation in HTTP.
I don't think there's actually any payload. We can type this in the address bar of the web browser - type in the address and get the answer.
It can be made to not answer, but I do not beleive one should program it that way, not that the answer is very useful.
if a bad address is entered you get this:
"Cannot GET /endpoint/badlywrittenname"
The address/port and /endpoint/ are to be standardized (endpoint isn't something I can change and comes with node-red)
the only part that changes is the trigger name.
192.168.0.xx:1880/endpoint/triggername
Results 31 to 32 of 32
-
2020-12-31, 10:33 #31
- Join Date
- Feb 2013
- Posts
- 176
Last edited by Marsupial; 2020-12-31 at 16:02.
-
2020-12-31, 16:09 #32
- Join Date
- Feb 2013
- Posts
- 176
It seems the possible reply (if any) can easily be 200, 400 - it is set numerically but right now I always reply 200 if the address exists.
I guess one could build a more complex system, asking for data or something. but to trigger things in the system just 200 seems good.
BTW have a good end of 2020 and a happy 2021.Last edited by Marsupial; 2021-01-01 at 07:39.