Overview
Production endpoint
https://muni-portal-backend.openup.org.za/api/wagtail/v2/pages/
Find a page by path
/pages/path/find?html_path=...path... responds with 302 to the page detail
$ curl -i localhost:8000/api/wagtail/v2/pages/find/?html_path=/services/
HTTP/1.1 302 Found
Date: Mon, 19 Oct 2020 18:06:27 GMT
Server: WSGIServer/0.2 CPython/3.8.1
Content-Type: text/html; charset=utf-8
Location: http://localhost:8000/api/wagtail/v2/pages/4/
Vary: Accept, Cookie, Origin
Allow: GET, HEAD, OPTIONS
X-Frame-Options: SAMEORIGIN
Content-Length: 0
$ curl -i localhost:8000/api/wagtail/v2/pages/find/?html_path=/my-muni/
HTTP/1.1 302 Found
Date: Mon, 19 Oct 2020 18:07:03 GMT
Server: WSGIServer/0.2 CPython/3.8.1
Content-Type: text/html; charset=utf-8
Location: http://localhost:8000/api/wagtail/v2/pages/7/
Vary: Accept, Cookie, Origin
Allow: GET, HEAD, OPTIONS
X-Frame-Options: SAMEORIGIN
Content-Length: 0
Get a specific page detail
GET https://muni-portal-backend.openup.org.za/api/wagtail/v2/pages/:id/
Path Parameters
Name
Type
Description
id
string
Find children of a page
/pages/?child_of=...pageid... responds with the pages below the given page.
Get pages matching a particular type and include the fields specific to this page type
GET http://localhost:8000/api/wagtail/v2/pages/?type=core.ServicePage&fields=*'
Query Parameters
Name
Type
Description
fields
string
type
string
Last updated
Was this helpful?