Simple REST API tutorial using slim framework