Articles Comments
Get Articles Comments

Description

This will respond with the comments that a specified article has.

Request Queries

  • limit: Number
  • p: Number

The available queries above will limit the number of comments that will be displayed to the user. By default the value of this will be 10, and p stands for the page number that specifies the page at which to start.

Example Response

An example request with a limit query of 3 would be: localhost:3000/api/articles/1/comments?limit=3 and the response would be:

[
	{
		"comment_id": 89,
		"body": "Esse et expedita harum non. Voluptatibus commodi voluptatem. Minima velit suscipit numquam ea. Id vitae debitis aut incidunt odio quo quam possimus ipsum.",
		"article_id": 1,
		"author": "cooljmessy",
		"votes": 2,
		"created_at": "2020-10-24T07:08:00.000Z"
	},
	{
		"comment_id": 86,
		"body": "Et explicabo dignissimos officia dolore rerum aliquam corrupti. Culpa corporis earum et earum officia a est atque at. Quidem quo recusandae delectus autem possimus blanditiis optio. Sed culpa culpa. Exercitationem nemo aspernatur alias ut qui.",
		"article_id": 1,
		"author": "tickle122",
		"votes": 14,
		"created_at": "2020-10-04T02:03:00.000Z"
	},
	{
		"comment_id": 31,
		"body": "Sit sequi odio suscipit. Iure quisquam qui alias distinctio eos officia enim aut sit. Corrupti ut praesentium ut iste earum itaque qui. Dolores in ab rerum consequuntur. Id ab aliquid autem dolore.",
		"article_id": 1,
		"author": "weegembump",
		"votes": 11,
		"created_at": "2020-09-26T17:16:00.000Z"
	}
]