Page MenuHomePhabricator

Create Mobile content service endpoint for references
Closed, ResolvedPublic

Description

As an API consumer I want an API query which returns just the references of a page
e.g.
https://en.wikipedia.org/api/rest_v1/page/mobile-sections-references/San%20Francisco

Any section which has the class mw-references in it would be served by the endpoint in a sections array
If no references are available for a page the array will be empty.

Given revision id is important when determining references, we will also need to expose this and all other endpoints on a revision basis.

e.g.
https://en.wikipedia.org/api/rest_v1/revision/mobile-sections-references/<revid>

Event Timeline

bearND renamed this task from Create Mobile content service endpoint to Create Mobile content service endpoint for references.Sep 24 2016, 12:17 AM
bearND moved this task from Incoming to Backlog on the Mobile-Content-Service board.
Jdlrobson added a subscriber: bearND.

@bearND we should start a converstion around a new set of endpoints which support this use case and the breaking changes I've proposed in Gerrit.

Would you be able to help that conversation start or would you rather I just started submitting patches?

Change 313149 had a related patch set uploaded (by Jdlrobson):
Mark reference sections with isReferenceSection flag

https://gerrit.wikimedia.org/r/313149

Change 313150 had a related patch set uploaded (by Jdlrobson):
WIP: Expose references in a new endpoint

https://gerrit.wikimedia.org/r/313150

@bearND we should start a converstion around a new set of endpoints which support this use case and the breaking changes I've proposed in Gerrit.

Would you be able to help that conversation start or would you rather I just started submitting patches?

Yes, I just created task T146944 to discuss this, which could also act as another parent of this and similar tasks. We can also have a quick chat if you prefer.

This doesn't preclude you from submitting more patches/specs. They provide concrete ideas on how you'd want a new version to look like.
I would like to know from you mainly what the time frame is when you would like to consume the new version/endpoints in mobile web.

This particular one is backwards compatible, so not sure if you want to include it under "Mobile-sections 2.0"

Change 313149 merged by jenkins-bot:
Mark reference sections with isReferenceSection flag

https://gerrit.wikimedia.org/r/313149

Change 313150 merged by jenkins-bot:
Expose references in a new endpoint

https://gerrit.wikimedia.org/r/313150

bearND claimed this task.

Deployed as deploy/2016-10-17/e3d3d86