Skip to content

ezprestapi 1.2.6: REST API v1 and v2 in one extension

Choose a tag to compare

@se7enxweb se7enxweb released this 16 Oct 03:54
· 10 commits to main since this release

ezprestapi serves REST API v1 and v2 as one extension: one activation, one provider (ezp7xRestApiProvider) and one route table for the prefixes ezp and ezpl, one OAuth2 setup. It replaces ezprestapiprovider, which becomes a deprecated compatibility shim in its 6.0.4.

Updated

  • The XHTML output of a node read (OutputFormat=xhtml) finds its template again; through this extension's controller it answered an empty renderedOutput.
  • The name, description and README say the extension serves v1 and v2, list the routes with their versions and explain the migration from ezprestapiprovider: activate ezprestapi, remove ActiveExtensions[]=ezprestapiprovider, clear the INI cache and regenerate the extension autoloads.

Added

  • The model tests of the REST content services, moved from ezprestapiprovider.

The v1 URLs, for example /api/ezp/v1/content/node/<id>/list/offset/0/limit/20?ResponseGroups=Fields, answer with the same bodies as in 1.2.5; recorded before and after on Apache and on Velocity, byte for byte.