Author: anuzzolese
Date: Wed Sep 12 14:41:45 2012
New Revision: 1383977
URL: http://svn.apache.org/viewvc?rev=1383977&view=rev
Log:
Editing documentation for Rules.
Modified:
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext
Modified:
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext
URL:
http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext?rev=1383977&r1=1383976&r2=1383977&view=diff
==============================================================================
---
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext
(original)
+++
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext
Wed Sep 12 14:41:45 2012
@@ -15,7 +15,8 @@ Rules organized into containers called r
Example:
- curl -G -X PUT description="A test recipe." \
+ :::bash
+ curl -G -X PUT -d description="A test recipe." \
http://localhost:8080/rules/recipe/recipeTestA
### How to add rules to a recipe
@@ -23,9 +24,13 @@ Example:
* Service: __/rules/recipe/__
* Method: POST
* Parameters:
- ** recipe (Path parameter): the ID of the recipe as a path parameter
(MANDATORY)
- ** rules: the rules in Stanbol syntax (MANDATORY)
- ** description: the textual description of the rules (OPTIONAL)
-
+ * recipe (Path parameter): the ID of the recipe as a path parameter
(MANDATORY)
+ * rules: the rules in Stanbol syntax (MANDATORY)
+ * description: the textual description of the rules (OPTIONAL)
-
+Example:
+
+ :::bash
+ curl -X POST ÐH "Content-type: multipart/form-data" \
+ ÐF rules=@myRuleFile -F description="My rules in the recipe" \
+ http://localhost:8080/rules/recipe/recipeTestA