Search for question
Question

Part 1: apiRequest

First, you will implement apiRequest, a small wrapper function around fetch() that will

simplify making API requests.

Setup: Accessing the API

You will be sending requests to an API running on our server. To get started, go to our API setup

page, where you will be given a personalized API URL. This allows you to make edits to your own

database, without conflicting with others. Write this URL into js/apirequest.js, and be sure

that all requests you make to our server begin with that URL.

Fig: 1