Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AbstractApiV2Controller
  • AbstractImagesApiV2Controller
  • AddressesApiV2Controller
  • AttachmentsApiV2Controller
  • CategoriesApiV2Controller
  • CategoryIconsApiV2Controller
  • CategoryImagesApiV2Controller
  • CountriesApiV2Controller
  • CustomersApiV2Controller
  • DefaultApiV2Controller
  • EmailsApiV2Controller
  • HttpApiV2Controller
  • OrdersApiV2Controller
  • OrdersHistoryApiV2Controller
  • OrdersItemsApiV2Controller
  • OrdersItemsAttributesApiV2Controller
  • OrdersTotalsApiV2Controller
  • ProductImagesApiV2Controller
  • ProductsApiV2Controller
  • ProductsLinksApiV2Controller
  • ZonesApiV2Controller

Class ProductsLinksApiV2Controller

Class ProductsLinksApiV2Controller

Provides an API interface for managing the product links.

Notice: This controller is a subresource of the ProductsApiV2Controller.

AbstractApiV2Controller
Extended by HttpApiV2Controller
Extended by ProductsLinksApiV2Controller
Package: ApiV2Controllers
Category: System
Located at v2/ProductsLinksApiV2Controller.inc.php

Methods summary

protected
# __initialize( )

Initialize API Controller

Initialize API Controller

Throws

HttpApiV2Exception
public
# post( )

Api

{post} /products/:id/links Create Product Link

Apidescription

Creates a new 'product to category' record in the system.

Apigroup

Products

Apiname

CreateProductLink

Apiparamexample

{json} Request-Body { "categoryId": 1 }


Apisuccessexample

{json} Success-Response { "code": 201, "status": "success", "action": "create", "resource": "ProductLink", "productId": 1, "categoryId": 1 }


Apiversion

2.1.0
public
# put( )

Api

{put} /products/:id/links Update Product Link

Apidescription

Changes an existing 'product to category' link.

Apigroup

Products

Apiname

ChangeProductLink

Apiparamexample

{json} Request-Body { "oldCategoryId": 1, "newCategoryId": 2 }


Apisuccessexample

{json} Success-Response { "code": 200, "status": "success", "action": "update", "resource": "ProductLink", "productId": 1, "oldCategoryId": 1, "newCategoryId": 2 }


Apiversion

2.1.0
public
# delete( )

Api

{delete} /products/:id/links Delete Product Link

Apidescription

Deletes an existing 'product to category' link. If there is no categoryId property set, all the product links will be removed.


Apiexample

{curl} Delete product link for Product with ID = 1 in Category with ID = 1 curl -X DELETE --user admin@shop.de:12345 http://shop.de/api.php/v2/products/1/links


Apigroup

Products

Apiname

CreateProductLink

Apisuccessexample

{json} Success-Response { "code": 200, "status": "success", "action": "delete", "resource": "ProductLink", "productId": 1 }


Apiversion

2.1.0
public
# get( )

Api

{get} /products/:id/links Get Product Links

Apidescription

Get all 'product to category' links for associated with a specific product.

Apiexample

{curl} Get product links for product with ID = 1 curl -i --user admin@shop.de:12345 http://shop.de/api.php/v2/products/1/links


Apigroup

Products

Apiname

CreateProductLink

Apisuccessexample

{json} Success-Response [ 0, 1 ]


Apiversion

2.1.0

Methods inherited from HttpApiV2Controller

_linkResponse(), _locateResource(), _mapResponse(), _minimizeResponse(), _paginateResponse(), _searchResponse(), _setJsonValue(), _sortResponse(), _writeResponse()

Methods inherited from AbstractApiV2Controller

__construct()

Constants summary

Constants inherited from AbstractApiV2Controller

DEFAULT_CONTROLLER_NAME, DEFAULT_PAGE_ITEMS, DEFAULT_RATE_LIMIT, DEFAULT_RATE_RESET_PERIOD

Properties summary

protected ProductWriteService $productWriteService

Product write service.

Product write service.

#
protected ProductReadService $productReadService

Product read service.

Product read service.

#

Properties inherited from AbstractApiV2Controller

$api, $uri

API documentation generated by ApiGen