You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/api/batch-api.rst
+9-12Lines changed: 9 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Batch API
5
5
6
6
The Batch API provides a way to create or update a list of entities of the same type via one API request.
7
7
8
-
For detailed information how this API works see :ref:`update_list <update-list-action>`,
8
+
For detailed information how this API works, see the:ref:`update_list <update-list-action>`,
9
9
:ref:`batch_update <batch-update-action>` and :ref:`batch_update_item <batch-update-item-action>` actions.
10
10
11
11
.. _web-api--batch-api--enable:
@@ -15,7 +15,7 @@ Enable Batch API for Entity
15
15
16
16
By default, Batch API is disabled for all API resources. To enable it for an API resource,
17
17
the :ref:`update_list <update-list-action>` action should be enabled for this resource.
18
-
This can be done via ``actions`` section for an entity in `Resources/config/oro/api.yml`.
18
+
You can do this via ``actions`` section for an entity in `Resources/config/oro/api.yml`.
19
19
20
20
Example:
21
21
@@ -32,7 +32,7 @@ Example:
32
32
Batch API Configuration
33
33
-----------------------
34
34
35
-
All configuration options related to Batch API are grouped in ``batch_api`` section of ApiBundle configuration:
35
+
All configuration options related to Batch API are grouped in the ``batch_api`` section of ApiBundle configuration:
36
36
37
37
.. code-block:: yaml
38
38
@@ -56,9 +56,8 @@ All configuration options related to Batch API are grouped in ``batch_api`` sect
56
56
Parameters ``chunk_size_per_entity`` and ``included_data_chunk_size_per_entity`` can be used to tuning of
57
57
an API engine to have maximum performance.
58
58
59
-
To get maximum performance in requests with included entities, the value of the ``included_data_chunk_size_per_entity``
60
-
parameter can be changed to the medium number of related entities that will be set to one primary entity when processing
61
-
the request.
59
+
To get maximum performance in requests with included entities, you can change the value of the ``included_data_chunk_size_per_entity``
60
+
parameter to the medium number of related entities that will be set to one primary entity when processing the request.
62
61
63
62
.. _web-api--batch-api--async-operation-config:
64
63
@@ -89,8 +88,7 @@ The default configuration of this cron job is illustrated below:
89
88
Storage Configuration
90
89
---------------------
91
90
92
-
The |KnpGaufretteBundle| is used to configure storages for source data files of Batch API requests and
93
-
all files that are created when processing asynchronous batch operations (e.g. chunk files, error files, etc.).
91
+
The |KnpGaufretteBundle| is used to configure storages for source data files of Batch API requests and all files created when processing asynchronous batch operations (e.g., chunk files, error files, etc.).
94
92
95
93
Here is the default configuration of these storages:
96
94
@@ -117,8 +115,7 @@ Here is the default configuration of these storages:
117
115
adapter: api
118
116
alias: api_filesystem
119
117
120
-
To change the adapter configuration the `Resources/config/oro/app.yml` in any bundle or `config/config.yml`
121
-
of your application can be used.
118
+
To change the adapter configuration, use `Resources/config/oro/app.yml` in any application bundle or `config/config.yml`.
122
119
The following example shows how to reconfigure this adapter to use a local filesystem:
123
120
124
121
.. code-block:: yaml
@@ -129,8 +126,8 @@ The following example shows how to reconfigure this adapter to use a local files
129
126
local:
130
127
directory: '%kernel.project_dir%/var/api_files'
131
128
132
-
More examples can be found in |KnpGaufretteBundle documentation|.
129
+
You can find more examples in |KnpGaufretteBundle documentation|.
Copy file name to clipboardExpand all lines: backend/api/commands.rst
+15-16Lines changed: 15 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ CLI Commands
10
10
oro:api:cache:clear
11
11
-------------------
12
12
13
-
This command command clears the API cache.
13
+
This command clears the API cache.
14
14
15
-
Usually you need to run this command when you add a new entity to `Resources/config/oro/api.yml` or you add a new processor that changes a list of available via the API.
15
+
Usually, you need to run this command when you add a new entity to `Resources/config/oro/api.yml` or a new processor that changes a list of available via the API.
16
16
17
17
.. code-block:: none
18
18
@@ -29,7 +29,7 @@ The ``--no-warmup`` option can be used to skip warming up the cache after cleani
29
29
oro:api:doc:cache:clear
30
30
-----------------------
31
31
32
-
This clears or warms up API documentation cache.
32
+
This clears or warms up the API documentation cache.
33
33
34
34
If this command is launched without parameters, it warm ups all API documentation caches:
35
35
@@ -43,7 +43,7 @@ To clear the cache without then warming it up, use the ``--no-warmup`` option:
The --attribute option can be used to show the processors that will be executed only when the context has a given attribute with the specified value.
131
-
The attribute name and value should be separated by a colon, e.g.--attribute=collection:truefor a scalar value, or --attribute=extra:[definition,filters] for an array value:
130
+
You can use the ``--attribute`` option to show the processors that will be executed only when the context has a given attribute with the specified value.
131
+
Separate the attribute name and value by a colon, e.g., ``--attribute=collection:true`` for a scalar value, or ``--attribute=extra:[definition,filters]`` for an array value:
The --processors and --processors-without-description options can be used to display all processors and all processors without descriptions respectively:
143
+
Use the ``--processors` and ``--processors-without-description`` options to display all processors and all processors without descriptions, respectively:
The --request-type option can limit the scope to the specified request type(s). Omitting this option is equivalent to --request-type=rest --request-type=json_api. Available types: rest, json_api, batch, or use any to include all request types:
155
+
The ``--request-type`` option can limit the scope to the specified request type(s). Omitting this option is equivalent to ``--request-type=rest --request-type=json_api``. The available types are ``rest``, ``json_api``, ``batch``, or use ``any`` to include all request types:
156
156
157
157
.. code-block:: none
158
158
@@ -173,7 +173,7 @@ The --request-type option can limit the scope to the specified request type(s).
173
173
oro:api:config:dump
174
174
-------------------
175
175
176
-
This command shows configuration for a particular entity.
176
+
This command shows the configuration for a particular entity.
177
177
178
178
Execute this command with an entity class or entity alias specified as an argument:
179
179
@@ -193,25 +193,25 @@ To display the configuration used for a particular action, use the ``--action op
By default no extra configuration data are added into output, but they can be added with the ``--extra`` option. The value for ``extra`` option can be: actions, definition, filters, sorters, descriptions or the full name of a class implements |ConfigExtraInterface|, e.g.
202
+
No extra configuration data are added to the output by default, but you can add them with the ``--extra`` option. The value for the ``extra`` option can be: actions, definition, filters, sorters, descriptions, or the full name of a class implements |ConfigExtraInterface|, e.g.
Copy file name to clipboardExpand all lines: backend/api/configuration-extensions.rst
+8-13Lines changed: 8 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,14 @@
3
3
Configuration Extensions
4
4
========================
5
5
6
-
Configuration extensions help add:
7
-
8
-
- new options to existing configuration sections
9
-
- new configuration sections
6
+
Configuration extensions help add new options to existing configuration sections and new configuration sections.
10
7
11
8
.. _web-api--configuration-extensions-create:
12
9
13
10
Creating a Configuration Extension
14
11
----------------------------------
15
12
16
-
17
-
Each configuration extension must implement |ConfigExtensionInterface| (you can also use |AbstractConfigExtension| as a superclass). To register new configuration extension, add it to `Resources/config/oro/app.yml` in your bundle or use `config/config.yml` of your application. Here is an example:
13
+
Each configuration extension must implement |ConfigExtensionInterface| (you can also use |AbstractConfigExtension| as a superclass). To register a new configuration extension, add it to `Resources/config/oro/app.yml` in your bundle or use `config/config.yml` of your application. Here is an example:
18
14
19
15
.. code-block:: php
20
16
@@ -38,15 +34,14 @@ Each configuration extension must implement |ConfigExtensionInterface| (you can
To add options to an existing configuration section, implement the ``getConfigureCallbacks`` method of |ConfigExtensionInterface|. If you need to add logic before the normalization of during the validation of the configuration, implement the ``getPreProcessCallbacks`` and ``getPostProcessCallbacks`` methods.
42
+
To add options to an existing configuration section, implement the ``getConfigureCallbacks`` method of |ConfigExtensionInterface|. If you need to add logic before the normalization during the configuration validation, implement the ``getPreProcessCallbacks`` and ``getPostProcessCallbacks`` methods.
48
43
49
-
The following table describes existing sections for which new options can be added.
44
+
The following table describes existing sections to which you can add new options.
To add new configuration section, create a class implements |ConfigurationSectionInterface| and return instance of it in the ``getEntityConfigurationSections`` method of your configuration extension.
136
131
137
-
By default the configuration is returned as an array, but if you want to provide a class represents the configuration of your section, you can implement a configuration loader. The loader is a class that implements |ConfigLoaderInterface|. An instance of the loader should be returned by the ``getEntityConfigurationLoaders`` method of your configuration extension.
132
+
By default, the configuration is returned as an array, but if you want to provide a class that represents the configuration of your section, you can implement a configuration loader. The loader is a class that implements |ConfigLoaderInterface|. An instance of the loader should be returned by the ``getEntityConfigurationLoaders`` method of your configuration extension.
138
133
139
-
An example of simple configuration section:
134
+
An example of a simple configuration section:
140
135
141
136
.. code-block:: php
142
137
@@ -156,7 +151,7 @@ An example of simple configuration section:
156
151
}
157
152
}
158
153
159
-
An example of a configuration section that can be extended by other bundles:
154
+
An example of a configuration section that other bundles can extend:
160
155
161
156
.. code-block:: php
162
157
@@ -261,4 +256,4 @@ To check that your configuration section is added correctly, run ``php bin/conso
0 commit comments