Unified API for any kind of resource