# Swagger problem

**URL:** <https://discourse.nodered.org/t/swagger-problem/46581>\
**Category:** General\
**Created:** [2 June 2021 08:04 UTC](https://discourse.nodered.org/t/swagger-problem/46581 "2021-06-02T08:04:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tonna100](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tonna100/32/34860_2.png) [@Tonna100](https://discourse.nodered.org/u/Tonna100)\
**Post date:** [2 June 2021 08:04 UTC](https://discourse.nodered.org/t/swagger-problem/46581/1 "2021-06-02T08:04:59Z")

</div>

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

 ![2021-06-02_110102](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/742f2584e1c967061a536e4786b12cea70e011ae.jpeg)

[http://localhost:1880/http-api/swagger.json](http://localhost:1880/http-api/swagger.json) returns something like thise

```auto
{"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

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [2 June 2021 10:35 UTC](https://discourse.nodered.org/t/swagger-problem/46581/2 "2021-06-02T10:35:04Z")

</div>

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

> **[node-red-node-swagger](https://flows.nodered.org/node/node-red-node-swagger)**
>
> A set of tools for generating Swagger API documentation based on the HTTP nodes deployed in a flow

---

<div class="post-metadata">

**Author:** ![Tonna100](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tonna100/32/34860_2.png) [@Tonna100](https://discourse.nodered.org/u/Tonna100)\
**Post date:** [2 June 2021 11:01 UTC](https://discourse.nodered.org/t/swagger-problem/46581/3 "2021-06-02T11:01:22Z")

</div>

![2021-06-02_140148](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e5c2ac8f9111dff58069a2a6181df9a59e70b522.jpeg)  
yes, I did

---

<div class="post-metadata">

**Author:** ![Tonna100](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tonna100/32/34860_2.png) [@Tonna100](https://discourse.nodered.org/u/Tonna100)\
**Post date:** [2 June 2021 12:37 UTC](https://discourse.nodered.org/t/swagger-problem/46581/4 "2021-06-02T12:37:28Z")

</div>

Perhaps I have a mistake?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [2 June 2021 12:46 UTC](https://discourse.nodered.org/t/swagger-problem/46581/5 "2021-06-02T12:46:43Z")

</div>

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](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 August 2021 12:46 UTC](https://discourse.nodered.org/t/swagger-problem/46581/6 "2021-08-01T12:46:57Z")

</div>

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