I have a php script that do GET/POST requests via a Baas’ REST api. It was tested working for another Baas. But when I fill the script with my Backendless’ account info, I get errors:
I did a GET request via php’s
$result = file_get_contents($url, false, $ctx);
with these url and headers
url: https://api.backendless.com/v1/data/flower/
headers: application-id: xxxxxxxxxxxxxxxxxxxxxxxxxxx
secret-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
application-type: REST
and the response was:
Action not foundFor request ‘GET /v1/data/flower/’
One could make an argument that the trailing slash at the end of URL changes the meaning of the request and looks like an incomplete query. Therefore in a way one could say that other Baas do it wrong.