On Dec 12, 2007 5:18 PM, Carsten Ziegeler <[EMAIL PROTECTED]> wrote:

>
> ...Atom
> publishing api, they use POSTs to the collection to create new childs
> which to me looks much nicer than the above url....

Yes, but Atom knows what's a collection and what's an entry, right?

In our case we don't.

If you're posting to /foo and that node exists (nt:unstructured), how
do we know if you want to update /foor with new properties, or create
a new child node under it?

That's why MicrojaxPostServlet uses a POST to /foo/* to mean "create
new child node under /foo", and POST to /foo to mean "update /foo".
Using PUT instead would be cleaner of course, but browsers don't do
that today.

-Bertrand

Reply via email to