Skip to topic | Skip to bottom
Powered by TWiki
You are here: TWiki > TWiki Web > TWikiUIRestDotPm r1 - 06 Nov 2005 - 13:56 - TWikiContributor


Start of topic | Skip to actions

Package TWiki::UI::Rest

Rest delegate for view function

StaticMethod gateway ($session,$pluginName,$,methodName,$scriptUrl,$query)

rest command handler. This method is designed to be invoked via the TWiki::UI::run method, and will invoke a method in a plugin.

It'll print the result directly to the stream unless the endPoint parameter is specified (via que $query object), in which case the control is redirected to the given topic.

Additional parameters can be queries using the $query object.

Invocation Examples:

http://my.host/bin/rest/EmptyPlugin/testRest

Will invoke TWiki::Plugin::EmptyPlugin::testRest, and print the result directly to the stream.

http://my.host/bin/rest/EmptyPlugin/testRest?endPoint=SomeWeb.SomeTopic

Will invoke TWiki::Plugin::EmptyPlugin::testRest, and redirect the control to SomeWeb.SomeTopic

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback