Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

/api/reports/:id/comments

Posts a comment to the report with the specified ID.

Resource Information

Request Parameters

Parameters

Detail

Example

id

ID of the report for which to post a comment. You can find the ID in the response to /api/reports.

123

text

Text of the comment to post.

This is a comment.

Sample Request / Response

Using curl:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "text=This is a comment." https://service.belladati.com/api/reports/123/comments

When the comment has been posted successfully, the response has the HTTP status code 200 and the content comment ID.

Sv translation
languageja

/api/reports/:id/comments

指定されたIDを持つレポートにコメントを投稿します。

リソース情報

リクエストパラメータ

パラメーター

詳細

id

コメントを投稿するためのレポートのID。/api/reportsに応じて、IDを見つけることができます。

123

text

投稿するためにコメントのテキスト

これはコメントです。

サンプルリクエスト/レスポンス

Curl使用:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "text=This is a comment." https://service.belladati.com/api/reports/123/comments

コメントが正常に投稿された場合、レスポンスはHTTPステータスコード200とコメントIDコンテンツを持ちます。