keikaavousi/fake-store-api

Response in not as attached in the documentation

rachnav26 opened this issue · 0 comments

For below Post method, the response is returning only one id which is id = 21.
method: "POST",
body: JSON.stringify({
title: "test product",
price: 13.5,
description: "lorem ipsum set",
image: "https://i.pravatar.cc",
category: "electronic",
}

Expected response:
/* will return
{
id:31,
title:'...',
price:'...',
category:'...',
description:'...',
image:'...'
}
*/