Open cbunicef opened 2 years ago
In future milestones, for flexibility in applying filters to the endpoint, we could consider using objects with properties instead like in the example below:
[ { "path": "https://www.internetofgoodthings.org/en/", "title": "Home Page", "pageType": "homepage", "parent": "/", "level": 1 }, { "path": "https://www.internetofgoodthings.org/en/sections/covid-19/", "title": "COVID 19 Resources", "pageType": "section", "parent": "https://www.internetofgoodthings.org/en/", "level": 3 } ]
But at the moment we can group the paths by Page type until further review
Currently all Page types are combined on the /sitemap/ into a single JSON object in views.py.
It would be more useful to break them down individually by Page type, as