Sync test resources with models.
authorMikko Värri <vmj@linuxbox.fi>
Mon, 15 Aug 2011 00:10:19 +0000 (03:10 +0300)
committerMikko Värri <vmj@linuxbox.fi>
Mon, 15 Aug 2011 00:10:19 +0000 (03:10 +0300)
recycloid_api/tests/Item.json
recycloid_api/tests/Item.xml
recycloid_api/tests/Owner.json
recycloid_api/tests/Owner.xml
recycloid_api/tests/Stash.json
recycloid_api/tests/Stash.xml

index 7f4c05c..8853a06 100644 (file)
@@ -1,11 +1,11 @@
 { "item":
   { "@uuid": "12345678-1234-1234-1234-123456789012",
     "@stash": "12345678-1234-1234-1234-123456789012",
+    "thumbnail": "https://api.recycloid.org/",
     "title": "Something about me.",
     "description": "Something about me.",
-    "image": "https://api.recycloid.org/",
+    "created": "01012010T01:01:01Z",
     "expires": "01012010T01:01:01Z",
-    "modified": "01012010T01:01:01Z",
-    "created": "01012010T01:01:01Z"
+    "modified": "01012010T01:01:01Z"
   }
 }
index 148cfa1..0d4ac7a 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <item uuid="12345678-1234-1234-1234-123456789012" stash="12345678-1234-1234-1234-123456789012">
+  <thumbnail>https://api.recycloid.org/</thumbnail>
   <title>Something about me.</title>
   <description>Something about me.</description>
-  <image>https://api.recycloid.org/</image>
+  <created>01012010T01:01:01Z</created>
   <expires>01012010T01:01:01Z</expires>
   <modified>01012010T01:01:01Z</modified>
-  <created>01012010T01:01:01Z</created>
 </item>
index 55a1ea6..4ba2983 100644 (file)
@@ -1,7 +1,7 @@
 { "owner":
   { "@uuid": "12345678-1234-1234-1234-123456789012",
     "@server": "12345678-1234-1234-1234-123456789012",
-    "description": "Something about me.",
-    "image": "https://api.recycloid.org/"
+    "thumbnail": "https://api.recycloid.org/",
+    "description": "Something about me."
   }
 }
index 15d8d74..18d2892 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <owner uuid="12345678-1234-1234-1234-123456789012" server="12345678-1234-1234-1234-123456789012">
+  <thumbnail>https://api.recycloid.org/</thumbnail>
   <description>Something about me.</description>
-  <image>https://api.recycloid.org/</image>
 </owner>
index 4d8ed9c..a53f012 100644 (file)
@@ -1,13 +1,10 @@
 { "stash":
   { "@uuid": "12345678-1234-1234-1234-123456789012",
-    "@server": "12345678-1234-1234-1234-123456789012",
     "@owner": "12345678-1234-1234-1234-123456789012",
+    "latitude": "123.123",
+    "longitude": "123.123",
+    "thumbnail": "https://api.recycloid.org/",
     "title": "Something about me.",
-    "description": "Something about me.",
-    "image": "https://api.recycloid.org/",
-    "location":
-        { "latitude": "123.123",
-          "longitude": "123.123"
-        }
+    "description": "Something about me."
   }
 }
index 385931d..2c1bab5 100644 (file)
@@ -1,12 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <stash uuid="12345678-1234-1234-1234-123456789012"
-       server="12345678-1234-1234-1234-123456789012"
        owner="12345678-1234-1234-1234-123456789012">
+  <latitude>123.123</latitude>
+  <longitude>123.123</longitude>
+  <thumbnail>https://api.recycloid.org/</thumbnail>
   <title>Something about me.</title>
   <description>Something about me.</description>
-  <image>https://api.recycloid.org/</image>
-  <location>
-    <latitude>123.123</latitude>
-    <longitude>123.123</longitude>
-  </location>
 </stash>