diff --git a/typo3/sysext/core/Documentation/Changelog/10.4.x/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst b/typo3/sysext/core/Documentation/Changelog/10.4.x/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst new file mode 100644 index 0000000000000000000000000000000000000000..af0d32a5c477778a59f394103f3eaf5cc352f8a1 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/10.4.x/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst @@ -0,0 +1,19 @@ +.. include:: ../../Includes.txt + +=============================================================================== +Important: #92020 - New API entry point available at https://get.typo3.org/api/ +=============================================================================== + +See :issue:`92020` + +Description +=========== + +The core version service now uses the new entry point of the REST API +available via https://get.typo3.org/api. + +The old entry point is still available but should not be longer used. + +For more information see `https://get.typo3.org/api/doc <https://get.typo3.org/api/doc>`_. + +.. index:: ext:install diff --git a/typo3/sysext/core/Documentation/Changelog/11.5.x/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst b/typo3/sysext/core/Documentation/Changelog/11.5.x/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst new file mode 100644 index 0000000000000000000000000000000000000000..af0d32a5c477778a59f394103f3eaf5cc352f8a1 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/11.5.x/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst @@ -0,0 +1,19 @@ +.. include:: ../../Includes.txt + +=============================================================================== +Important: #92020 - New API entry point available at https://get.typo3.org/api/ +=============================================================================== + +See :issue:`92020` + +Description +=========== + +The core version service now uses the new entry point of the REST API +available via https://get.typo3.org/api. + +The old entry point is still available but should not be longer used. + +For more information see `https://get.typo3.org/api/doc <https://get.typo3.org/api/doc>`_. + +.. index:: ext:install diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst new file mode 100644 index 0000000000000000000000000000000000000000..af0d32a5c477778a59f394103f3eaf5cc352f8a1 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/12.0/Important-92020-NewAPIEntryPointAvailableAtHttpsgettypo3orgapi.rst @@ -0,0 +1,19 @@ +.. include:: ../../Includes.txt + +=============================================================================== +Important: #92020 - New API entry point available at https://get.typo3.org/api/ +=============================================================================== + +See :issue:`92020` + +Description +=========== + +The core version service now uses the new entry point of the REST API +available via https://get.typo3.org/api. + +The old entry point is still available but should not be longer used. + +For more information see `https://get.typo3.org/api/doc <https://get.typo3.org/api/doc>`_. + +.. index:: ext:install diff --git a/typo3/sysext/install/Classes/Service/CoreVersionService.php b/typo3/sysext/install/Classes/Service/CoreVersionService.php index fe657ce5add4dcc60db6340bf0ce1e0d08b68ada..2f795fdcfc54a90b19f43df8987896e91c7ee097 100644 --- a/typo3/sysext/install/Classes/Service/CoreVersionService.php +++ b/typo3/sysext/install/Classes/Service/CoreVersionService.php @@ -35,7 +35,7 @@ class CoreVersionService * * @var string */ - protected $apiBaseUrl = 'https://get.typo3.org/v1/api/'; + protected $apiBaseUrl = 'https://get.typo3.org/api/v1/'; /** * Development git checkout versions always end with '-dev'. They are diff --git a/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php b/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php index e1d7deaf5d8fec7f9bf829e8398139fb6c8d486c..ad5802af8dd9c3b07c562d3f3553491660d2d5f1 100644 --- a/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php +++ b/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php @@ -44,7 +44,7 @@ class CoreVersionServiceTest extends UnitTestCase { $response = new JsonResponse($responseData); $requestFactory = $this->prophesize(RequestFactory::class); - $requestFactory->request('https://get.typo3.org/v1/api/' . $url, Argument::cetera())->willReturn($response); + $requestFactory->request('https://get.typo3.org/api/v1/' . $url, Argument::cetera())->willReturn($response); GeneralUtility::addInstance(RequestFactory::class, $requestFactory->reveal()); }