Index: trunk/extensions/Distribution/api/ApiQueryExtensions.php |
— | — | @@ -50,6 +50,14 @@ |
51 | 51 | */ |
52 | 52 | public function getAllowedParams() { |
53 | 53 | return array ( |
| 54 | + 'limit' => array( |
| 55 | + ApiBase :: PARAM_DFLT => 10, |
| 56 | + ApiBase :: PARAM_TYPE => 'limit', |
| 57 | + ApiBase :: PARAM_MIN => 1, |
| 58 | + ApiBase :: PARAM_MAX => ApiBase :: LIMIT_BIG1, |
| 59 | + ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_BIG2 |
| 60 | + ), |
| 61 | + 'continue' => null, |
54 | 62 | ); |
55 | 63 | } |
56 | 64 | |
— | — | @@ -60,6 +68,8 @@ |
61 | 69 | */ |
62 | 70 | public function getParamDescription() { |
63 | 71 | return array ( |
| 72 | + 'continue' => 'Number of the first story to return', |
| 73 | + 'limit' => 'Amount of stories to return', |
64 | 74 | ); |
65 | 75 | } |
66 | 76 | |
— | — | @@ -69,7 +79,7 @@ |
70 | 80 | * @since 0.1 |
71 | 81 | */ |
72 | 82 | public function getDescription() { |
73 | | - return ''; |
| 83 | + return 'Provides release information about MediaWiki extensions and packages.'; |
74 | 84 | } |
75 | 85 | |
76 | 86 | /** |
— | — | @@ -89,6 +99,8 @@ |
90 | 100 | */ |
91 | 101 | protected function getExamples() { |
92 | 102 | return array ( |
| 103 | + 'api.php?action=query&list=extensions', |
| 104 | + 'api.php?action=query&list=extensions&dstlimit=42', |
93 | 105 | ); |
94 | 106 | } |
95 | 107 | |