This is an api made by leon noel with the 100Devs team to get information on rappers using just their name.
Link to project: https://rapper-api-100devs-class39.herokuapp.com/api/rapper-name
Tech used: Express.js
Using express.js we created a route to get request, using the parameter as argument to send corresponding response back to the request point.
Added CORS to make Api usable from client side and not just server side, without hosting one can use our Api.
fetch('https://rapper-api-100devs-class39.herokuapp.com/api/rapper-name')//replace rapper-name with rapper's name
.then(response => response.json())
.then(data => console.log(data))//Do whatever you want with data;
clone repository
$ git clone https://github.com/100devs/rap-names-api
install dependencies from package.json
$ npm install https://github.com/100devs/rap-names-api
npm install <100devs>/<rap-names-api>