Mholloway has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/389545 )

Change subject: Add summary 2.0 common titles object to swagger spec
......................................................................

Add summary 2.0 common titles object to swagger spec

Bug: T164291
Change-Id: I5deaf4d2cae818b1084600e161d8b8c38707a4e5
---
M spec.yaml
1 file changed, 35 insertions(+), 1 deletion(-)


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

diff --git a/spec.yaml b/spec.yaml
index 766154a..44e08c4 100644
--- a/spec.yaml
+++ b/spec.yaml
@@ -666,6 +666,12 @@
               type: standard
               title: /.+/
               displaytitle: /.+/
+              titles:
+                title: /.+/
+                normalized_title: /.+/
+                display_title: /.+/
+                namespace_id: /.+/
+                namespace_name: /.*/
               pageid: /.+/
               thumbnail:
                 source: /.+/
@@ -836,6 +842,8 @@
       displaytitle:
         type: string
         description: The page title how it should be shown to the user
+      titles:
+        $ref: '#/definitions/titles_set'
       pageid:
         type: integer
         description: The page ID
@@ -1161,7 +1169,7 @@
         description: The URL to navigate to when the button is pressed
     required:
       - title
-      - url
+      - urls
 
   empty:
     type: object
@@ -1173,3 +1181,29 @@
         type: array
         description: Buffer contents
     additionalProperties: false
+
+  titles_set:
+    type: object
+    properties:
+      title:
+        type: string
+        description: the DB key (non-prefixed)
+      normalized_title:
+        type: string
+        description: the normalized title 
(https://www.mediawiki.org/wiki/API:Query#Title_normalization)
+      display_title:
+        type: string
+        description: the title as it should be displayed to the user
+      namespace_id:
+        type: integer
+        description: MediaWiki's numeric ID for the page's namespace 
(https://www.mediawiki.org/wiki/Manual:Namespace)
+      namespace_name:
+        type: string
+        description: text name for the MediaWiki namespace
+    required:
+      - title
+      - normalized_title
+      - display_title
+      - namespace_id
+      - namespace_name
+    additionalProperties: false

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5deaf4d2cae818b1084600e161d8b8c38707a4e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to