summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/item_rest.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-27 21:40:48 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-27 21:40:48 -0800
commitec0f89f10a58c3c3751387d5c1d1efcbf940bc9a (patch)
tree2463e384b8365dee6876e610354bd7b23d8071de /modules/gallery/helpers/item_rest.php
parent4ca91bf6188a1a034ef7770308f42e7c788a1936 (diff)
Change "resource" to "entity" in REST responses. They're all
resources, but we differentiate resources as collections and entities.
Diffstat (limited to 'modules/gallery/helpers/item_rest.php')
-rw-r--r--modules/gallery/helpers/item_rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/item_rest.php b/modules/gallery/helpers/item_rest.php
index 9598b191..2236fbbb 100644
--- a/modules/gallery/helpers/item_rest.php
+++ b/modules/gallery/helpers/item_rest.php
@@ -77,7 +77,7 @@ class item_rest_Core {
return array(
"url" => $request->url,
- "resource" => $item->as_array(),
+ "entity" => $item->as_array(),
"members" => $members,
"relationships" => rest::relationships("item", $item));
}