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
{{ message }}
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
A Magento 2 API Object Oriented wrapper for a Laravel application. This package also includes an optional opinionated storage system for consuming Magento 2 data in your Laravel application.
16
+
A Magento 2 API Object Oriented wrapper for a Laravel application.
This package features additional configuration options which uses the Magento 2 default settings. You are more than welcome to change any of the values as you need fit in your application:
### Product Link Types (catalogProductLinkTypeListV1)
141
154
142
-
The Magento 2 REST API Store Code By default, this is assigned to 'all' specifying all magento stores on requests. Developers may update this to specify the API around a specific store code.
143
-
```
144
-
MAGENTO_STORE_CODE='all'
145
-
```
146
-
147
-
### Magento API Version
155
+
`/V1/products/links/types`
148
156
149
-
The Magento 2 REST API Version. By default, Magento 2 sets this to 'V1'. Developers should only update this setting if the version has changed.
150
-
```
151
-
MAGENTO_API_VERSION='V1'
157
+
Retrieve information about available product link types:
158
+
```php
159
+
$magento->api('productLinkType')->types();
152
160
```
153
161
154
-
## Jobs
155
-
156
-
> In order use these queue jobs, you must have registered the migrations from the installation section noted above.
162
+
<aid="products"></a>
163
+
### Products (catalogProductRepositoryV1)
157
164
158
-
This package has many pre-built queue jobs to sync your Magento products to your Laravel application. Feel free to leverage these jobs or create your own.
> In order use these api routes, you must have registered the migrations from the installation section noted above.
179
-
180
-
This package has included routes to automatically update Magento information from the API. These can be utilized with Magento Webhooks to keep your items in sync.
181
-
182
-
> All routes are guarded by the default `API` Laravel middleware.
183
-
184
-
Fire the `SyncMagentoProduct($sku)` job to update a specified product SKU:
185
-
```
186
-
/api/laravel-magento-api/products/update/{sku}
176
+
$magento->api('products')->show($sku);
187
177
```
188
178
179
+
<aid="schema"></a>
180
+
### Schema
189
181
190
-
## Commands
191
-
192
-
> In order use these commands, you must have registered the migrations from the installation section noted above.
193
-
194
-
Launch a job to import all categories from the Magento 2 REST API:
195
-
```bash
196
-
php artisan magento:sync-categories
182
+
Get a schema blueprint of the Magento 2 REST API:
183
+
```php
184
+
$magento->api('schema')->show();
197
185
```
198
186
199
-
Launch a job to import all customers from the Magento 2 REST API:
0 commit comments