Extension:ShortUrlApi
From Linux Web Expert
<translate> This extension is currently not actively maintained!</translate> <translate> Although it may still work, any bug reports or feature requests will more than likely be ignored.</translate> |
ShortUrlApi Release status: unmaintained |
|
---|---|
Implementation | API |
Description | Provides a client-server API for the ShortUrl extension. |
Author(s) | Daniel Norton (danortontalk) |
Latest preview version | 1.0.2 (2014-03-14) |
MediaWiki | 1.16+ |
PHP | 5.3+ |
Database changes | No |
License | GNU General Public License 3.0 or later |
Download | GitHub:
<translate> Note:</translate> README |
Tested against Extension:ShortUrl version 1.1 | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
The ShortUrlApi extension provides a client-server API for the ShortUrl extension. It adds:
- A new property to page queries (action=query&prop=shorturl), providing for each page:
- path: ShortUrl path (e.g. "/Special:ShortUrl/q45t")
- code: ShortUrl code (e.g. "q45t")
- A new query action (action=shorturl), which returns details about specified short URL codes.
- template: a string formatting template for ShortUrl paths (e.g. "/Special:ShortUrl/$1")
- an array of details for each code specified in the query
Installation
This extension requires the ShortUrl extension to be installed first.
- <translate> <tvar name=1>Select a release archive, download it</tvar> and place the file(s) in a directory called <tvar name=name>
ShortUrlApi
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
require_once "$IP/extensions/ShortUrlApi/ShortUrlApi.php";
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
API Documentation
After installation, the API documentation is available at the API endpoint of your wiki. See the help page on the API endpoint for details.
See also
Categories:
- Pages with script errors
- Pages with broken file links
- Unmaintained extensions
- Extensions without an image
- API extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in GitHub version control
- All extensions
- Extensions not in ExtensionJson
- Extensions not using extension registration