SpringImport\Swagger\Magento2\Client\ConfigurableProductLinkManagementV1Api

May 18, 2017 ยท View on GitHub

All URIs are relative to http://t213.vg/rest/default

MethodHTTP requestDescription
configurableProductLinkManagementV1AddChildPostPOST /V1/configurable-products/{sku}/child
configurableProductLinkManagementV1GetChildrenGetGET /V1/configurable-products/{sku}/children
configurableProductLinkManagementV1RemoveChildDeleteDELETE /V1/configurable-products/{sku}/children/{childSku}

configurableProductLinkManagementV1AddChildPost

bool configurableProductLinkManagementV1AddChildPost(sku,sku, body)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\ConfigurableProductLinkManagementV1Api();
$sku = "sku_example"; // string | 
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body108(); // \SpringImport\Swagger\Magento2\Client\Model\Body108 | 

try {
    $result = $api_instance->configurableProductLinkManagementV1AddChildPost($sku, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1AddChildPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
skustring
body\SpringImport\Swagger\Magento2\Client\Model\Body108[optional]

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

configurableProductLinkManagementV1GetChildrenGet

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface[] configurableProductLinkManagementV1GetChildrenGet($sku)

Get all children for Configurable product

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\ConfigurableProductLinkManagementV1Api();
$sku = "sku_example"; // string | 

try {
    $result = $api_instance->configurableProductLinkManagementV1GetChildrenGet($sku);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1GetChildrenGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
skustring

Return type

\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

configurableProductLinkManagementV1RemoveChildDelete

bool configurableProductLinkManagementV1RemoveChildDelete(sku,sku, childSku)

Remove configurable product option

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\ConfigurableProductLinkManagementV1Api();
$sku = "sku_example"; // string | 
$childSku = "childSku_example"; // string | 

try {
    $result = $api_instance->configurableProductLinkManagementV1RemoveChildDelete($sku, $childSku);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1RemoveChildDelete: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
skustring
childSkustring

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]