Hi all.

Here I go again: this time it's the /rules endpoint, and I'm having a few questions on that (as usual).

1) (just a minor issue)
The RESTful docu is a bit confusing here, since it states as endpoints
<stanbol>/rule
<stanbol>/recipe
<stanbol>/refactor
<stanbol>/refactor/apply

In the apache docu it's
<stanbol>/rules/store
<stanbol>/rules/recipe
<stanbol>/rules/refactor
<stanbol>/rules/refactor/apply

2)
Also, in the RESTful docu all examples name "http://localhost:8080"; as <stanbol>. I guess this means that I have to set my stanbol home somewhere in the configuration ? ( I haven't found the right place as yet ).

3)
To find something to start with, I tried to create a recipe, which is "a container *[...]***, which identifies a set of rules that share the same business logic and interpret them as a whole." [1]
So, when stating

curl -i -X POST -d recipe="r1" -d description="A test recipe." http://<stanbol>/rules/recipe

I get as response:

HTTP/1.1 405 Method Not Allowed
Allow: GET,OPTIONS,HEAD
Content-Type: text/html; charset=iso-8859-1
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 1395
Server: Jetty(6.1.x)

Am I doing it the wrong way, or do I need the methods POST (and DELETE) to be allowed from server-side ?

Thank you,
melanie


[1] http://incubator.apache.org/stanbol/docs/trunk/rules.html

Reply via email to