wiki.techinc.nl/includes/api
Tim Starling 343cbf7463 Add an API log
During incident response, it was not possible to tell what API modules
were being requested and by whom, since the action parameter is often
posted. This change logs the API parameters whether they are posted or
sent in the query string.

I did try to get the API parameters from the module, but that turns out
to be difficult. Modules create submodules (generators, page sets) as
local variables, which are created in a procedural style and destroyed
before logging is done, so there is no easy way to query them for
parameter lists after execution completes.

In ApiOptionsTest, use a real ApiMain object like all the other API test
cases, rather than a mock object. Otherwise the test fails.

Change-Id: Idc786007fe61811d1874f29b5ce4762dd97b1847
2012-09-24 21:22:09 +00:00
..
ApiBase.php Add an API log 2012-09-24 21:22:09 +00:00
ApiBlock.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiComparePages.php Added result properties to action=paraminfo 2012-06-06 19:24:59 +02:00
ApiDelete.php Remove unused variables/function values returned 2012-08-08 00:47:25 +01:00
ApiDisabled.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiEditPage.php Added explicit DB flags for Revision loading calls. 2012-08-29 20:04:30 -07:00
ApiEmailUser.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiExpandTemplates.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFeedContributions.php Use wfMessage instead of deprecated wfMsg* 2012-08-18 14:11:05 +02:00
ApiFeedWatchlist.php Use wfMessage instead of deprecated wfMsg* 2012-08-18 14:11:05 +02:00
ApiFileRevert.php unknown error 'filerevert-badversion' 2012-08-04 15:40:36 +02:00
ApiFormatBase.php (bug 34939) Handle mixed-case URL protocols in wikitext 2012-09-04 16:26:46 +02:00
ApiFormatDbg.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatDump.php
ApiFormatJson.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatPhp.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatRaw.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatTxt.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatWddx.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatXml.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiFormatYaml.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiHelp.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiImport.php Allow importing pages as subpage 2012-08-15 10:10:46 +02:00
ApiLogin.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiLogout.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiMain.php Add an API log 2012-09-24 21:22:09 +00:00
ApiMove.php add moveoverredirect to result of api move 2012-08-31 16:15:13 +02:00
ApiOpenSearch.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiOptions.php Fix possible error texts in action=options 2012-08-04 16:18:18 +02:00
ApiPageSet.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiParamInfo.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiParse.php Use Revision::isCurrent() in ApiParse. 2012-09-17 20:14:27 +02:00
ApiPatrol.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiProtect.php Add hint for pipe-separated list to action=help 2012-07-29 10:48:52 +02:00
ApiPurge.php remove 'cantpurge' from possible errors in action=purge 2012-08-04 16:26:53 +02:00
ApiQuery.php Add User to Title::userCan calls in api 2012-09-22 13:33:33 +02:00
ApiQueryAllCategories.php Allow aliased field names with separated syntax 2012-08-15 15:16:09 +02:00
ApiQueryAllImages.php Merge "prop=imageinfo&iiprop=url|thumbmime needs iiurlwidth=" 2012-07-18 01:42:33 +00:00
ApiQueryAllLinks.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryAllMessages.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryAllPages.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryAllUsers.php Merge "Follow-up I0b781c11 (2a55449): use User::getAutomaticGroups()." 2012-09-01 12:33:07 +00:00
ApiQueryBacklinks.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryBase.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryBlocks.php fix list of possible errors for list=blocks 2012-08-04 16:35:49 +02:00
ApiQueryCategories.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryCategoryInfo.php Allow aliased field names with separated syntax 2012-08-15 15:16:09 +02:00
ApiQueryCategoryMembers.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryDeletedrevs.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryDisabled.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryDuplicateFiles.php prop=duplicatefiles does not show duplicates under same name 2012-08-18 15:44:20 +02:00
ApiQueryExternalLinks.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryExtLinksUsage.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryFilearchive.php (bug 27610) Add archivename to list=filearchive 2012-07-24 15:38:54 -07:00
ApiQueryImageInfo.php (bug 35693) ApiQueryImageInfo now suppresses errors when unserializing 2012-09-23 20:52:00 +02:00
ApiQueryImages.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryInfo.php Add User to Title::userCan calls in api 2012-09-22 13:33:33 +02:00
ApiQueryIWBacklinks.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryIWLinks.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryLangBacklinks.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiQueryLangLinks.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryLinks.php Allow aliased field names with separated syntax 2012-08-15 15:16:09 +02:00
ApiQueryLogEvents.php Apparently setIndexedTagName_recursive() wasn't enough here 2012-09-12 12:57:04 -07:00
ApiQueryPageProps.php
ApiQueryProtectedTitles.php Replace deprecated wfMsg* calls with Message class calls. 2012-08-21 21:58:47 +02:00
ApiQueryQueryPage.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQueryRandom.php Added result properties to action=paraminfo 2012-06-06 19:24:59 +02:00
ApiQueryRecentChanges.php Replace deprecated wfMsg* calls with Message class calls. 2012-08-21 21:58:47 +02:00
ApiQueryRevisions.php Add User to Title::userCan calls in api 2012-09-22 13:33:33 +02:00
ApiQuerySearch.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiQuerySiteinfo.php (bug 30836) API siteinfo specialpagealiases should not return nonexistent special pages 2012-07-18 23:09:13 -04:00
ApiQueryStashImageInfo.php prop=imageinfo&iiprop=url|thumbmime needs iiurlwidth= 2012-07-13 17:25:22 +02:00
ApiQueryTags.php Merge "Allow aliased field names with separated syntax" 2012-08-15 18:01:18 +00:00
ApiQueryUserContributions.php Merge "Updated result properties in paraminfo API" 2012-07-21 09:09:02 +00:00
ApiQueryUserInfo.php Follow-up I0b781c11 (2a55449): use User::getAutomaticGroups(). 2012-08-03 21:41:44 +02:00
ApiQueryUsers.php Follow-up I0b781c11 (2a55449): use User::getAutomaticGroups(). 2012-08-03 21:41:44 +02:00
ApiQueryWatchlist.php change some rc_new to rc_type == RC_NEW 2012-08-06 00:08:35 +02:00
ApiQueryWatchlistRaw.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiResult.php escape HTML elements in docblock with double quotes 2012-07-15 22:15:45 +02:00
ApiRollback.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiRsd.php
ApiSetNotificationTimestamp.php Remove unused variables/function values returned 2012-08-08 00:47:25 +01:00
ApiTokens.php Added result properties to action=paraminfo 2012-06-06 19:24:59 +02:00
ApiUnblock.php Merge "escape HTML elements in docblock with double quotes" 2012-07-18 19:17:46 +00:00
ApiUndelete.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiUpload.php Remove unused variables/function values returned 2012-08-08 00:47:25 +01:00
ApiUserrights.php (bug 38190) Add "required" flag to some token params 2012-07-20 15:45:51 -07:00
ApiWatch.php Merge "Revert "AJAXify watchlist editor"" 2012-08-01 03:19:28 +00:00