Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • 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 ZonesApiV2Controller

Class ZonesApiV2Controller

Provides a gateway to the CountryService which handles the shop zone resources.

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

Methods summary

public
# __initialize( )

Initialize Controller

Initialize Controller

public
# get( )

Api

{get} /zones/:id Get Zones

Apidescription

Get a single registered zone resource. This method is currently limited to only fetching a single zone and might be updated in a future version of the API.


Apierror

(Error 5xx) 501-NotImplemented If the ID is not included in the request URI then the API will return a 501 error status because it cannot return all the registered countries.


Apiexample

{curl} Get Zone With ID = 84 curl --user admin@shop.de:12345 http://shop.de/api.php/v2/zones/84


Apigroup

Zones

Apiname

GetZone

Apiparam

{int} id (required) The zone record ID to be returned.

Apisuccess

Response-Body If successful, this method will return the zone resource in JSON format.

Apiversion

2.1.0
public
# post( )

POST operation is not supported by the CountryService.

POST operation is not supported by the CountryService.

Throws

HttpApiV2Exception
public
# put( )

PUT operation is not supported by the CountryService.

PUT operation is not supported by the CountryService.

Throws

HttpApiV2Exception
public
# delete( )

DELETE operation is not supported by the CountryService.

DELETE operation is not supported by the CountryService.

Throws

HttpApiV2Exception

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 CountryServiceInterface $countryService
#
protected ZoneJsonSerializer $zoneSerializer
#

Properties inherited from AbstractApiV2Controller

$api, $uri

API documentation generated by ApiGen