mishochu Developer Từ United States Thành viên kể từ thg 3 2021 mishochu 7 thg 7 2022 20:56 The variable $data is meant to store the result of file_get_contents('php://input') but is treated like a boolean (probably because it is declared inside the conditional statement). Moving the declaration before the conditional seems to fix the problem. I've attached a patch file. Postman can now be used to alter entities. api.php.patch
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 8 thg 7 2022 00:02 Thanks I will look into this. It looks like your patch wants to do the reverse.
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 8 thg 7 2022 00:24 I'm changing it to if (!($data = file_get_contents('php://input')) || !($data = json_decode($payload, true))) { Are you having troubles with Basic Auth or is it just me?
mishochu Developer Từ United States Thành viên kể từ thg 3 2021 mishochu 8 thg 7 2022 02:35 Yeah, I got the diff backwards. Authorization has been working for me. api.php.patch