Dear @RRodman @april.brandt @markus … I would like to test my generic rest server .
How can I PUT some content to a NR implemented endpoint ?
Have I to use an “http in” node ? Which is the url to reach my core NR (that is which ip and port I have to send the data to, being core a container?)
What I have done:
I wrote a simple rest manager in python.
I changed oll-node-red.conf file adding:
PORT MAP+=(“192.168.xxx.yyy:9000:1880”)
where 192.168.xxx.yyy is my core IP and 1880 should be the port of "HTTP in’ node in NR, if I’m not wrong
I created a flow with an HTTP in node method=GET and url=/put.
I send my REST commands to ‘http://192.168.xxx.yyy:9000//put’
I get the following response:
<ClientResponse(http://192.168.xxx.yyy:9000//put) [404 Not Found]>
<CIMultiDictProxy(‘Content-Security-Policy’: “default-src ‘none’”, ‘X-Content-Type-Options’: ‘nosniff’, ‘Content-Type’: ‘text/html; charset=utf-8’, ‘Content-Length’: ‘143’, ‘Date’: ‘Fri, 27 Oct 2023 12:03:35 GMT’, ‘Connection’: ‘keep-alive’, ‘Keep-Alive’: ‘timeout=5’)>
Where I’m wrong?