Created
March 20, 2019 15:40
-
-
Save KalobTaulien/9cff04417209e074b2b1f927af581ac4 to your computer and use it in GitHub Desktop.
Testing your Wagtail V2 API with JavaScript
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('http://localhost:8000/api/v2/pages/') | |
.then(res => res.json()) | |
.then(response => console.log(response)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the JavaScript used in this video to check the Wagtail V2 API response from our website local website.