I have been trying to use more of the Admin API in reworking my backup flows solution. The GET flows, Get (specific) flow content methods work. But when I try the GET nodes (list) method, I get HTML back? Not a list of nodes in use... Am I misunderstanding the expected output from said method? Or is it broken? I recall that @Colin noted the Admin API needs some TLC.
Make sure you have set the Accept
header to application/json
in order to get the list of nodes rather than their html content.
Ah! Thanks! Humm.... so flows/flow methods don't care, or the request node defaults to accept-app/json?
[
{
"id": "795e98a6.d55df8",
"type": "http request",
"z": "d9c9f5b0.34c538",
"name": "Flows",
"method": "GET",
"ret": "txt",
"paytoqs": "ignore",
"url": "http://localhost:1880/flows",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 630,
"y": 280,
"wires": [
[
"999b9afe.6fb578"
]
]
}
]
Yeah does not care.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.