You are here: FS > TWiki Web > TWikiUIRestDotPm r1 - 17 Dec 2005 - 13:33 - 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 © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding FS? Send feedback