Atom API, XML-RPC API, etc.
■ このスレッドは過去ログ倉庫に格納されています
0010Trackback(774)
04/12/01 19:40:37ID:7H1VBPbeThe content type of the resource avaialable at the URI given in the href attribute of the link element.
Most of the link types in this specification are on type 'application/x.atom+xml'.
application/atom+xml とか application/xml、text/xml は良くないのでしょうか。
-----
Atom API が accept application/x-www-form-urlencoded の時、
API に application/x-www-form-urlencoded を宛てて、feed/entry を生成させる、って危険かな?
service.post をGETした時、
Accept: application/x-www-form-urlencoded, application/xml, application/atom+xml, application/x.atom+xml, text/xml
と
<form><input name="title"/><input name="content"/><input name="author.name"/><input name="author.email"/><input name="author.url"/></form>
をresponse 送るというのはどうでしょうか?
POSTされた時にapplication/x-www-form-urlencodedの時はform 入力として扱って、それ以外は entry として扱う感じで。
■ このスレッドは過去ログ倉庫に格納されています