API ReferencePosts
DELETE /posts/{postId}/comments/{id}
Excluir comentário
DELETE
/posts/{postId}/comments/{id}Auth: accessTokenPode ser feito pelo autor OU pelo dono do post (moderação leve).
Request
Esta requisição não tem corpo.
Response
204
objectErros
Sem respostas de erro documentadas.
Exemplos
curl -X DELETE 'http://localhost:3003/posts/{postId}/comments/{id}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
-d '{}'await fetch('http://localhost:3003/posts/{postId}/comments/{id}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken,
},
body: JSON.stringify({}),
})