Develop a JSON API that returns all structured data of a page not included in the other PCS JSON APIs (Summary, References, Gallery)
Documentation of the data to include is here:
https://docs.google.com/spreadsheets/d/1RoP3gzbd-DbthjTbfim5z-c-qgjKXJOQE5rgZH3k4d0/edit#gid=0
Some important data this will include:
- Table of Contents
- Categories
- Hatnotes
- Page issues
- Geo data
- Spoken version URL
- Protection status
The API shout return an array of image objects (with thumb and full sizes) like in other MCS APIs with the other information included.
Additionally, we should return the section that each image is contained in as well as a link to the image on that page (so it can be found)
== Example output (as of 26 Feb 2018)
http://localhost:6927/en.wikipedia.org/v1/page/metadata/Meridian_High_School_(Washington)
```
{
"revision": "823906120",
"tid": "9a7c8cfe-128d-11e8-90dd-a48f3970329f",
"hatnotes": [
{
"section": 0,
"html": "For other schools of a similar name, see <a rel=\"mw:WikiLink\" href=\"./Meridian_High_School_(disambiguation)\" title=\"Meridian High School (disambiguation)\" class=\"mw-redirect\">Meridian High School</a>."
}
],
"issues": [
{
"section": 0,
"html": "This article <b>does not <a rel=\"mw:WikiLink\" href=\"./Wikipedia:Citing_sources\" title=\"Wikipedia:Citing sources\">cite</a> any <a rel=\"mw:WikiLink\" href=\"./Wikipedia:Verifiability\" title=\"Wikipedia:Verifiability\">sources</a></b>.<span class=\"hide-when-compact\"> Please help <a rel=\"mw:ExtLink\" href=\"//en.wikipedia.org/w/index.php?title=Meridian_High_School_(Washington)&action=edit\">improve this article</a> by <a rel=\"mw:WikiLink\" href=\"./Help:Introduction_to_referencing_with_Wiki_Markup/1\" title=\"Help:Introduction to referencing with Wiki Markup/1\">adding citations to reliable sources</a>. Unsourced material may be challenged and <a rel=\"mw:WikiLink\" href=\"./Wikipedia:Verifiability#Burden_of_evidence\" title=\"Wikipedia:Verifiability\">removed</a>.</span> <small><i>(August 2011)</i></small><small class=\"hide-when-compact\"><i> (<a rel=\"mw:WikiLink\" href=\"./Help:Maintenance_template_removal\" title=\"Help:Maintenance template removal\">Learn how and when to remove this template message</a>)</i></small>"
},
{
"section": 0,
"html": "This article <b>may be in need of reorganization to comply with Wikipedia's <a rel=\"mw:WikiLink\" href=\"./Wikipedia:Manual_of_Style/Layout\" title=\"Wikipedia:Manual of Style/Layout\">layout guidelines</a></b>.<span class=\"hide-when-compact\"> Please help by <a rel=\"mw:ExtLink\" href=\"//en.wikipedia.org/w/index.php?title=Meridian_High_School_(Washington)&action=edit\">editing the article</a> to make improvements to the overall structure.</span> <small><i>(March 2008)</i></small><small class=\"hide-when-compact\"><i> (<a rel=\"mw:WikiLink\" href=\"./Help:Maintenance_template_removal\" title=\"Help:Maintenance template removal\">Learn how and when to remove this template message</a>)</i></small>"
}
],
"toc": {
"title": "Contents",
"entries": [
{
"toclevel": 1,
"tocsection": 1,
"tocnumber": "1",
"href": "Athletics",
"text": "Athletics"
},
{
"toclevel": 2,
"tocsection": 2,
"tocnumber": "1.1",
"href": "State_championships",
"text": "State championships"
},
{
"toclevel": 1,
"tocsection": 3,
"tocnumber": "2",
"href": "External_links",
"text": "External links"
}
],
"flags": {}
},
"categories": [
{
"ns": 14,
"title": "Category:All articles lacking sources",
"hidden": true
},
{
"ns": 14,
"title": "Category:Articles lacking sources from August 2011",
"hidden": true
},
{
"ns": 14,
"title": "Category:Articles with multiple maintenance issues",
"hidden": true
},
{
"ns": 14,
"title": "Category:Coordinates on Wikidata",
"hidden": true
},
{
"ns": 14,
"title": "Category:High schools in Whatcom County, Washington",
"hidden": false
},
{
"ns": 14,
"title": "Category:Public high schools in Washington (state)",
"hidden": false
},
{
"ns": 14,
"title": "Category:Wikipedia articles needing reorganization from March 2008",
"hidden": true
}
],
"coordinates": [
{
"lat": 48.85611111,
"lon": -122.49027778,
"primary": true,
"globe": "earth"
}
],
"protection": {}
}
```