RESTTestでいろいろ

Rails 2.0でRESTで実際にCRUD処理をしている例がないのでやってみた。ツールは、Firefox拡張機能のRESTTest(http://www.xucia.com/#RestTest)だ。

一覧 GET http://localhost:3000/plans.xml
内容 GET http://localhost:3000/plans/1.xml
作成 POST http://localhost:3000/plans.xml 1
更新 PUT http://localhost:3000/plans.xml 1
削除 DELETE http://localhost:3000/plans/1.xml

*1

<?xml version="1.0" encoding="UTF-8"?>
<plan>
  <user-id type="integer">1</user-id>
  <title>テスト</title>
  <detail>内容だね</detail>
  <start-datetime type="datetime">2008-06-04T14:00:00+09:00</start-datetime>
  <end-datetime type="datetime">2008-06-04T18:00:00+09:00</end-datetime>
  <severity type="integer">1</severity>
</plan>

でも、なぜか時間はUTCになってしまい、9時間遅れだ。