node-red-node-swagger icon indicating copy to clipboard operation
node-red-node-swagger copied to clipboard

A set of tools for generating Swagger api documentation based on the HTTP nodes deployed in a flow

Results 27 node-red-node-swagger issues
Sort by recently updated
recently updated
newest added

Hi Nick - this tool has been our biggest find in recent days as node-red becomes an important part of a our mini-api-server gateways. However, wondering if we're missing something...

Hi! Before I add the query parameter: ![image](https://user-images.githubusercontent.com/15982264/92140879-b0ec7d80-eddf-11ea-9143-f5bb70284071.png) After I add the query parameter (and deploy): ![image](https://user-images.githubusercontent.com/15982264/92140815-987c6300-eddf-11ea-928a-d725958dffb1.png) Notice that the SwaggerUI doesn't display the endpoints anymore

see here https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operation-object It is not mandatory but It actually required if you want to deploy on GCP see here https://cloud.google.com/endpoints/docs/openapi/configure-endpoints#operationid As a solution please just add a field for...

When loading Node-red UI in chrome, following exception is printed in browser console: > Uncaught TypeError: Cannot read property 'type' of undefined at Object. (swagger-ui.js:254) at Object.10 (swagger-ui.js:778) at Object.f...

![image](https://user-images.githubusercontent.com/35187386/55066369-9ecdc200-50b8-11e9-86fe-e73d8af1b3fa.png)

Hy Nick, some of my http-in nodes (or better rest api) provide "internal" functions, that should not be in de swagger doc. The possibility to "hide" a specific node in...

typeError: Cannot read property 'type' of null at checkWiresForHttpResponse (/data/node_modules/node-red-node-swagger/swagger/swagger.js:132:23) at /data/node_modules/node-red-node-swagger/swagger/swagger.js:52:20 at Object.eachNode (/usr/src/node-red/node_modules/node-red/red/runtime/nodes/flows/index.js:168:13) at /data/node_modules/node-red-node-swagger/swagger/swagger.js:50:19 at Layer.handle [as handle_request] (/usr/src/node-red/node_modules/express/lib/router/layer.js:95:5) at next (/usr/src/node-red/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/usr/src/node-red/node_modules/express/lib/router/route.js:112:3) at Layer.handle...

I tracked down why my new http endpoint was not showing in the Swagger sidebar... the code searches from the `http in` node until it finds a connected `http response`...

I tried to duplicate my http-in node (url = `/nodes`) in order to add a named parameter (url = `/nodes/:type`). Any changes I made to either list of query parameters...

When adding an endpoint with a parameter, something like `/user/:name` it doesn't seem to be picked up by the doc.