Wix Fetch Examples
Wix Velo offers the Fetch API to allow us to access resources at various endpoints.
Wix getJSON() is a module of the Wix Fetch API. We would utilise this to retrieve a JSON resource from the network.
First we query the endpoint and it returns a Promise that resolves to a JSON object representing the response to the request.
Try it out. Click the button below to get a random image of a dog. Courtesy of https://dog.ceo/dog-api/