Changes

Jump to navigation Jump to search
2,129 bytes added ,  12:01, 16 June 2015
adds extension json example and other siprops
extensions. Again, the info available for any given extension is going to vary, so we'll report on what's available,
and likewise we will record what we can find.
 
Extensions is an array of items. An extension item will look like this:
<source lang=javascript>
{
"query": {
"extensions": [
 
{
"type": "other",
"name": "Html2Wiki",
"descriptionmsg": "html2wiki-desc",
"author": "Greg Rundlett",
"url": "https://www.mediawiki.org/wiki/Extension:Html2Wiki",
"version": "2015.02",
"vcs-system": "git",
"vcs-version": "c24896064a6a604f71f7e3253373a59d04fe19bc",
"vcs-url": false,
"vcs-date": "2015-04-28T17:41:26Z",
"license-name": "GPL-2.0+",
"license": "/wiki/Special:Version/License/Html2Wiki"
}
 
 
]
}
}
 
</source>
 
Do we timestamp in the CiviCRM database? The "profile" will change over time, and so do we care about what it used to be?
== Other Siprops ==
siprop=statistics is included in the report
<source lang="javascript">
{
"query": {
"statistics": {
"pages": 1363,
"articles": 198,
"edits": 5459,
"images": 963,
"users": 6,
"activeusers": 1,
"admins": 2,
"jobs": 3660
}
}
}
</source>
 
<code>siprop=usergroups</code> is interesting if a wiki is doing anything with groups
 
 
<code>api.php?action=query&meta=siteinfo&format=jsonfm&siprop=rightsinfo</code>
gives the copyright url and text
 
<code>api.php?action=query&meta=siteinfo&format=jsonfm&siprop=namespaces|namespacealiases</code>
gives the namespaces and aliases, which can reveal 'private' namespaces
 
<code>api.php?action=query&meta=siteinfo&format=jsonfm&siprop=fileextensions</code>
shows you the file extensions allows for file upload.
 
<code>siprop=libraries</code> is kind of interesting in that you probably didn't know you ran that in your wiki
 
<code>api.php?action=query&meta=siteinfo&format=jsonfm&siprop=showhooks</code>
is really interesting because it shows you what code is listening to what hooks.
 
<code>api.php?action=query&meta=siteinfo&format=jsonfm&siprop=extensiontags</code>
is useful as a documentation page that shows authors the additional tags usable on this wiki
== Background ==
4,558

edits

Navigation menu