Hi,

There must be something somewhere that I don't understand because I am
unable to link GET and POST Servlets to a resourceType.

For the POST servlet, I use this annotation :
@SlingServlet(methods = { "POST" }, resourceTypes = { "/resource/type/" },
selectors = { "create" }, extensions = { "json" })

With the following curl it works:
curl --referer http://localhost:8080 -Fsling:resourceType=/resource/type/
-F:name=name http://admin:admin@localhost
:8080/resource/type/create.json.POST.servlet

But not with:
curl --referer http://localhost:8080 -Fsling:resourceType=/resource/type/
-F:name=name http://admin:admin@localhost:8080/resource/type/create.json

For the GET servlet I use:
@SlingServlet(methods = { "GET" }, resourceTypes = { "resource/type/" },
extensions = { "json" })

And the curl :
curl http://admin:admin@localhost:8080/resource/type/name.json
returns me a JSON response with some properties but no mention of the
resource type, and it never enters the GET servlet.


Is there something I am mising?

Thank you,
Samuel.
_______________________________________________
oae-dev mailing list
oae-dev@collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to