I've moved development to the master branch. Not much happening on the dev branch anymore.
I've made some changes to the structure of the JSON output. Now in addition to the page content it also provides the data needed for the gallery feature. That second object is called media[3], and has two arrays: videos and images[2]. This saves multiple[1] separate requests to the server and would allow that data to be available for offline usage when the page is saved.
In the future, we should also add the info needed for the Read more/Read next section, preferably once we've settled on which way we want it in the apps. That would save another request to the server, and again would make offline usage more consistent with online usage.
Next step is to see how we can get this deployed to the experimental RESTBase stack.
Cheers,
- Bernd
[1] 1 request for gallery collection + 1 per gallery item
[2] in the future there might be also audio
[3] Example media snippet:
[...]
"media": {"videos": [{"url": "http://upload.wikimedia.org/wikipedia/commons/transcoded/4/45/Play_fight_between_cats.webmhd.webm/Play_fight_between_cats.webmhd.webm.480p.webm","width": 1077,"height": 606,"license": {"name": "cc-by-sa-3.0","url": "http://creativecommons.org/licenses/by-sa/3.0"}}],"images": [{"url": "http://upload.wikimedia.org/wikipedia/commons/a/ae/AfricanWildCat.jpg","width": 2272,"height": 1704,"license": {"name": "cc-by-sa-3.0","url": "http://creativecommons.org/licenses/by-sa/3.0/"}},[...]