Estou realizando um teste simples para excluir publicações antigas. Comecei do basico ajax, porem ele retorna [RESTEASY003065: Cannot consume content type] Eis o script:
var _data = {postId: 1148};
$.ajax({
url: "/api/public/social/post/remove/",
async:false,
dataType : 'application/json',
method: "POST",
data:_data
}).done(function( data ) {
console.log(data);
});
outra tentativa:
$.ajax({
url: "/api/public/social/post/remove/1148",
async:false,
dataType : 'application/json',
method: "POST",
}).done(function( data ) {
console.log(data)
});
e o erro [RESTEASY003210: Could not find resource for full path: /api/public/social/post/remove/1148]