RTyy / aiocomments

Comments Service Based on aiohttp
0 stars 0 forks source link

Make method to get the comment by ID #9

Open RTyy opened 7 years ago

RTyy commented 7 years ago

Request:

  "id": comment_id,
curl -i -X GET http://local.server.com/api/comments/{id}/

Responses:

On Success Status Code: 200

{
  "id": comment_id,
  "user_id": author_id,
  "content": comment_content,
  "create_date": comment_create_date,
  "update_date": comment_update_date,
}

On Error Status Code: 400, 403, 404

{
  "error": error_title,
  "data_errors": {
     "var_name": error_code,
     ...
  }
}
RTyy commented 7 years ago

1h