Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,110 of 9,110 pages
About the help in other languages
All help pages

ezprestapiprovider: the REST provider classes (deprecated)

This page is for developers and site administrators whose installation still activates ezprestapiprovider.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/6.0/extensions/ezprestapiprovider.md

On this page

ezprestapiprovider: the REST provider classes (deprecated)

This page is for developers and site administrators whose installation still activates ezprestapiprovider.

Warning

Deprecated. REST API v1 and v2 are served by one extension, ezprestapi (1.2.6 or later). ezprestapiprovider 6.0.4 (15 October 2026) is its final release. Activate ezprestapi and remove ezprestapiprovider from ActiveExtensions; the steps are in REST API v1 and v2: one extension.

What it is now

A compatibility shim on top of ezprestapi, so that old settings and old code keep working while an installation moves:

  • ezpRestApiProvider extends ezp7xRestApiProvider, and ezpRestContentController extends ezp7xRestContentController, so they get the v1 and v2 routes and the permission checks of ezprestapi.
  • Its rest.ini maps the prefixes ezp and ezpl to ezp7xRestApiProvider, the same values ezprestapi sets, so the order in which the two are activated no longer matters.
  • It no longer ships the five classes it duplicated (ezpRestAtomController, ezpRestAtomView, ezpRestAtomDecorator, ezpRestContentModel, ezpRestApiViewController); ezprestapi ships them, and the autoload generator no longer warns about duplicate class names.
  • Its Composer package requires se7enxweb/ezprestapi ~1.2.6.

Before 6.0.4 it registered its own provider, and when its ProviderClass[ezp] won (it was listed earlier in ActiveExtensions, or active alone, as the setup wizard used to activate it), every /api/ezp/v2/... route answered 404 and the v1 reads ran without the permission checks. The activation table compares before and since.

Migration in short

  1. Keep or add ActiveExtensions[]=ezprestapi in settings/override/site.ini.append.php and remove ActiveExtensions[]=ezprestapiprovider.
  2. Clear the INI cache (php bin/php/ezcache.php --clear-tag=ini), regenerate the extension autoloads (php bin/php/ezpgenerateautoloads.php -e), reload PHP-FPM and restart Velocity.
  3. Change a rest.ini override ProviderClass[ezp]=ezpRestApiProvider to ezp7xRestApiProvider, and code that extends ezpRestContentController to extend ezp7xRestContentController. Both keep working through the shim while it is installed.

Nothing changes for OAuth clients, tokens, personal API keys or the v1 URLs.

What changed

VersionDateChange
6.0.029 January 2024Package vendor and name switched to se7enxweb; description updated.
6.0.1, 6.0.227 and 30 September 2026Version, license and website; the description names Exponential.
6.0.32 October 2026Copyright notices name 1998 - 2026 7x & Exponential Foundation first.
6.0.415 October 2026Deprecated, final release: the provider and content controller extend those of ezprestapi; rest.ini maps ezp and ezpl to ezp7xRestApiProvider; the five duplicated classes and the model tests removed (they live in ezprestapi); requires se7enxweb/ezprestapi ~1.2.6.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x