API/fa
مدیاویکی چندین رابط برنامهنویسی کاربردی (API) دارد.
MediaWiki offers the following web APIs:
- MediaWiki Action API (api.php) یکی از وب APIهای مدیاویکی است که امکان خواندن و نوشتن محتوای $2 را فراهم میکند.
- the MediaWiki REST API (
rest.php)
The Action API provides a much broader set of functionality, while the REST API (which is newer) has better-structured URLs and runs faster.
MediaWiki also includes the following software APIs:
- MediaWiki PHP API، که میتوان از آن برای توسعه $2 در مدیاویکی با استفاده از PHP بهره برد.
- MediaWiki JavaScript API (mw), که میتوان از آن برای توسعه اسکریپتها و ابزارکهای کاربری به منظور گسترش رابط کاربری مدیاویکی استفاده کرد.
توجه داشته باشید که هم MediaWiki Action API و هم MediaWiki JavaScript API ساختاری ماژولار دارند: هر دو توسط افزونهها قابل گسترش هستند، به همین دلیل ماژولهای API در دسترس ممکن است از یک ویکی به ویکی دیگر متفاوت باشند.[1] While the API modules built into MediaWiki Core are available in most MediaWiki wikis, built-in Action API modules can also be disabled.
Within the context of the MediaWiki website the Action API can be accessed from JavaScript via the mw.Api JavaScript API. (mw.ForeignApi for allowed cross-site requests, e.g. between WMF wikis.) For libraries to access the MediaWiki Action API from your favorite programming language, see API:Client code.
APIs for Wikimedia wikis
For information about APIs available for Wikimedia wikis, see Wikimedia APIs.
See also
Suggestions and ideas for the MediaWiki APIs are tracked on فابریکاتور:
- Phabricator tasks for the MediaWiki-Action-API
- Phabricator tasks for the MediaWiki-Core-Hooks that are part of the PHP API
- Phabricator tasks related to JavaScript in MediaWiki core or extensions
- Phabricator tasks for the MediaWiki-REST-API
Footnotes
- ↑ For extending the Action API, see API:Extensions. For information about JavaScript modules, see ResourceLoader.