Rest API not working properly

Hi all,

All of sudden APIs are not working properly? API which were working until yesterday are returning wrong response.

frappe.call({
    url: "/api/resource/Item/",
    type: "post",
    args: {
      data: item_creation
    },
    callback: function(r) {
      console.log(JSON.stringify(r));
    }
});

This API is not creating items and is showing random item list in response.

I have checked. POST api is not creating items instead result GET Results.

Any logical explanation ?

It resolved when I change url from “/api/resource/Item/” to “/api/resource/Item”

This is strange, same url was working since a year and it suddenly stopped working.

P.S I have niether updated bench,frappe nor erpnext.