Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminAccess
    • Collections
    • Deleters
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Managers
    • Readers
    • Writers
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • CustomerGroup
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Serializers
    • Services
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Manufacturer
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuantityUnit
    • Entities
    • Factories
    • Repositories
  • QuickEdit
    • Interfaces
    • Repositories
  • Review
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Smarty
    • plugins
  • StaticSeoUrl
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • StaticSeoUrls
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects
  • VPE
    • Entities
    • Factories
    • Repositories
  • Withdrawal
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects

Classes

  • AbstractApiV2Controller
  • AbstractImagesApiV2Controller
  • AddressesApiV2Controller
  • AddressFormatsApiV2Controller
  • AttachmentsApiV2Controller
  • CategoriesApiV2Controller
  • CategoryIconsApiV2Controller
  • CategoryImagesApiV2Controller
  • CountriesApiV2Controller
  • CustomerGroupsApiV2Controller
  • CustomersApiV2Controller
  • DefaultApiV2Controller
  • EmailsApiV2Controller
  • HttpApiV2Controller
  • ManufacturersApiV2Controller
  • OrdersApiV2Controller
  • OrdersHistoryApiV2Controller
  • OrdersItemsApiV2Controller
  • OrdersItemsAttributesApiV2Controller
  • OrderStatusesApiV2Controller
  • OrdersTotalsApiV2Controller
  • ProductImagesApiV2Controller
  • ProductReviewsApiV2Controller
  • ProductsApiV2Controller
  • ProductsLinksApiV2Controller
  • QuantityUnitsApiV2Controller
  • ReviewsApiV2Controller
  • ShopInformationApiV2Controller
  • TaxClassesApiV2Controller
  • TaxRatesApiV2Controller
  • TaxZonesApiV2Controller
  • TrackingCodeApiV2Controller
  • VpeApiV2Controller
  • WithdrawalsApiV2Controller
  • ZonesApiV2Controller

Class VpeApiV2Controller

Class VpeApiV2Controller

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

Methods summary

protected
# __initialize( )

Initialize controller components.

Initialize controller components.

public
# get( )

Api

{get} /vpe/:id Get Customers

Apidescription

Get multiple or a single vpe record through the GET method

Apierror

404-NotFound VPE record could not be found.

Apierrorexample

Error-Response (VPE Not Found) HTTP/1.1 404 Not Found { "code": 404, "status": "error", "message": "Vpe record could not be found." }


Apiexample

{curl} Get All VPE records curl -i --user admin@shop.de:12345 http://shop.de/api.php/v2/vpe


{curl} Get VPE record With ID = 982 curl -i --user admin@shop.de:12345 http://shop.de/api.php/v2/vpe/982


Apigroup

VPE

Apiname

GetVPE

Apiversion

2.5.0
public
# patch( )

Api

{patch} /vpe/:id Updates VPE

Apidescription

Use this method if you want to update an existing vpe record.

Apierror

400-BadRequest VPE data were not provided or vpe record ID was not provided or is invalid.

Apierrorexample

Error-Response (Empty request body) HTTP/1.1 400 Bad Request { "code": 400, "status": "error", "message": "VPE data were not provided." }


Error-Response (Missing or invalid ID) HTTP/1.1 400 Bad Request { "code": 400, "status": "error", "message": "VPE record ID was not provided or is invalid." }


Apigroup

VPE

Apiname

UpdateVPE

Apiparam

{Object} name Object that contains the language codes as key and the vpe name as value.

Apiparamexample

{json} VPE entity { "name": { "EN": "API Packing unit", "DE": "API Verpackungseinheit" } }


Apisuccess

(200) Request-Body If successful, this method returns the complete vpe resource in the response body.


Apisuccessexample

{json} Success-Response { "id": 4, "name": { "EN": "API Packing unit", "DE": "API Verpackungseinheit" } }


Apiversion

2.5.0
public
# delete( )

Api

{delete} /vpe/:id Delete VPE

Apidescription

Removes a vpe record from the system. This method will always return success even if the vpe does not exist (due to internal VPEWriteService architecture decisions, which strive to avoid unnecessary failures).


Apiexample

{curl} Delete VPE with ID = 84 curl -X DELETE --user admin@shop.de:12345 http://shop.de/api.php/v2/vpe/84


Apigroup

VPE

Apiname

DeleteVPE

Apisuccessexample

{json} Success-Response { "code": 200, "status": "success", "action": "delete", "vpeId": 84 }


Apiversion

2.5.0
public
# post( )

Api

{post} /vpe Create VPE

Apidescription

This method enables the creation of a new VPE into the system.

Apierror

400-BadRequest The body of the request was empty.

Apierrorexample

Error-Response HTTP/1.1 400 Bad Request { "code": 400, "status": "error", "message": "VPE data were not provided." }


Apigroup

VPE

Apiname

CreateVPE

Apiparam

{Object} name Object that contains the language codes as key and the vpe name as value.

Apiparamexample

{json} Request-Body { "name": { "EN": "API Packing unit", "DE": "API Verpackungseinheit" } }


Apisuccess

(201) Request-Body If successful, this method returns the complete vpe resource in the response body.


Apiversion

2.5.0
protected
# _saveVpe( array $vpeData, VPEInterface $vpe )

Saves the given vpe entity with the given data in the database.

Saves the given vpe entity with the given data in the database.

Parameters

$vpeData
VPE entity data to save.
$vpe
VPE entity to be saved.

Returns


$this|\VpeApiV2Controller Same instance for chained method calls.
protected array
# _serializeVpeCollection( VPECollection $vpeCollection )

Serializes a vpe collection to an array.

Serializes a vpe collection to an array.

Parameters

$vpeCollection
VPECollection to be serialized.

Returns

array
Serialized vpe collection.
protected array
# _serializeVpe( VPEInterface $vpe )

Serializes a single vpe entity to an array.

Serializes a single vpe entity to an array.

Parameters

$vpe
VPE entity to be serialized.

Returns

array
Serialized vpe entity.

Methods inherited from HttpApiV2Controller

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

Methods inherited from AbstractApiV2Controller

__construct(), _prepareResponse(), _setRateLimitHeader(), _validateRequest()

Constants summary

Constants inherited from AbstractApiV2Controller

DEFAULT_CONTROLLER_NAME, DEFAULT_PAGE_ITEMS, DEFAULT_RATE_LIMIT, DEFAULT_RATE_RESET_PERIOD

Properties summary

protected VPEReadService $readService
#
protected VPEWriteService $writeService
#

Properties inherited from AbstractApiV2Controller

$api, $uri

API documentation generated by ApiGen