BearND has uploaded a new change for review.

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

Change subject: Rename mobile-sections-references to references
......................................................................

Rename mobile-sections-references to references

This is a companion endpoint to the `formatted` endpoint.
It's not designed to go together with the other `mobile-sections` endpoints.

Change-Id: I7f31d4559d5ec817c2288274b90b0c8c6c0c9d10
---
M routes/mobile-sections.js
M test/features/mobile-sections/pagecontent.js
2 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/36/323336/1

diff --git a/routes/mobile-sections.js b/routes/mobile-sections.js
index 18a374b..db242d3 100644
--- a/routes/mobile-sections.js
+++ b/routes/mobile-sections.js
@@ -265,10 +265,10 @@
 });
 
 /**
- * GET {domain}/v1/page/mobile-sections-references/{title}/{revision:?}
+ * GET {domain}/v1/page/references/{title}/{revision:?}
  * Gets any sections which are part of a reference sections for a given wiki 
page.
  */
-router.get('/mobile-sections-references/:title/:revision?', function (req, 
res) {
+router.get('/references/:title/:revision?', function (req, res) {
     return BBPromise.props({
         page: parsoid.pageContentPromise(app, req)
     }).then(function (response) {
diff --git a/test/features/mobile-sections/pagecontent.js 
b/test/features/mobile-sections/pagecontent.js
index 8e38209..941b8db 100644
--- a/test/features/mobile-sections/pagecontent.js
+++ b/test/features/mobile-sections/pagecontent.js
@@ -182,7 +182,7 @@
     });
 
     it('Requesting just references returns only sections with references', 
function() {
-        return preq.get({uri: server.config.uri + 
'en.wikipedia.org/v1/page/mobile-sections-references/Barack_Obama'})
+        return preq.get({uri: server.config.uri + 
'en.wikipedia.org/v1/page/references/Barack_Obama'})
             .then(function (res) {
                 assert.equal(res.status, 200);
                 assert.equal(res.body.sections.length, 4, 'Barack Obama has 4 
reference sections');

-- 
To view, visit https://gerrit.wikimedia.org/r/323336
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f31d4559d5ec817c2288274b90b0c8c6c0c9d10
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: BearND <bsitzm...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to