diff --git a/docs/scos/dev/feature-integration-guides/202307.0/glue-api/dynamic-data-api/install-the-data-exchange-api-inventory-management-feature.md b/_includes/pbc/all/install-features/202400.0/install-the-data-exchange-api-inventory-management-feature.md similarity index 84% rename from docs/scos/dev/feature-integration-guides/202307.0/glue-api/dynamic-data-api/install-the-data-exchange-api-inventory-management-feature.md rename to _includes/pbc/all/install-features/202400.0/install-the-data-exchange-api-inventory-management-feature.md index 3a2fa5378e6..5d69da93b91 100644 --- a/docs/scos/dev/feature-integration-guides/202307.0/glue-api/dynamic-data-api/install-the-data-exchange-api-inventory-management-feature.md +++ b/_includes/pbc/all/install-features/202400.0/install-the-data-exchange-api-inventory-management-feature.md @@ -1,10 +1,3 @@ ---- -title: Data Exchange API + Inventory Management feature integration -description: Install the Data Exchange API + Inventory Management features in your project. -last_updated: Sep 06, 2023 -template: feature-integration-guide-template ---- - This document describes how to integrate the Data Exchange API + Inventory Management feature into a Spryker project. ## Install feature core @@ -66,7 +59,7 @@ class DynamicEntityDependencyProvider extends SprykerDynamicEntityDependencyProv {% info_block warningBox "Verification" %} -Let's say you want to have a new endpoint `/dynamic-data/stock-products` to operate with data in `spy_stock_product` table in database. +Let's say you want to have a new endpoint `/dynamic-data/stock-products` to operate with data in `spy_stock_product` table in the database. Based on the provided information, the SQL transaction for interacting with the `spy_stock_product` table through the API request via `dynamic-entity/stock-products` would be as follows: @@ -76,10 +69,11 @@ INSERT INTO `spy_dynamic_entity_configuration` VALUES (1,'stock-products','spy_s COMMIT; ``` -To obtain an access token follow [How to send a request in Data Exchange API](/docs/scos/dev/glue-api-guides/{{page.version}}/dynamic-data-api/how-to-guides/how-to-send-request-in-data-exchange-api.html) +Do the following: + +1. Obtain an access token. Follow [How to send a request in Data Exchange API](/docs/scos/dev/glue-api-guides/{{page.version}}/data-exchange-api/how-to-guides/how-to-send-request-in-data-exchange-api.html) for details on how to do that. -### Sending a `PATCH` request -This request needs to include the necessary headers, such as Content-Type, Accept, and Authorization, with the access token provided. +2. Send a `PATCH` request. This request needs to include the necessary headers, such as Content-Type, Accept, and Authorization, with the access token provided: ```bash PATCH /dynamic-entity/stock-products HTTP/1.1 @@ -98,9 +92,9 @@ Content-Length: 174 } ``` -Make sure that after updating stock data - product availability is updated as well: +3. Make sure that after updating the stock data, the product availability is updated as well: ```sql SELECT * from spy_availability WHERE sku='PRODUCT_SKU'; ``` -{% endinfo_block %} +{% endinfo_block %} \ No newline at end of file diff --git a/docs/scos/dev/feature-integration-guides/202307.0/glue-api/data-exchange-api/install-the-data-exchange-api-inventory-management-feature.md b/docs/scos/dev/feature-integration-guides/202307.0/glue-api/data-exchange-api/install-the-data-exchange-api-inventory-management-feature.md new file mode 100644 index 00000000000..864defd3cf7 --- /dev/null +++ b/docs/scos/dev/feature-integration-guides/202307.0/glue-api/data-exchange-api/install-the-data-exchange-api-inventory-management-feature.md @@ -0,0 +1,8 @@ +--- +title: Data Exchange API + Inventory Management feature integration +description: Install the Data Exchange API + Inventory Management features in your project. +last_updated: Sep 06, 2023 +template: feature-integration-guide-template +--- + +{% include pbc/all/install-features/202400.0/install-the-data-exchange-api-inventory-management-feature.md %} \ No newline at end of file