Dimas263 / api_request_nodejs

api request read data using node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api request - get data using nodejs

api request read data using node.js for backend test and live coding

Api https://jsonmock.hackerrank.com/api/moviesdata/search/?Title=

input :

example movieTitles = "spiderman"

getMovies(movieTitles).then(result => {
    console.log("list of " + movieTitles + " movies")
    console.log(result);
    console.log("total movies : " + result.length);
});

output :

list of spiderman movies
[                                                           
  'Fighting, Flying and Driving: The Stunts of Spiderman 3',
  'Italian Spiderman',                                      
  'Spiderman',                                              
  'Spiderman 5',                                            
  'Spiderman in Cannes',                                    
  'Superman, Spiderman or Batman'                           
]                                                           
total movies : 6 

About

api request read data using node.js


Languages

Language:JavaScript 100.0%