diff --git a/nodes/core/io/21-httpin.html b/nodes/core/io/21-httpin.html index 3f4a0b00c..2a089b308 100644 --- a/nodes/core/io/21-httpin.html +++ b/nodes/core/io/21-httpin.html @@ -32,6 +32,10 @@ +
+ + +
The url will be relative to .
@@ -157,7 +161,8 @@ defaults: { name: {value:""}, url: {value:"",required:true}, - method: {value:"get",required:true} + method: {value:"get",required:true}, + swaggerDoc: {type:"swagger-doc", required:false} }, inputs:0, outputs:1, @@ -194,7 +199,9 @@ $("#node-input-path").html(root); $("#node-input-tip").show(); } - //document.getElementById("node-config-wsdocpath").innerHTML= + if(!RED.nodes.getType("swagger-doc")){ + $('.row-swagger-doc').hide(); + } } }); diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index e52a47599..fd37ab581 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -50,6 +50,7 @@ module.exports = function(RED) { this.url = n.url; this.method = n.method; + this.swaggerDoc = n.swaggerDoc; var node = this;