[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Atom Intospection Proposal
This is basically just taking all of the ideas that we've talked about
recently regarding Introspection and making a concrete proposal out of
them.
This is designed as a feature similar to the current blogger.getUsersBlogs.
It doesn't compete with link tags in a feed, it complements those links for when
a blog author doesn't have auto-discovery tags in his blog or have a feed.
For Blogger, I was thinking that a Blog's posting endpoint would be at:
/atom/${blogid}
and a Post's editing endpoint would be at:
/atom/${blogid}/${postid}
To get a list of the blog's posting endpoints, you'd issue the following
request and supply the appropriate users's credentials.
GET /atom HTTP/1.0
Host: www.blogger.com
X-WSSE: my credentials
200 OK
Content-Type: application/x.atom+xml
Content-Length: ...
<feed>
<link href="http://new.blogger.com/atom/stevej/3267908"
rel="service.post" title="Forwarding Address: OS X"
type="application/x.atom+xml" />
<link href="http://new.blogger.com/atom/stevej/3187374"
rel="service.post" title="saladwithsteve"
type="application/x.atom+xml" />
</feed>
I tried fitting the username into the path but it became inconsistent
when multiple
authors all use the same blog or feed to discover the endpoint. You'd
have either
/atom/${username}/${blogid} or sometimes: /atom/${blogid}. I thought that was
ugly so I just removed username entirely.
-steve