Important

You are browsing the documentation for version 4.1 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.

General Configuration

The following general configuration options can be changed via Resources/config/oro/app.yml in any bundle or config/config.yml of your application.

 1oro_api:
 2
 3    # The prefix of REST API URLs.
 4    # The default value is "/api/".
 5    rest_api_prefix: '/api/'
 6
 7    # The regular expression pattern to which REST API URLs are matched.
 8    # The default value is "^/api/(?!(rest|doc)($|/.*))".
 9    rest_api_pattern: '^/api/(?!(rest|doc)($|/.*))'
10
11    # The default page size. It is used when the page size is not specified in a request explicitly.
12    # The default value is 10.
13    default_page_size: 10
14
15    # The maximum number of primary entities that can be retrieved by a request.
16    # The default value is -1 that means unlimited.
17    max_entities: -1
18
19    # The maximum number of related entities that can be retrieved by a request.
20    # The default value is 100.
21    max_related_entities: 100
22
23    # The maximum number of entities that can be deleted by one request.
24    # The default value is 100.
25    max_delete_entities: 100

To change the maximum number of entities that can be retrieved by a request for a specific API resource use the max_result option in Resources/config/oro/api.yml. For details see entities and actions configuration sections.

Also see How To to learn how to change the maximum number of entities that can be deleted by one request for a specific API resource.