Skip to content

Dimas263/api_request_nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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