You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the inconvenience, I wanted to ask how I can bring 1 record only in the path localhost: 8081 / queryCalls that is, to be able to show in json the first record only
On the server in app.js is this GET route but I do not get an idea in chrome or postman how to consume only the first record
app.get ('/ queryAllCars', (req, res) => {
network.queryAllCars ()
.then ((response) => {
var carsRecord = JSON.parse (response);
res.send (carsRecord)
});
})
The text was updated successfully, but these errors were encountered:
Sorry for the inconvenience, I wanted to ask how I can bring 1 record only in the path localhost: 8081 / queryCalls that is, to be able to show in json the first record only
On the server in app.js is this GET route but I do not get an idea in chrome or postman how to consume only the first record
app.get ('/ queryAllCars', (req, res) => {
network.queryAllCars ()
.then ((response) => {
var carsRecord = JSON.parse (response);
res.send (carsRecord)
});
})
The text was updated successfully, but these errors were encountered: