Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 0f741cc

Browse files
committed
ENH: refs #236. Implement midas.resource.get api function
1 parent fd7c97f commit 0f741cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/api/controllers/components/ApiComponent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ function resourceGet($args)
168168
{
169169
throw new Exception('No resource for the given UUID.', MIDAS_INVALID_PARAMETER);
170170
}
171-
172-
return $resource->toArray();
171+
return array('type' => $resource->resourceType, 'id' => $resource->getKey());
173172
}
174173

175174
/**

0 commit comments

Comments
 (0)