SpringImport\Swagger\Magento2\Client\QuoteCartItemRepositoryV1Api
May 18, 2017 ยท View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| quoteCartItemRepositoryV1DeleteByIdDelete | DELETE /V1/carts/{cartId}/items/{itemId} | |
| quoteCartItemRepositoryV1DeleteByIdDelete_0 | DELETE /V1/carts/mine/items/{itemId} | |
| quoteCartItemRepositoryV1GetListGet | GET /V1/carts/{cartId}/items | |
| quoteCartItemRepositoryV1GetListGet_0 | GET /V1/carts/mine/items | |
| quoteCartItemRepositoryV1SavePost | POST /V1/carts/{quoteId}/items | |
| quoteCartItemRepositoryV1SavePost_0 | POST /V1/carts/mine/items | |
| quoteCartItemRepositoryV1SavePut | PUT /V1/carts/{cartId}/items/{itemId} | |
| quoteCartItemRepositoryV1SavePut_0 | PUT /V1/carts/mine/items/{itemId} |
quoteCartItemRepositoryV1DeleteByIdDelete
bool quoteCartItemRepositoryV1DeleteByIdDelete(itemId)
Removes the specified item from the specified cart.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$cartId = 56; // int | The cart ID.
$itemId = 56; // int | The item ID of the item to be removed.
try {
$result = $api_instance->quoteCartItemRepositoryV1DeleteByIdDelete($cartId, $itemId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1DeleteByIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | The cart ID. | |
| itemId | int | The item ID of the item to be removed. |
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]
quoteCartItemRepositoryV1DeleteByIdDelete_0
bool quoteCartItemRepositoryV1DeleteByIdDelete_0($itemId)
Removes the specified item from the specified cart.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$itemId = 56; // int | The item ID of the item to be removed.
try {
$result = $api_instance->quoteCartItemRepositoryV1DeleteByIdDelete_0($itemId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1DeleteByIdDelete_0: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| itemId | int | The item ID of the item to be removed. |
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]
quoteCartItemRepositoryV1GetListGet
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface[] quoteCartItemRepositoryV1GetListGet($cartId)
Lists items that are assigned to a specified cart.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$cartId = 56; // int | The cart ID.
try {
$result = $api_instance->quoteCartItemRepositoryV1GetListGet($cartId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | The cart ID. |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface[]
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]
quoteCartItemRepositoryV1GetListGet_0
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface[] quoteCartItemRepositoryV1GetListGet_0()
Lists items that are assigned to a specified cart.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
try {
$result = $api_instance->quoteCartItemRepositoryV1GetListGet_0();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1GetListGet_0: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
This endpoint does not need any parameter.
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface[]
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]
quoteCartItemRepositoryV1SavePost
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePost(body)
Add/update the specified cart item.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$quoteId = "quoteId_example"; // string |
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body57(); // \SpringImport\Swagger\Magento2\Client\Model\Body57 |
try {
$result = $api_instance->quoteCartItemRepositoryV1SavePost($quoteId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| quoteId | string | ||
| body | \SpringImport\Swagger\Magento2\Client\Model\Body57 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface
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]
quoteCartItemRepositoryV1SavePost_0
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePost_0($body)
Add/update the specified cart item.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body59(); // \SpringImport\Swagger\Magento2\Client\Model\Body59 |
try {
$result = $api_instance->quoteCartItemRepositoryV1SavePost_0($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePost_0: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | \SpringImport\Swagger\Magento2\Client\Model\Body59 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface
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]
quoteCartItemRepositoryV1SavePut
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePut(itemId, $body)
Add/update the specified cart item.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$cartId = "cartId_example"; // string |
$itemId = "itemId_example"; // string |
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body58(); // \SpringImport\Swagger\Magento2\Client\Model\Body58 |
try {
$result = $api_instance->quoteCartItemRepositoryV1SavePut($cartId, $itemId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePut: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | string | ||
| itemId | string | ||
| body | \SpringImport\Swagger\Magento2\Client\Model\Body58 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface
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]
quoteCartItemRepositoryV1SavePut_0
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePut_0(body)
Add/update the specified cart item.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$itemId = "itemId_example"; // string |
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body60(); // \SpringImport\Swagger\Magento2\Client\Model\Body60 |
try {
$result = $api_instance->quoteCartItemRepositoryV1SavePut_0($itemId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePut_0: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| itemId | string | ||
| body | \SpringImport\Swagger\Magento2\Client\Model\Body60 | [optional] |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface
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]