Fix: Create resource key from object key when loading from data.api

Create resource key from object key. Previously the value "data" was being used for all objects.