Questions tagged [swagger-node-express]

Swagger module for the Express web application framework for Node.js

Swagger module for the Express web application framework for Node.js

40 questions
0
votes
0 answers

Attaching a debugger to swagger node

I have a node swagger project using: "swagger-node-runner": "0.7.3", I'm using webstorm and I'm trying to attached a debugger to my source code. Controller code, but I cannot. Can someone please help ? I'm tried 30 different things and I can't get…
Dory Zidon
  • 10,497
  • 2
  • 25
  • 39
0
votes
2 answers

Swagger node is taking URL phrase as parameter

I'm using swagger-node for REST APIs and I've found an absurd issue here. Here's my one of GET requests: GET: /students/{id}/{name} (id is number) And now I wrote another request: GET: /students/routeInfo/{id} But the 2nd request me following…
Vikas
  • 720
  • 1
  • 9
  • 30
0
votes
2 answers

NodeJS: Adding new child nodes to JSON Object

lets say there is customer object, i need to add new element address to this json object customer. how can I achieve this? Both of these are not altering the customer JSON object customer['address'] = addressObj customer.address = addressObj and…
Naren Karanam
  • 61
  • 1
  • 3
  • 10
0
votes
1 answer

at node express execution css and js files are not loading

I am having index.html, css and js files in letschat folder. After running the node express server it is not loading the css and js files. I am giving the server.js code. please let me know how to resolve the issue. var express =…
0
votes
1 answer

How to access header keys from inside swagger-tools controllers?

When a parameter is defined to be 'in' header, then swagger-tools makes it available to controllers via 'args' variable, but other header's keys will not be included. My question is: how to read header keys and values that are not specifically…
0
votes
1 answer

Node.js 5.x v/s 0.10.x or 0.12.x

There are two version of Node.js 5.x and 0.10.x or 0.12.x . Linked from official site https://github.com/nodesource/distributions It is very confusion what is the difference. I was trying to install swagger-node on ubuntu-server, if I use 5.x it…
rajesk
  • 1,407
  • 1
  • 9
  • 8
0
votes
1 answer

Can node-restify paths work with swagger?

The node-restify library allows paths like /foo/:id. Can swagger handle such paths? i.e. something like? var getFoo = { 'spec': { 'description': 'foo library', 'path': '/foo/:id', 'summary': 'return foo by id', …
Prachi
  • 528
  • 8
  • 31
0
votes
1 answer

Make available my swagger APIs to be read through swagger-ui (new swagger-node project)

I am using the Swagger Node project with Express 4 to build my apis. https://github.com/swagger-api/swagger-node I can make my "swagger api" work, however I could not get expose my apis as JSON to be read by the…
Danilo Oliveira
  • 280
  • 2
  • 12
0
votes
1 answer

Add validation on json format in swagger UI for node js

Hi I am using swagger UI for documenting APIs in my node.js application. I successfully configured and it is working fine. But I right now I am facing one serious problem. here is my sample swagger code from my controller exports.people = { …
user2622247
  • 1,059
  • 2
  • 15
  • 26
-1
votes
1 answer

How do I add Swagger to an existing Node app?

The documentation for Swagger (https://github.com/swagger-api/swagger-node) only shows how to create a new app. How do I integrate Swagger into an existing API app?
Chloe
  • 25,162
  • 40
  • 190
  • 357
1 2
3