Knowledge Base: Data API: Comments

Comments

Please make sure you read the introduction to the data API first.

Attributes

  • id (Integer, read-only)
  • user_id (User ID of comment author)
  • body (Text)
  • created_at (Datetime, read-only)

If release_id is submitted the version number of that release is displayed next to the comment.

Request Root

http://freshmeat.net/projects/#{permalink}/comments

List comments

GET /projects/#{permalink}/comments.json

Response:

[
  {
    "comment": {
      "id": 123456,
      "user_id": 789012,
      "created_at": "2008-07-06T15:38:56Z",
      "title": "Comment Title",
      "body": "Comment Body"
    }
  }
]

Add comment

POST /projects/#{permalink}/comments.json

Request:

{
  "auth_code": "XXX",
  "comment": {
    "body": "Exciting Project!"
  }
}

Response:

Status: 201 Created