[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding search constraints to collection listing




Bill de hOra wrote:
I wish we had a rel type called "collection" for feeds, so there was an hateos way to find to a collection to post to (edit doesn't quite work for me).

If you want to post to the collection the feed came from, you can use the <app:collection href='...'> link. If you need to post to a different collection, then you'd need a link relation that describes the specific relationship between the feed (or entry) and the collection being linked to; "collection" would be too vague.

For example, a blog entry might have a "media" collection that holds its media resources and a "comments" collection that is used for commenting on the article.

See http://code.google.com/apis/gdata/elements.html#gdFeedLink.

- Brian