Swagger problem

Good afternoon, colleagues. I need your help. Can't open the swagger UI. Inside the Node-red editor, I can see it.
I installed node-red-node-swagger package

http://localhost:1880/http-api/swagger.json returns something like thise

{"swagger":"2.0","info":{"title":"My Node-RED API","version":"0.0.1"},"basePath":"/","paths":{"/v1/threads":{"post":{"summary":"sasd","description":"asd","tags":["asd"],"consumes":["asd"],"produces":["asd"],"deprecated":false,"parameters":,"deprecated":false,"parameters":[],"responses":{}}}}}

thanks in advance

Did you add the template to settings.js as explained in the readme?


yes, I did

Perhaps I have a mistake?

Did you follow the Path Swagger Generation insrtructons in the Readme?

Can you provide your flow so I can see the settings you have in the http-in nodes.

In order to make code more readable and importable it is important to surround your code with three backticks
```
like this
```

You can edit and correct your post by clicking the pencil icon.

See this post for more details - How to share code or flow json

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.