2006/3/23, Toru Marumoto <[EMAIL PROTECTED]>: > Questions: > *What can be posted to a collection? > eg. (1)If member-type is "entry", can I post an Atom Feed document? > It would be nice if I could create multiple entries with > one request.) > (2)Please define "media". Is a flash file media? What about a > java applet? > Let's change "media" to "binary" or even "file"! > > *Do I really need to supply content-type when posting media files? > There are so many file extensions out there. It's kind of difficult to > get > the right content-type. Why not let the server decide? > > *What happens if I issue GET request to a member uri which belongs > to a media > collection? Do I get Binary or an Atom entry document? > > *Multiple collections in the same workspace that has the same > entry-type allowed? > eg. Let's say, there are one entry collection and two media > collections. How do > I know which media collection to upload an image for an entry? > > *If I PUT to Member URI, status code 201 is returned. Fine.
No, within the APP, PUT is used to update an existing member, not to create a new one, so a successful PUT will return a 200 or 204. > What about the body? Does the response body always have an Atom > entry document or not? No. The response is kind of "it succeeds", not "it succeeds and here's the new resource representation". The response body could very well be an HTML document saying "Yeeh ah! You got it!", or it could be an Atom entry with basically the same content, or it may be the Atom entry representation of the resource (those two Atom representations can be distinguished by their respective atom:id), or it may be the HTML representation of the resource (provided it has one), etc. > Feature Request: > *Client Sync (query entries undated since yyyy/mm/ddThh:nn:ssZ , > or HTTP HEAD to a member uri to find out if entry is modified, etc) PaceOrderCollectionsByAppModified provided a really simple way of sync'ing but was rejected for a "YAGNI" reason (You Ain't Gonna Need It). http://intertwingly.net/wiki/pie/PaceOrderCollectionsByAppModified -- Thomas Broyer
