X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fextension.schema.v2.json;h=c1db2b6e4a761fda987552ea6fbc669d75fd81ec;hb=dfec83932fd38a9086eb5a2e212889ad00f35b0e;hp=f29f8501b0215104dea93a640738eb1a3cac0439;hpb=d029197c7c5b083edef20fa79cc3e6d58e161f72;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/extension.schema.v2.json b/docs/extension.schema.v2.json index f29f8501b0..c1db2b6e4a 100644 --- a/docs/extension.schema.v2.json +++ b/docs/extension.schema.v2.json @@ -884,12 +884,52 @@ }, "ParserTestFiles": { "type": "array", - "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it" + "description": "DEPRECATED: Parser test suite files to be run by parserTests.php when no specific filename is passed to it" }, "ServiceWiringFiles": { "type": "array", "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices" }, + "RestRoutes": { + "type": "array", + "description": "List of route specifications to be added to the REST API", + "items": { + "type": "object", + "properties": { + "method": { + "oneOf": [ + { + "type": "string", + "description": "The HTTP method name" + }, + { + "type": "array", + "items": { + "type": "string", + "description": "An acceptable HTTP method name" + } + } + ] + }, + "path": { + "type": "string", + "description": "The path template. This should start with an initial slash, designating the root of the REST API. Path parameters are enclosed in braces, for example /endpoint/{param}." + }, + "factory": { + "type": ["string", "array"], + "description": "A factory function to be called to create the handler for this route" + }, + "class": { + "type": "string", + "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified." + }, + "args": { + "type": "array", + "description": "The arguments passed to the handler constructor or factory" + } + } + } + }, "attributes": { "description":"Registration information for other extensions", "type": "object",