Bertrand Delacretaz wrote:
> 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.
> 
Hmmm, might be, but the app knows.

> 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?
If I see it correctly, atom uses /foo/.

> 
> 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.
Yes, but you mentioned /foo/*.post.html as the url, which is much more
ugly than /foo/*

I think the "post" is superfluous as the method is already post and
".html" is not right as content is posted which has nothing to do with html.

Carsten
-- 
Carsten Ziegeler
[EMAIL PROTECTED]

Reply via email to