Skip to content

Commit

Permalink
Item2309: Add documentation showing how Rest handlers can/should set …
Browse files Browse the repository at this point in the history
…the context

git-svn-id: http://svn.foswiki.org/trunk@7193 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
AndrewJones authored and AndrewJones committed Apr 14, 2010
1 parent 858ff54 commit 5f1f76e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion EmptyPlugin/lib/Foswiki/Plugins/EmptyPlugin.pm
Expand Up @@ -836,10 +836,14 @@ Additional parameters can be recovered via the query object in the $session, for
my $query = $session->{request};
my $web = $query->{param}->{web}[0];
If your rest handler adds or replaces equivalent functionality to a standard script
provided with Foswiki, it should set the appropriate context in its switchboard entry.
A list of contexts are defined in %SYSTEMWEB%.IfStatements#Context_identifiers.
For more information, check %SYSTEMWEB%.CommandAndCGIScripts#rest
For information about handling error returns from REST handlers, see
Foswiki::Support.Faq1
Foswiki:Support.Faq1
*Since:* Foswiki::Plugins::VERSION 2.0
Expand Down

0 comments on commit 5f1f76e

Please sign in to comment.