Skip to content

Commit

Permalink
Adjusting the IG
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadoc committed Oct 9, 2023
1 parent 7b04b80 commit c7a7bf9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:

Expand All @@ -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
Expand All @@ -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 %}
Original file line number Diff line number Diff line change
@@ -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 %} <!-- To edit, see /_includes/pbc/all/install-features/202400.0/install-the-data-exchange-api-inventory-management-feature.md -->

0 comments on commit c7a7bf9

Please sign in to comment.