---+ Package =TWiki::UI::Rest=

Rest delegate for view function


%TOC%

---++ StaticMethod *gateway* <tt>($session,$pluginName,$,methodName,$scriptUrl,$query)</tt>
=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 <nop>SomeWeb.SomeTopic


