ePages 7.28.0 - DE_EPAGES/WebService/API/Resource/BaseObjectResource.pm

Package DE_EPAGES::WebService::API::Resource::BaseObjectResource

Base class for REST resources.

Functions

actionByName
class
service

actionByName

Gets the Action object with a given name object from the REST service.

Syntax
$Action = $Resource->actionByName($ActionName);
Input
$hData (ref.hash)
resource data
Return
$Action (DE_EPAGES::Permission::API::Object::Action)
action object

class

Returns the class name of objects that are represented by this resource. The value is passed to $Site->loadObject($ObjectID, $Class);

Syntax
$ClassName = $Resource->class;
Return
$ClassName (string)
class name

service

Returns the RestService object that contains the RestServiceMethod objects which implement the actual actions.

Syntax
$RestService = $Resource->service;
Return
$RestService (DE_EPAGES::WebService::API::Object::RestService)
rest service object