Не работает POST запрос
getQuestionWithoutTag(page, size, id) {
let query = '/api/question/withTags?page=' + page + '&size=' + size ;
fetch(query,{
method: 'POST',
headers: {
'Accept': 'application/json, */*',
'Content-Type': 'application/json'
},
body : [id]})
.then(function(response) {
if (!response.ok) {
let error = new Error();
error.response = response.text();
throw error;
}
return response.json();
}).catch(error => error.response.then(message => console.log(message)));
}

