Closed faizulhassan closed 4 years ago
Managed to fix the above but now the UI in Swagger tab remains the same even after importing the http In node..
Swagger UI remains same even after trying various combinations of the http node.
Below is my node flow:
[{"id":"ac44da7e.5b7d38","type":"http in","z":"952022f4.3bcd9","name":"","url":"/test","method":"get","upload":false,"swaggerDoc":"4974c96.827c438","x":320,"y":140,"wires":[["2768f500.667aec","d33b2e0.5b574d"]]},{"id":"4974c96.827c438","type":"swagger-doc","z":"952022f4.3bcd9","summary":"testing the swagger node","description":"test","tags":"testingTags","consumes":"/test","produces":"/result","parameters":[{"name":"itemNum","in":"query","description":"the item's identifier","required":false,"type":"integer"}],"responses":{"200":{"description":"200 action","schema":{"properties":{"200 action":{"type":"string","name":"200 action","propertyRow":true}}},"code":"200"},"400":{"description":"the request was malform","schema":{"properties":{"Error":{"type":"string","name":"Error","propertyRow":true}}},"code":"400"}},"deprecated":false}]
Node Red , Swagger UI Screengrab:
Swagger.json screengrabs:
Hey FaizulHassan,
Any chance you got it fixed, I'm having the exact same issue :/
Regards, Geoffrey
Hi , I tried implementing Swagger following your instructions.
I have it installed correctly but my swagger.json throws the following error..
In the developer console I get the log as below:
Node-Red Log:
Node Structure:
.node-red --> node_module -->
Please help fix my problem..
Thank You!