Page MenuHomePhabricator

Move Minimal client REST API endpoints from coredev/v0 to v1
Open, Needs TriagePublic

Description

This is a task to make sure we release the endpoints in the Minimal Client epic to v1.

Event Timeline

Change 604441 had a related patch set uploaded (by Daniel Kinzler; owner: Daniel Kinzler):
[mediawiki/core@master] REST api: bump some endpoitns to v1

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

daniel added a subscriber: daniel.Jun 10 2020, 6:32 PM

Seems like we have two conflicting routes:

/v1/page/{title}/{html_type}
/v1/page/{title}/history

The router refuses to register them, because they are ambiguous.

Cool. Can we change "html_type" to the actual values?

Cool. Can we change "html_type" to the actual values?

Yea, I was also thinking about that. We can use the same approach to having the same code handle multiple endpoints that we have been using with the search endpoint. Needs an additional small patch.

Change 604526 had a related patch set uploaded (by Nikki Nikkhoui; owner: Nikki Nikkhoui):
[mediawiki/core@master] Hard code html type in REST /page/{html_type} route

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

Change 604526 merged by jenkins-bot:
[mediawiki/core@master] Hard code html type in REST /page/{html_type} route

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

Change 604441 merged by jenkins-bot:
[mediawiki/core@master] REST api: bump some endpoints to v1

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