Class Mage_Api2_Model_Server
API2 Server
Package: Mage\Api2
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Api2/Model/Server.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Api2/Model/Server.php
public
|
|
public
|
#
internalCall(
Make internal call to api |
protected
|
|
protected
|
|
protected
|
|
protected
|
#
_route(
Set all routes of the given api type to Route object Find route that match current URL, set parameters of the route to Request object |
protected
|
#
_allow(
Global ACL processing |
protected
|
#
_dispatch(
Load class file, instantiate resource class, set parameters to the instance, run resource internal dispatch method |
protected
|
|
protected
|
#
_renderException(
Process thrown exception Generate and set HTTP response code, error message to Response object |
public static
array
|
string |
API_TYPE_REST
|
'rest' |
#
Api2 REST type |
integer |
HTTP_OK
|
200 |
#
HTTP Response Codes |
integer |
HTTP_CREATED
|
201 |
|
integer |
HTTP_MULTI_STATUS
|
207 |
|
integer |
HTTP_BAD_REQUEST
|
400 |
|
integer |
HTTP_UNAUTHORIZED
|
401 |
|
integer |
HTTP_FORBIDDEN
|
403 |
|
integer |
HTTP_NOT_FOUND
|
404 |
|
integer |
HTTP_METHOD_NOT_ALLOWED
|
405 |
|
integer |
HTTP_NOT_ACCEPTABLE
|
406 |
|
integer |
HTTP_INTERNAL_ERROR
|
500 |
protected static
array
|
$_apiTypes | array(self::API_TYPE_REST) |
#
List of api types |
protected
|
$_authUser |
|