[jboss-svn-commits] JBL Code SVN: r21637 - labs/jbossrules/trunk/drools-server/src/main/webapp.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Aug 20 04:32:32 EDT 2008


Author: michael.neale at jboss.com
Date: 2008-08-20 04:32:32 -0400 (Wed, 20 Aug 2008)
New Revision: 21637

Modified:
   labs/jbossrules/trunk/drools-server/src/main/webapp/index.jsp
Log:
JBRULES-1748 Death star is now fully operational

Modified: labs/jbossrules/trunk/drools-server/src/main/webapp/index.jsp
===================================================================
--- labs/jbossrules/trunk/drools-server/src/main/webapp/index.jsp	2008-08-20 07:44:55 UTC (rev 21636)
+++ labs/jbossrules/trunk/drools-server/src/main/webapp/index.jsp	2008-08-20 08:32:32 UTC (rev 21637)
@@ -5,25 +5,34 @@
 		<title>Drools execution server</title>
 	</head>
 	<body>
-		<h1>Rule execution server</h1>
-		This service allows you to execute rules/knowledge bases remotely using a RESTful interface.
+		<h1>Execution server is running</h1>
+		This server allows you to execute rules/knowledge bases remotely using a RESTful interface. One service per RuleAgent configuration (you can have as many as needed).
 		<h2>Stateless services</h2>
-		<h3>URL:</h3><%=request.getRequestURI() + "knowledgebase/{configurationName}" %><br/>
-		The {configurationName} is the name of a configured agent properties file (not incliding the .properties extension).
-		This configuration then declares what packages are used, where the repository is etc.
+		<h3>URL:</h3>http://{server address, port etc}<%=request.getRequestURI() + "knowledgebase/{configurationName}" %><br/>
+		a HTTP POST to this URL will perform a stateless execution of the knowledgebase/rules.
+		<p/>
+		The {configurationName} is the name of a configured rule agent properties file (not incliding the .properties extension).
+		This configuration then declares what packages are used, where the repository is etc (this can work with both Guvnor, but also DRL files, etc).
 		This properties file must be in the classpath for this war - in the WEB-INF/classes directory.
 		<h3>Sample request content:</h3>
-		<textarea>
-		</textarea>
+		<textarea rows=20 cols=80><%=KnowledgeStatelessServlet.getRequestExample(false) %></textarea>
 
 		<h3>Sample response content:</h3>
+		<textarea rows=20 cols=80><%=KnowledgeStatelessServlet.getResponseExample(false) %></textarea>
 
-		<h3>General instructions<h3>
+		<h3>General instructions</h3>
 		By default XML will be used, if you pass in a Content-Type header of application/json, then it will use JSON instead.
 		JSON is both a more compact and more performant format.
 		HTTP POST is used to access this service.
+		<p/>
+		<h3>Sample JSON request:</h3>
+		<textarea rows=10 cols=80><%=KnowledgeStatelessServlet.getRequestExample(true) %></textarea>
 
+		<h3>Sample JSON response:</h3>
+		<textarea rows=10 cols=80><%=KnowledgeStatelessServlet.getResponseExample(true) %></textarea>
 
+		</h3>
 
+
 	</body>
-</html>
\ No newline at end of file
+</html>




More information about the jboss-svn-commits mailing list