GET /nodes

获取已安装节点的列表

需要权限: nodes.read

头部

Header Value
Accept application/jsontext/html - 见响应部分
Authorization Bearer [token] - 如果启用了身份验证

响应

状态码 原因 响应
200 成功 取决于 Accept 头部。详情见下文。
401 未授权

接受: application/json

返回一个 节点集 对象的数组。例如:

[
  {
    "id": "node-red/sentiment",
    "name": "sentiment",
    "types": [
      "sentiment"
    ],
    "enabled": true,
    "module": "node-red",
    "version": "0.10.6"
  }
]

接受: text/html

这将返回所有已安装节点的 HTML 内容 作为单个响应。