Extension points in rest.ini
Settings of settings/rest.ini whose name says they hold handlers, classes, filters, providers or directories that an extension can add to or replace. Found by the setting's name: a heuristic. Read the setting's comment (linked) before relying on it.
An extension adds to a list in its own settings/rest.ini.append.php (active extensions' settings are read after the kernel's and before settings/override):
System PrefixFilterClass
Shipped: ezpRestDefaultRegexpPrefixFilter. The setting.
# extension/expexample/settings/rest.ini.append.php
[System]
PrefixFilterClass=ezpRestDefaultRegexpPrefixFilter # replace with your class or value
*/ ?>ApiProvider ProviderClass
Shipped: a hash of 4: auth=ezpRestAuthProvider, help=expHelpRestProvider, graphql=expGraphQLRestProvider, migration=expMigrationRestProvider. The setting.
# extension/expexample/settings/rest.ini.append.php
[ApiProvider]
ProviderClass[expexample]=expExampleProviderClas # key and value are yours
*/ ?>OutputSettings RendererClass
Shipped: a hash of 1: xhtml=ezpContentXHTMLRenderer. The setting.
# extension/expexample/settings/rest.ini.append.php
[OutputSettings]
RendererClass[expexample]=expExampleRendererClas # key and value are yours
*/ ?>RouteSettings SkipFilter
Shipped: a list of 4: ezpRestErrorController_show, ezpRestAuthController_basicAuth, ezpRestAuthController_oauthRequired, ezpRestOauthTokenController_handleRequest. The setting.
# extension/expexample/settings/rest.ini.append.php
[RouteSettings]
SkipFilter[]=expExampleSkipFilter # your class or value, added to the list
*/ ?>PreRoutingFilters Filters
Shipped: an empty list. The setting.
# extension/expexample/settings/rest.ini.append.php
[PreRoutingFilters]
Filters[]=expExampleFilter # your class or value, added to the list
*/ ?>RequestFilters Filters
Shipped: an empty list. The setting.
# extension/expexample/settings/rest.ini.append.php
[RequestFilters]
Filters[]=expExampleFilter # your class or value, added to the list
*/ ?>ResultFilters Filters
Shipped: an empty list. The setting.
# extension/expexample/settings/rest.ini.append.php
[ResultFilters]
Filters[]=expExampleFilter # your class or value, added to the list
*/ ?>ResponseFilters Filters
Shipped: an empty list. The setting.
# extension/expexample/settings/rest.ini.append.php
[ResponseFilters]
Filters[]=expExampleFilter # your class or value, added to the list
*/ ?>Related
Generated by ./console exp:help:examples from settings/rest.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.