You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -29,21 +29,23 @@ based on the HTTP nodes deployed in a flow.
29
29
30
30
**Note:** You may additionally add parameters to the swagger file in 'settings.js' to have those parameters automatically added to each path in the generated swagger doc.
31
31
32
-
swagger: {
32
+
"swagger": {
33
33
"template": {
34
34
"swagger": "2.0",
35
35
"info": {
36
36
"title": "My Node-RED API",
37
37
"version": "0.0.1"
38
38
}
39
39
},
40
-
"parameters": {
41
-
"name": "parameterA",
42
-
"type": "string",
43
-
"in": "header",
44
-
"required": false,
45
-
"description": "This is a test parameter to show how parameters are automatically added to each path in the generated swagger doc."
46
-
}
40
+
"parameters": [
41
+
{
42
+
"name": "parameterA",
43
+
"type": "string",
44
+
"in": "header",
45
+
"required": false,
46
+
"description": "This is a test parameter to show how parameters are automatically added to each path in the generated swagger doc."
47
+
}
48
+
]
47
49
}
48
50
49
51
4. After installing the package, you have the option to identify metadata for each HTTP-In node that will be used in the swagger doc generation.
0 commit comments