Minimal php rest api server app responses json objects (uses slim framework)