Introduce the Restbase Virtual REST Service class
authorMarko Obrovac <mobrovac@wikimedia.org>
Mon, 2 Mar 2015 14:35:21 +0000 (15:35 +0100)
committerMarko Obrovac <mobrovac@wikimedia.org>
Mon, 9 Mar 2015 21:05:58 +0000 (22:05 +0100)
commitb13bd0996cbd0b179d869dc25bd22c17a1633995
treef8e178bf8c7c1fdab35656f5da3668927dd08e9f
parente83bb46bf45d9206a560f39c5216faaf260633a8
Introduce the Restbase Virtual REST Service class

Restbase, the REST content API service, is to be queried instead of
Parsoid by current Parsoid users (most importantly VE). This patch
introduces the Restbase virtual REST service class and transparently
maps Parsoid calls into Restbase ones if parsoidCompat is set when
creating the service object.

Additionally, $wgVirtualRestConfig is introduced in DefaultSettings.php. This
is a first step towards global service configuration and management.

Bug: T89066
Change-Id: I4d4043e5052327bbd789331f1c05b607c45fe7cb
autoload.php
includes/DefaultSettings.php
includes/libs/virtualrest/ParsoidVirtualRESTService.php
includes/libs/virtualrest/RestbaseVirtualRESTService.php [new file with mode: 0644]