Extension:ShortUrlApi

Category:Unmaintained extensions#ShortUrlApi Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
ShortUrlApi
Release status: unmaintainedCategory:Unmaintained extensions
Implementation API Category:API extensions
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+Category:Extensions with manual MediaWiki version
PHP 5.3+
Database changes No
License GNU General Public License 3.0 or later
Download Category:Extensions in GitHub version control
README
Tested against Extension:ShortUrl version 1.1
Category:All extensionsCategory:Extensions not in ExtensionJson

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.

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

Category:API extensions Category:All extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions not using extension registration Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Unmaintained extensions