aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/swagger-ui
Commit message (Collapse)AuthorAgeFilesLines
* Commit swagger-ui's NOTICEKunal Mehta2025-01-151-0/+2
| | | | | | | | | | | It contains the copyright statement that accompanies the LICENSE. This doesn't not address the concerns in T382086, which is that swagger-ui bundles other projects without retaining their copyright statements, but gets us one step closer by including at least some information. Change-Id: I11e80abee385576e7e0350bd5d7a43758d2b2e92
* Add Special:RestSandbox for exploring REST APIdaniel2024-06-138-0/+312
Special:RestSandbox presents a Swagger-UI interface for exploring REST APIs. The available APIs can be configured using RestSandboxSpecs. For now, the default is to support no APIs, so the feature is disabled in production. In the future, it would make sense to expose the wiki's own REST API per default. The corresponding entry in $wgRestSandboxSpecs in LocalSettings.php would look like this: 'mw' => [ 'url' => $wgScriptPath . '/rest.php/', 'name' => 'MediaWiki REST API', ] Note that the spec URL may still change. To also explore the endpoints exposed through RESTbase, we might add: 'wmf-restbase' => [ 'url' => $wgServer . '/api/rest_v1/', 'name' => 'Wikimedia RESTbase API', ] Similarly, we could expose a spec for endpoints on api.wikimedia.org, which could then be explored using the new special page. NOTE: This adds a dependency on the swagger-ui npm library. See T325558 for the security review. Bug: T362006 Change-Id: I1dd5ed82680a28f9c15136b446a2de0398525061