https://unit-2-project-api-25c1595833b2.herokuapp.com//comments route, the comments array contains three default comments/register
?api_key=<your_api_key_here> to each of your API request URLs (except for
/register)
GET /register{
"api_key": "e0eea5f0-0f8c-4b54-9fc4-ff50843766d4"
}
GET /comments[
{
"name": "Nigel",
"comment": "What a great band.",
"id": 3d3b63fa-a78d-468a-a50f-57429984dd99,
"likes": 0,
"timestamp": 1705084427000
}
]
GET /showdates[
{
"id": 968f0fd7-8e28-4091-93ad-537d5e36ec17,
"date": 1725854400000,
"place": "Ronald Lane",
"location": "San Francisco, CA"
},
{
"id": 9086b443-bb36-4e1b-8112-1cd102b23a66,
"date": 1726545600000,
"place": "Pier 3 East",
"location": "San Francisco, CA"
}
]
POST /commentscomment JSON object that was createdContent-Type: application/json
{
"name": "Nigel",
"comment": "What a great band."
}
{
"name": "Nigel",
"comment": "What a great band.",
"id": 3d3b63fa-a78d-468a-a50f-57429984dd99,
"likes": 0,
"timestamp": 1705084427000
}
Note: The following endpoints are not required to satisfy the assignment requirements:
PUT /comments/:id/like:id
:id for the id of the element you want to likecomment JSON object that you just liked{
"name": "Nigel",
"comment": "What a cool site",
"id": 3d3b63fa-a78d-468a-a50f-57429984dd99,
"likes": 1,
"timestamp": 1530744795832
}
DELETE /comments/:id:id. :id for the id of the element you want to deletecomment JSON object that you just deleted{
"name": "Nigel",
"comment": "What a cool site",
"id": 3d3b63fa-a78d-468a-a50f-57429984dd99,
"likes": 0,
"timestamp": 1530744795832
}