Skip to content

Instantly share code, notes, and snippets.

@KalobTaulien
Created March 20, 2019 15:40
Show Gist options
  • Save KalobTaulien/9cff04417209e074b2b1f927af581ac4 to your computer and use it in GitHub Desktop.
Save KalobTaulien/9cff04417209e074b2b1f927af581ac4 to your computer and use it in GitHub Desktop.
Testing your Wagtail V2 API with JavaScript
fetch('http://localhost:8000/api/v2/pages/')
.then(res => res.json())
.then(response => console.log(response))
@KalobTaulien
Copy link
Author

This is the JavaScript used in this video to check the Wagtail V2 API response from our website local website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment