N°1449 Update REST API version for new pagination params

This commit is contained in:
Pierre Goiffon
2019-03-04 15:59:58 +01:00
parent 44f5d71e1b
commit d6a0a279a5

View File

@@ -257,13 +257,14 @@ class CoreServices implements iRestServiceProvider
*/ */
public function ListOperations($sVersion) public function ListOperations($sVersion)
{ {
// 1.4 - iTop 2.5.2, 2.6.1, 2.7.0, Verb 'core/get': added pagination parameters limit and page
// 1.3 - iTop 2.2.0, Verb 'get_related': added the options 'redundancy' and 'direction' to take into account the redundancy in the impact analysis // 1.3 - iTop 2.2.0, Verb 'get_related': added the options 'redundancy' and 'direction' to take into account the redundancy in the impact analysis
// 1.2 - was documented in the wiki but never released ! Same as 1.3 // 1.2 - was documented in the wiki but never released ! Same as 1.3
// 1.1 - In the reply, objects have a 'key' entry so that it is no more necessary to split class::key programmaticaly // 1.1 - In the reply, objects have a 'key' entry so that it is no more necessary to split class::key programmaticaly
// 1.0 - Initial implementation in iTop 2.0.1 // 1.0 - Initial implementation in iTop 2.0.1
// //
$aOps = array(); $aOps = array();
if (in_array($sVersion, array('1.0', '1.1', '1.2', '1.3'))) if (in_array($sVersion, array('1.0', '1.1', '1.2', '1.3', '1.4')))
{ {
$aOps[] = array( $aOps[] = array(
'verb' => 'core/create', 'verb' => 'core/create',