GET /comments
Retrieves comments for a specific artist based on the query parameter artist.
Endpoint URL
http://127.0.0.1:8080/comments?artist=artistNameQuery Parameters
Name
Type
Description
Example code
async function makeComment (artistName) {
try {
const response = await fetch(`http://127.0.0.1:8080/comments?artist=${artistName}`);
const comments = await response.json();
// Proceed with using the comments held in comments
} catch (error) {
alert(error);
}
};Example Response
Response Code
Response Fields
Name
Type
Description
Last updated