Henry Story wrote:
It seems to me it should be quite easy to be able to edit and create feeds.
1. Edit feed metadata:
Send a PUT to a Container URL with a <feed>...</feed> body.
There should be no entries in that body (or they will be ignored)
I did this in my Atom implementation in eXist. I can't say I'm 100%
happy with this because the PUT's body has to be merged with the
existing feed document. That seems a stretch for PUT.
In the case of entries, the client semantic is quite easy to explain
in that you just take the entry element, tweak it, and send it back.
In the case of a feed, you have to explain how you remove all
the entries. That is somewhat strange.
I really think this is a huge hole in the spec in that you can
fully edit entries but not feed metadata. For example, what if I
want to change the title or subtitle of the feed? Or add a category
element? Right now, there is no standard way to do it.
2. Create a feed
Sent a POST to a Container URL with a <feed>...</feed> body. I suppose
there could be entries in the feed in this case. This will create a new
container object.
What I do for eXist, which can dynamically create collections, is allow
a POST to any collection path. If there is no feed there, it creates
the collection and the feed for that collection.
While that works for me, it may not for others. I think collection
creation is somewhat out of scope for this version--at least that is
what I understand from past discussions.
--Alex Milowski