/http-ways-to-fetch

Covering some ways to fetch data from a given API. In this mini-project we used the "dummy data" API from Reqres (https://reqres.in/). Made with help of @Academind.

Primary LanguageJavaScript

HTTP Requests Options

  • XMLHttpRequests (built-in JS)
  • Fetch-API (built-in JS, but not compatible with all browsers)
  • @Axios (promised-based HTTP Client for node.js and the browser)

OBS

--> Response to the GET and POST methods on environment are available with console.log(), then for seeing the response, please visit the Console tab on the Developers Tools (Ctrl + Shift + i or F12) of your preferred browser.