REST API limitation?

Author Message

Jose Ignacio Honrado

Saturday 09 July 2011 12:13:38 pm

Hi,I've been testing the REST API and I found a problem. Why can't I do something like:

$result = eZFunctionHandler::execute('content', 'list', array('parent_node_id' => 2));

inside doFoo() function within ezxRestController class?
(based on tutorial example: http://share.ez.no/learn/ez-publish/extending-ez-publish-s-rest-api-developer-preview-2/(page)/4).

It doesn't returns anything. Is this a REST API limitation or am I doing something wrong?

Regards

 

PD: sorry, I sent the post to the incorrect forum

http://www.tantacom.com

André R.

Sunday 10 July 2011 1:03:43 pm

https://github.com/ezsystems/ezpublish/pull/72

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jose Ignacio Honrado

Sunday 10 July 2011 10:59:51 pm

"

https://github.com/ezsystems/ezpublish/pull/72

"

Thanks André!

http://www.tantacom.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 13:39:44
Script start
Timing: Jan 29 2025 13:39:44
Module start 'layout'
Timing: Jan 29 2025 13:39:44
Module start 'content'
Timing: Jan 29 2025 13:39:44
Module end 'content'
Timing: Jan 29 2025 13:39:44
Script end

Main resources:

Total runtime0.0101 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.1094151.1953
Module start 'layout' 0.00410.0016 739.304736.6250
Module start 'content' 0.00570.0033 775.929790.3438
Module end 'content' 0.00900.0010 866.273433.9766
Script end 0.0101  900.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001818.2650140.0001
Check MTime0.00099.0651140.0001
Mysql Total
Database connection0.00066.220010.0006
Mysqli_queries0.001716.756130.0006
Looping result0.00000.071010.0000
Template Total0.00088.010.0008
Template load0.00066.257810.0006
Template processing0.00021.646110.0002
Override
Cache load0.00043.987410.0004
General
dbfile0.00021.615380.0000
String conversion0.00000.061540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs