Hi,
I am trying to get node-red-node-swagger to generate swagger documentation. I can get it working for a HTTP IN node but not the node-red-constrib-http-custom-port on a custom port. Any ideas?
{
"id": "636df2a183b16ff4",
"type": "node-red-contrib-http-custom-port",
"z": "e18f95efaa76815e",
"name": "",
"url": "/api/testNotVisible",
"method": "post",
"upload": false,
"swaggerDoc": "6699d3b594113217",
"port": "8080",
"x": 590,
"y": 260,
"wires": [
[
"fb9d66179dae2cfe"
]
]
},
{
"id": "fb9d66179dae2cfe",
"type": "http response",
"z": "e18f95efaa76815e",
"name": "",
"statusCode": "200",
"headers": {
"status": "ok"
},
"x": 1100,
"y": 260,
"wires": []
},
{
"id": "bd1ddf843cfa518c",
"type": "http in",
"z": "e18f95efaa76815e",
"name": "",
"url": "/api/visible",
"method": "post",
"upload": false,
"swaggerDoc": "14749f632af54b53",
"x": 560,
"y": 340,
"wires": [
[
"ab504247fdc63bd2"
]
]
},
{
"id": "ab504247fdc63bd2",
"type": "http response",
"z": "e18f95efaa76815e",
"name": "",
"statusCode": "200",
"headers": {
"status": "ok"
},
"x": 1100,
"y": 340,
"wires": []
},
{
"id": "6699d3b594113217",
"type": "swagger-doc",
"summary": "Not visible",
"description": "Test API not visible in Swagger",
"tags": "",
"consumes": "",
"produces": "",
"parameters": [
{
"name": "x-api-key",
"in": "header",
"description": "the api-key",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful"
}
},
"deprecated": false
},
{
"id": "14749f632af54b53",
"type": "swagger-doc",
"summary": "API Visible",
"description": "API Visible in Swagger",
"tags": "",
"consumes": "",
"produces": "",
"parameters": [],
"responses": {},
"deprecated": false
}
] ```