SpringImport\Swagger\Magento2\Client\BundleProductOptionRepositoryV1Api

May 18, 2017 ยท View on GitHub

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

MethodHTTP requestDescription
bundleProductOptionRepositoryV1DeleteByIdDeleteDELETE /V1/bundle-products/{sku}/options/{optionId}
bundleProductOptionRepositoryV1GetGetGET /V1/bundle-products/{sku}/options/{optionId}
bundleProductOptionRepositoryV1GetListGetGET /V1/bundle-products/{sku}/options/all

bundleProductOptionRepositoryV1DeleteByIdDelete

bool bundleProductOptionRepositoryV1DeleteByIdDelete(sku,sku, optionId)

Remove bundle option

Example

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

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\BundleProductOptionRepositoryV1Api();
$sku = "sku_example"; // string | 
$optionId = 56; // int | 

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

Parameters

NameTypeDescriptionNotes
skustring
optionIdint

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]

bundleProductOptionRepositoryV1GetGet

\SpringImport\Swagger\Magento2\Client\Model\BundleDataOptionInterface bundleProductOptionRepositoryV1GetGet(sku,sku, optionId)

Get option for bundle product

Example

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

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\BundleProductOptionRepositoryV1Api();
$sku = "sku_example"; // string | 
$optionId = 56; // int | 

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

Parameters

NameTypeDescriptionNotes
skustring
optionIdint

Return type

\SpringImport\Swagger\Magento2\Client\Model\BundleDataOptionInterface

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]

bundleProductOptionRepositoryV1GetListGet

\SpringImport\Swagger\Magento2\Client\Model\BundleDataOptionInterface[] bundleProductOptionRepositoryV1GetListGet($sku)

Get all options for bundle product

Example

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

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

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

Parameters

NameTypeDescriptionNotes
skustring

Return type

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

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]