๐ฌComments โ Docs
The comments endpoint provides 200 comments linked to posts and users, with like counts and full user info.
Base URL: https://dummyapi-backend.onrender.com/api
GET https://dummyapi-backend.onrender.com/api/comments/:id
fetch('https://dummyapi-backend.onrender.com/api/comments/:id').then(res => res.json()).then(console.log);
GET https://dummyapi-backend.onrender.com/api/comments/post/:id
fetch('https://dummyapi-backend.onrender.com/api/comments/post/:id').then(res => res.json()).then(console.log);
GET https://dummyapi-backend.onrender.com/api/comments
fetch('https://dummyapi-backend.onrender.com/api/comments', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({})}).then(res => res.json()).then(console.log);
GET https://dummyapi-backend.onrender.com/api/comments/:id
fetch('https://dummyapi-backend.onrender.com/api/comments/:id', {method: 'PUT',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({})}).then(res => res.json()).then(console.log);
GET https://dummyapi-backend.onrender.com/api/comments/:id
fetch('https://dummyapi-backend.onrender.com/api/comments/:id', {method: 'DELETE',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({})}).then(res => res.json()).then(console.log);
Get all comments.
๐GET https://dummyapi-backend.onrender.com/api/comments