Mholloway has uploaded a new change for review.

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

Change subject: Add spec examples for individual feed endpoints with 
?aggregated=true
......................................................................

Add spec examples for individual feed endpoints with ?aggregated=true

Adding these example scenarios will add them to the requests monitored
by Icinga via the service checker script.

Bug: T145223
Change-Id: I40b0fecc3f17ed95833886caa5f5c7804790ef30
---
M spec.yaml
1 file changed, 62 insertions(+), 2 deletions(-)


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

diff --git a/spec.yaml b/spec.yaml
index 3733239..c372a90 100644
--- a/spec.yaml
+++ b/spec.yaml
@@ -104,6 +104,18 @@
                 source: /.+/
                 width: /.+/
                 height: /.+/
+        - title: retrieve featured article info for unsupported site (with 
aggregated=true)
+          request:
+            params:
+              domain: "is.wikipedia.org"
+              yyyy: "2016"
+              mm: "04"
+              dd: "29"
+            query:
+              aggregated: true
+          response:
+            status: 200
+            body: ""
   # from routes/featured-image.js
   /{domain}/v1/media/image/featured/{yyyy}/{mm}/{dd}:
     get:
@@ -158,7 +170,17 @@
                 source: /.+/
                 width: /.+/
                 height: /.+/
-
+        - title: retrieve featured image data for date with no featured image 
(with aggregated=true)
+          request:
+            params:
+              yyyy: "2004"
+              mm: "04"
+              dd: "29"
+            query:
+              aggregated: true
+          response:
+            status: 200
+            body: ""
   # from routes/most-read.js
   /{domain}/v1/page/most-read/{yyyy}/{mm}/{dd}:
     get:
@@ -201,11 +223,40 @@
             headers:
               content-type: application/json
             body:
-              date: /.+/
+              date: "2016-01-01Z"
               articles:
                 - views: /.+/
                   rank: /.+/
                   title: /.+/
+        - title: retrieve the most-read articles for January 1, 2016 (with 
aggregated=true)
+          request:
+            params:
+              yyyy: "2016"
+              mm: "01"
+              dd: "01"
+            query:
+              aggregated: true
+          response:
+            status: 200
+            headers:
+              content-type: application/json
+            body:
+              date: "2015-12-31Z"
+              articles:
+                - views: /.+/
+                  rank: /.+/
+                  title: /.+/
+        - title: retrieve most-read articles for date with no data (with 
aggregated=true)
+          request:
+            params:
+              yyyy: "2015"
+              mm: "01"
+              dd: "01"
+            query:
+              aggregated: true
+          response:
+            status: 200
+            body: ""
   # from routes/random.js
   /{domain}/v1/page/random/title:
     get:
@@ -241,6 +292,15 @@
               - story: /.+/
                 links:
                   - title: /.+/
+        - title: get 'In the News' content for unsupported language (with 
aggregated=true)
+          request:
+            params:
+              domain: "is.wikipedia.org"
+            query:
+              aggregated: true
+          response:
+            status: 200
+            body: ""
   # from routes/media.js
   /{domain}/v1/page/media/{title}:
     get:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I40b0fecc3f17ed95833886caa5f5c7804790ef30
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <mhollo...@wikimedia.org>

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

Reply via email to