プロジェクト

全般

プロフィール

Enhancement(機能追加・改善) #4420

kaoru n約4年前に更新

h3. Overview (概要)

http://houou.github.io/api.php/diary_post.html
に記載のサンプルリクエストが<pre>
$ curl http://(snip)/activity/post.json?title=(snip)
</pre>になっている

https://github.com/tejimaya/opDiaryPlugin/blob/dev-1.5.x/apps/api/config/routing.yml#L7-L11
diary/post.json は post しか受け付けないよう定義されているので、post リクエストのサンプルを記載すべき。

h3. Spec (仕様)

http://houou.github.io/api.php/diary_post.html
に記載のサンプルリクエストを<pre>
$ curl -XPOST -d 'title=タイトル&body=本文&public_flag=1&apiKey=xxxxx' http://(snip)/diary/post.json http://(snip)/diary/post.json?title=(snip)
</pre>に修正する

同様の記述がないかも調査したほうが良い。

戻る