I'm checking out swagger node. This seems to be something basic so it's hard for me to believe it's a bug.
I create the sample swagger hello world project as indicated on the swagger-node git page using swagger project create hello-world.
I use a…
0 with express-session but i am not able to send the cookie i.e session.sid in header.its showing in curl but its not showing in server. So can anyone help me how to set it?
swagger: '2.0'
info:
description: This is the list of API pr
version:…
I was trying to make real time chat application for that I used node express server and redis with Laravel.
Here is my server.js code
var app = require('express')();
var server = require('http').Server(app);
var io =…
The framerork validates the input parameters based on YAML and emits an error if needed.
I would like to incercept this error and reformat it to our app's standard format.
What is the best way to do this?
Here is my nodejs code.
I getting last inserted id but not getting session value and last inserted id value outside of query function.
app.post('/api/payment', function (req, res) {
var query = connection.query('INSERT INTO label SET ?',…
I'm using swagger-node library, and am trying to achieve a 302 redirect with it. But it results into the error described in the title.
My schema regarding the path looks following:
/login:
x-swagger-router-controller: login
get:
…
I want to pass the data 1 and data 2 to the last function directly.
It is working when I pass data 1 to second function and from there data 1 + data 2 to the last function. But the problem is that I don't want to pass data 1 to the second function.…
Is this ERD diagram correct?
In this ERD diagram, I purposed when you click under the Food of the add to cart button, we need to take the Cart and then we have to add the Food item to the Cart_item table. So when you click the add to Cart, this…
I have been trying to fetch Azure portal subscription user/group data using Azure SDK as I'm using NodeJS for creating API however facing error while installing Azure-authorization package as well
I have been tying to implement methods provided in…
Been struggling with this for a couple of day now.
I have an Angular 9 app, a subdomain (subdomain.side.com) and a Heroku app running Nodejs server.
Heroku app has SSL and is connected correctly to the domain panel via DNS, also heroku is running a…
I have used little Node js/Node express and would like to discuss to you all of the proposed project I am working on. I am working on an application where users can add, remove and modify books (they have a title, category, an intended due date and…
In my route I am trying to get the registers with a dynamic columns, than the client request the route like a "router.get('/get-by/'" than specify the field of my table...
I'm using like this
var field = req.body.field
Territory
…
Swagger.yml
swagger: "2.0"
info:
version: "0.0.1"
title: Movie DB
# during dev, should point to your local machine
host: localhost:8000
# basePath prefixes all resource paths
basePath: /
#
schemes:
# tip: remove http to make…