From 5e7fcb9b48a920ed341f10531d29e19e5e65bb03 Mon Sep 17 00:00:00 2001 From: Alexandr Krylovskiy Date: Mon, 12 Jan 2015 14:56:11 +0100 Subject: [PATCH] ID prefix for device on GET (fixes #48) --- catalog/device/catalogapi.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catalog/device/catalogapi.go b/catalog/device/catalogapi.go index 1ad8ec4..da6f2c9 100644 --- a/catalog/device/catalogapi.go +++ b/catalog/device/catalogapi.go @@ -144,8 +144,9 @@ func (self ReadableCatalogAPI) collectionFromDevices(devices []Device, page, per } func (self ReadableCatalogAPI) paginatedDeviceFromDevice(d Device, page, perPage int) *PaginatedDevice { + dev := d.ldify(self.apiLocation) pd := &PaginatedDevice{ - &d, + &dev, make([]Resource, 0, len(d.Resources)), page, perPage,