You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by Apache Wiki <wi...@apache.org> on 2012/07/06 11:32:17 UTC
[Jackrabbit Wiki] Update of "Oak-over-HTTP" by JukkaZitting
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.
The "Oak-over-HTTP" page has been changed by JukkaZitting:
http://wiki.apache.org/jackrabbit/Oak-over-HTTP
Comment:
Add a page for describing how to access Oak over HTTP (WIP...)
New page:
Oak comes with an HTTP binding that allows you to access and modify content in the repository. Ultimately our goal is to expose all repository operations through this interface.
NOTE: This page is a work in progress. Feel free to contribute!
== Basic content access ==
Creating a new node:
{{{
$ curl -d foo=bar http://localhost:8080/test
}}}
Accessing an existing node:
{{{
$ curl http://localhost:8080/test
{"foo":"bar"}
}}}
== Namespace registry ==
Registering a new namespace:
{{{
$ curl -d foo=http://foo.example.com/ns http://localhost:8080/jcr:system/jcr:namespaces
}}}
Retrieving the currently registered namespaces:
{{{
$ curl http://localhost:8080/jcr:system/jcr:namespaces
{"foo":"http://foo.example.com/ns"}
}}}