Quick tip if you want to test an api call; you can make an HTTP request directly from the Chrome Developer Tools:
- Open your Developer Tools(F12)
- Go to Console
- Enter the following:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch('<url>') | |
.then(res => res.json()) | |
.then(console.log) |