Kaynağa Gözat

#1062: bumped the version number of the REST/JSON API to 1.3 to be aligned with the documentation !

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3628 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 10 yıl önce
ebeveyn
işleme
dd35b94e5a
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 5 2
      core/restservices.class.inc.php

+ 5 - 2
core/restservices.class.inc.php

@@ -1,5 +1,5 @@
 <?php
-// Copyright (C) 2013 Combodo SARL
+// Copyright (C) 2013-2015 Combodo SARL
 //
 //   This file is part of iTop.
 //
@@ -257,10 +257,13 @@ class CoreServices implements iRestServiceProvider
 	 */
 	public function ListOperations($sVersion)
 	{
+		// 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.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
 		//
 		$aOps = array();
-		if (in_array($sVersion, array('1.0', '1.1'))) 
+		if (in_array($sVersion, array('1.0', '1.1', '1.2', '1.3'))) 
 		{
 			$aOps[] = array(
 				'verb' => 'core/create',