I have installed dreamfactory as a docker container and it’s working.
I write a pre post_request php scritp to manage my received payload.
My problem is how to make dreamfactory works without “resource” wrapper.
I receive a payload like:
{"Time":"2018-12-21T07:49:23","BME680":{"Temperature":20.3,"Humidity":41.8,"Pressure":1021.1,"Gas":286.65}}
and not like this:
{"resource":[{"Time":"2018-12-21T07:49:23","BME680":{"Temperature":20.3,"Humidity":41.8,"Pressure":1021.1,"Gas":286.65}}]}
I receive this error:
{"error":{"code":400,"context":null,"message":"No record(s) detected in request. Please make sure record(s) are wrapped in a 'resource' tag. Example: {"resource":[{"record":1},{"record":2}]}","status_code":400}}