voog_api 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +3 -0
  5. data/Guardfile +5 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.markdown +55 -0
  8. data/Rakefile +1 -0
  9. data/lib/voog_api/api/articles.rb +77 -0
  10. data/lib/voog_api/api/assets.rb +31 -0
  11. data/lib/voog_api/api/comments.rb +36 -0
  12. data/lib/voog_api/api/content_partials.rb +21 -0
  13. data/lib/voog_api/api/contents.rb +38 -0
  14. data/lib/voog_api/api/element_definitions.rb +31 -0
  15. data/lib/voog_api/api/elements.rb +63 -0
  16. data/lib/voog_api/api/forms.rb +21 -0
  17. data/lib/voog_api/api/languages.rb +68 -0
  18. data/lib/voog_api/api/layout_assets.rb +39 -0
  19. data/lib/voog_api/api/layouts.rb +31 -0
  20. data/lib/voog_api/api/media_sets.rb +36 -0
  21. data/lib/voog_api/api/nodes.rb +26 -0
  22. data/lib/voog_api/api/pages.rb +77 -0
  23. data/lib/voog_api/api/people.rb +16 -0
  24. data/lib/voog_api/api/site.rb +35 -0
  25. data/lib/voog_api/api/tags.rb +26 -0
  26. data/lib/voog_api/api/texts.rb +21 -0
  27. data/lib/voog_api/api/tickets.rb +26 -0
  28. data/lib/voog_api/client.rb +140 -0
  29. data/lib/voog_api/version.rb +3 -0
  30. data/lib/voog_api.rb +46 -0
  31. data/spec/fixtures/articles/article.json +37 -0
  32. data/spec/fixtures/articles/articles.json +75 -0
  33. data/spec/fixtures/assets/asset.json +24 -0
  34. data/spec/fixtures/assets/assets.json +29 -0
  35. data/spec/fixtures/comments/comment.json +21 -0
  36. data/spec/fixtures/comments/comments.json +35 -0
  37. data/spec/fixtures/content_partials/content_partial.json +27 -0
  38. data/spec/fixtures/content_partials/content_partials.json +47 -0
  39. data/spec/fixtures/contents/content.json +31 -0
  40. data/spec/fixtures/contents/contents.json +63 -0
  41. data/spec/fixtures/element_definitions/element_definition.json +31 -0
  42. data/spec/fixtures/element_definitions/element_definitions.json +15 -0
  43. data/spec/fixtures/elements/element.json +35 -0
  44. data/spec/fixtures/elements/elements.json +57 -0
  45. data/spec/fixtures/forms/form.json +104 -0
  46. data/spec/fixtures/forms/forms.json +43 -0
  47. data/spec/fixtures/languages/language.json +13 -0
  48. data/spec/fixtures/languages/languages.json +27 -0
  49. data/spec/fixtures/layout_assets/layout_asset.json +14 -0
  50. data/spec/fixtures/layout_assets/layout_assets.json +29 -0
  51. data/spec/fixtures/layouts/layout.json +11 -0
  52. data/spec/fixtures/layouts/layouts.json +23 -0
  53. data/spec/fixtures/media_sets/media_set.json +23 -0
  54. data/spec/fixtures/media_sets/media_sets.json +32 -0
  55. data/spec/fixtures/nodes/node.json +11 -0
  56. data/spec/fixtures/nodes/nodes.json +23 -0
  57. data/spec/fixtures/pages/page.json +73 -0
  58. data/spec/fixtures/pages/pages.json +104 -0
  59. data/spec/fixtures/people/people.json +29 -0
  60. data/spec/fixtures/people/person.json +14 -0
  61. data/spec/fixtures/site/site.json +30 -0
  62. data/spec/fixtures/tags/tag.json +20 -0
  63. data/spec/fixtures/tags/tags.json +31 -0
  64. data/spec/fixtures/texts/text.json +23 -0
  65. data/spec/fixtures/texts/texts.json +45 -0
  66. data/spec/fixtures/tickets/ticket.json +26 -0
  67. data/spec/fixtures/tickets/tickets.json +29 -0
  68. data/spec/spec_helper.rb +46 -0
  69. data/spec/voog_api/api/articles_spec.rb +89 -0
  70. data/spec/voog_api/api/assets_spec.rb +53 -0
  71. data/spec/voog_api/api/comments_spec.rb +66 -0
  72. data/spec/voog_api/api/content_partials_spec.rb +41 -0
  73. data/spec/voog_api/api/contents_spec.rb +53 -0
  74. data/spec/voog_api/api/element_definitions_spec.rb +53 -0
  75. data/spec/voog_api/api/elements_spec.rb +78 -0
  76. data/spec/voog_api/api/forms_spec.rb +41 -0
  77. data/spec/voog_api/api/languages_spec.rb +89 -0
  78. data/spec/voog_api/api/layout_assets_spec.rb +54 -0
  79. data/spec/voog_api/api/layouts_spec.rb +53 -0
  80. data/spec/voog_api/api/media_sets_spec.rb +64 -0
  81. data/spec/voog_api/api/nodes_spec.rb +52 -0
  82. data/spec/voog_api/api/pages_spec.rb +89 -0
  83. data/spec/voog_api/api/people_spec.rb +30 -0
  84. data/spec/voog_api/api/site_spec.rb +53 -0
  85. data/spec/voog_api/api/tags_spec.rb +53 -0
  86. data/spec/voog_api/api/texts_spec.rb +41 -0
  87. data/spec/voog_api/api/tickets_spec.rb +54 -0
  88. data/spec/voog_spec.rb +38 -0
  89. data/voog_api.gemspec +27 -0
  90. metadata +278 -0
@@ -0,0 +1,47 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "content_type": "custom",
5
+ "created_at": "2014-05-30T09:25:22.000Z",
6
+ "updated_at": "2014-05-30T09:26:17.000Z",
7
+ "url": "http://voog.test/admin/api/content_partials/1",
8
+ "content": {
9
+ "id": 1,
10
+ "name": "body",
11
+ "created_at": "2014-05-30T09:25:22.000Z",
12
+ "updated_at": "2014-05-30T09:25:22.000Z",
13
+ "position": 1,
14
+ "url": "http://voog.test/admin/api/pages/1/contents/1"
15
+ },
16
+ "parent": {
17
+ "id": 1,
18
+ "title": "Home page",
19
+ "created_at": "2014-05-30T09:22:49.000Z",
20
+ "updated_at": "2014-05-30T09:22:54.000Z",
21
+ "type": "page",
22
+ "url": "http://voog.test/admin/api/pages/1"
23
+ }
24
+ }, {
25
+ "id": 2,
26
+ "content_type": "video",
27
+ "created_at": "2014-05-30T11:43:42.000Z",
28
+ "updated_at": "2014-05-30T11:44:07.000Z",
29
+ "url": "http://voog.test/admin/api/content_partials/2",
30
+ "content": {
31
+ "id": 2,
32
+ "name": "body",
33
+ "created_at": "2014-05-30T11:43:42.000Z",
34
+ "updated_at": "2014-05-30T11:43:42.000Z",
35
+ "position": 2,
36
+ "url": "http://voog.test/admin/api/pages/3/contents/2"
37
+ },
38
+ "parent": {
39
+ "id": 3,
40
+ "title": "Contact",
41
+ "created_at": "2014-05-30T11:43:37.000Z",
42
+ "updated_at": "2014-05-30T11:43:37.000Z",
43
+ "type": "page",
44
+ "url": "http://voog.test/admin/api/pages/3"
45
+ }
46
+ }
47
+ ]
@@ -0,0 +1,31 @@
1
+ {
2
+ "id": 2,
3
+ "name": "slogan",
4
+ "position": 1,
5
+ "content_type": "text",
6
+ "created_at": "2014-01-13T09:19:05.000Z",
7
+ "updated_at": "2014-01-13T09:19:05.000Z",
8
+ "url": "http://voog.test/admin/api/pages/1/contents/2",
9
+ "relocate_url": "http://voog.test/admin/api/pages/1/contents/2/relocate",
10
+ "language": {
11
+ "id": 1,
12
+ "code": "en",
13
+ "title": "ENG",
14
+ "created_at": "2014-01-13T09:19:04.000Z",
15
+ "updated_at": "2014-01-13T09:19:04.000Z",
16
+ "url": "http://voog.test/admin/api/languages/1"
17
+ },
18
+ "parent": {
19
+ "id": 1,
20
+ "type": "page",
21
+ "created_at": "2014-01-13T09:19:04.000Z",
22
+ "updated_at": "2014-01-13T09:19:04.000Z",
23
+ "url": "http://voog.test/admin/api/pages/1"
24
+ },
25
+ "text": {
26
+ "id": 1,
27
+ "created_at": "2014-01-13T09:19:04.000Z",
28
+ "updated_at": "2014-01-13T09:19:04.000Z",
29
+ "url": "http://voog.test/admin/api/texts/1"
30
+ }
31
+ }
@@ -0,0 +1,63 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "name": "body",
5
+ "position": 1,
6
+ "content_type": "form",
7
+ "created_at": "2014-01-13T09:19:05.000Z",
8
+ "updated_at": "2014-01-13T09:19:05.000Z",
9
+ "url": "http://voog.test/admin/api/pages/1/contents/1",
10
+ "relocate_url": "http://voog.test/admin/api/pages/1/contents/1/relocate",
11
+ "language": {
12
+ "id": 1,
13
+ "code": "en",
14
+ "title": "ENG",
15
+ "created_at": "2014-01-13T09:19:04.000Z",
16
+ "updated_at": "2014-01-13T09:19:04.000Z",
17
+ "url": "http://voog.test/admin/api/languages/1"
18
+ },
19
+ "parent": {
20
+ "id": 1,
21
+ "type": "page",
22
+ "created_at": "2014-01-13T09:19:04.000Z",
23
+ "updated_at": "2014-01-13T09:19:04.000Z",
24
+ "url": "http://voog.test/admin/api/pages/1"
25
+ },
26
+ "form": {
27
+ "id": 1,
28
+ "created_at": "2014-01-13T09:25:22.000Z",
29
+ "updated_at": "2014-01-13T09:26:17.000Z",
30
+ "url": "http://voog.test/admin/api/forms/1"
31
+ }
32
+ }, {
33
+ "id": 2,
34
+ "name": "slogan",
35
+ "position": 1,
36
+ "content_type": "text",
37
+ "created_at": "2014-01-13T09:19:05.000Z",
38
+ "updated_at": "2014-01-13T09:19:05.000Z",
39
+ "url": "http://voog.test/admin/api/pages/1/contents/2",
40
+ "relocate_url": "http://voog.test/admin/api/pages/1/contents/2/relocate",
41
+ "language": {
42
+ "id": 1,
43
+ "code": "en",
44
+ "title": "ENG",
45
+ "created_at": "2014-01-13T09:19:04.000Z",
46
+ "updated_at": "2014-01-13T09:19:04.000Z",
47
+ "url": "http://voog.test/admin/api/languages/1"
48
+ },
49
+ "parent": {
50
+ "id": 1,
51
+ "type": "page",
52
+ "created_at": "2014-01-13T09:19:04.000Z",
53
+ "updated_at": "2014-01-13T09:19:04.000Z",
54
+ "url": "http://voog.test/admin/api/pages/1"
55
+ },
56
+ "text": {
57
+ "id": 1,
58
+ "created_at": "2014-01-13T09:19:04.000Z",
59
+ "updated_at": "2014-01-13T09:19:04.000Z",
60
+ "url": "http://voog.test/admin/api/texts/1"
61
+ }
62
+ }
63
+ ]
@@ -0,0 +1,31 @@
1
+ {
2
+ "id": 2,
3
+ "title": "Book",
4
+ "created_at": "2014-02-05T16:06:09.000Z",
5
+ "updated_at": "2014-02-05T16:06:09.000Z",
6
+ "url": "http://voog.test/admin/api/element_definitions/2",
7
+ "data": {
8
+ "properties": {
9
+ "isbn": {
10
+ "data_type": "string",
11
+ "title": "ISBN",
12
+ "position": 2
13
+ },
14
+ "category": {
15
+ "data_type": "select",
16
+ "options": [
17
+ "Fiction",
18
+ "Reference",
19
+ "Cookbooks"
20
+ ],
21
+ "title": "Category",
22
+ "position": 1
23
+ },
24
+ "release-date": {
25
+ "data_type": "date",
26
+ "title": "Release date",
27
+ "position": 3
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "title": "Person",
5
+ "created_at": "2014-02-05T11:22:47.000Z",
6
+ "updated_at": "2014-02-05T11:22:47.000Z",
7
+ "url": "http://voog.test/admin/api/element_definitions/1"
8
+ }, {
9
+ "id": 2,
10
+ "title": "Book",
11
+ "created_at": "2014-02-05T16:06:09.000Z",
12
+ "updated_at": "2014-02-05T16:06:09.000Z",
13
+ "url": "http://voog.test/admin/api/element_definitions/2"
14
+ }
15
+ ]
@@ -0,0 +1,35 @@
1
+ {
2
+ "id": 1,
3
+ "created_at": "24-02-05T11:29:51.000Z",
4
+ "updated_at": "24-02-05T11:29:51.000Z",
5
+ "position": 2,
6
+ "path": "marilyn-monroe",
7
+ "title": "Marilyn Monroe",
8
+ "path_with_page": "people/marilyn-monroe",
9
+ "url": "http://voog.test/admin/api/elements/1",
10
+ "move_url": "http://voog.test/admin/api/elements/1/move",
11
+ "public_url": "http://voog.test/people/marilyn-monroe",
12
+ "element_definition": {
13
+ "id": 1,
14
+ "title": "Person",
15
+ "created_at": "24-02-05T11:22:47.000Z",
16
+ "updated_at": "24-02-05T11:22:47.000Z",
17
+ "url": "http://voog.test/admin/api/element_definitions/1"
18
+ },
19
+ "page": {
20
+ "id": 2,
21
+ "title": "People",
22
+ "created_at": "24-02-05T11:26:19.000Z",
23
+ "updated_at": "24-02-05T11:26:42.000Z",
24
+ "content_type": "elements",
25
+ "published_at": "24-02-05T11:26:19.000Z",
26
+ "url": "http://voog.test/admin/api/pages/2"
27
+ },
28
+ "values": {
29
+ "description": "Marilyn Monroe was an American actress, model, and singer.",
30
+ "photo": "",
31
+ "birthday": "1926-06-01",
32
+ "gender": "Female",
33
+ "public": true
34
+ }
35
+ }
@@ -0,0 +1,57 @@
1
+ [
2
+ {
3
+ "id": 2,
4
+ "created_at": "24-02-05T11:33:29.000Z",
5
+ "updated_at": "24-02-05T17:49:45.000Z",
6
+ "position": 1,
7
+ "path": "bill-gates",
8
+ "title": "Bill Gates",
9
+ "path_with_page": "people/bill-gates",
10
+ "url": "http://voog.test/admin/api/elements/2",
11
+ "move_url": "http://voog.test/admin/api/elements/2/move",
12
+ "public_url": "http://voog.test/people/bill-gates",
13
+ "element_definition": {
14
+ "id": 1,
15
+ "title": "Person",
16
+ "created_at": "24-02-05T11:22:47.000Z",
17
+ "updated_at": "24-02-05T11:22:47.000Z",
18
+ "url": "http://voog.test/admin/api/element_definitions/1"
19
+ },
20
+ "page": {
21
+ "id": 2,
22
+ "title": "People",
23
+ "created_at": "24-02-05T11:26:19.000Z",
24
+ "updated_at": "24-02-05T11:26:42.000Z",
25
+ "content_type": "elements",
26
+ "published_at": "24-02-05T11:26:19.000Z",
27
+ "url": "http://voog.test/admin/api/pages/2"
28
+ }
29
+ }, {
30
+ "id": 1,
31
+ "created_at": "24-02-05T11:29:51.000Z",
32
+ "updated_at": "24-02-05T11:29:51.000Z",
33
+ "position": 2,
34
+ "path": "marilyn-monroe",
35
+ "title": "Marilyn Monroe",
36
+ "path_with_page": "people/marilyn-monroe",
37
+ "url": "http://voog.test/admin/api/elements/1",
38
+ "move_url": "http://voog.test/admin/api/elements/1/move",
39
+ "public_url": "http://voog.test/people/marilyn-monroe",
40
+ "element_definition": {
41
+ "id": 1,
42
+ "title": "Person",
43
+ "created_at": "24-02-05T11:22:47.000Z",
44
+ "updated_at": "24-02-05T11:22:47.000Z",
45
+ "url": "http://voog.test/admin/api/element_definitions/1"
46
+ },
47
+ "page": {
48
+ "id": 2,
49
+ "title": "People",
50
+ "created_at": "24-02-05T11:26:19.000Z",
51
+ "updated_at": "24-02-05T11:26:42.000Z",
52
+ "content_type": "elements",
53
+ "published_at": "24-02-05T11:26:19.000Z",
54
+ "url": "http://voog.test/admin/api/pages/2"
55
+ }
56
+ }
57
+ ]
@@ -0,0 +1,104 @@
1
+ {
2
+ "id": 2,
3
+ "title": "Contact",
4
+ "created_at": "2014-01-14T11:43:42.000Z",
5
+ "updated_at": "2014-01-14T11:44:07.000Z",
6
+ "url": "http://voog.test/admin/api/forms/2",
7
+ "content": {
8
+ "id": 2,
9
+ "name": "body",
10
+ "position": 2,
11
+ "created_at": "2014-01-14T11:43:42.000Z",
12
+ "updated_at": "2014-01-14T11:43:42.000Z",
13
+ "url": "http://voog.test/admin/api/pages/3/contents/2"
14
+ },
15
+ "parent": {
16
+ "id": 3,
17
+ "type": "page",
18
+ "created_at": "2014-01-14T11:43:37.000Z",
19
+ "updated_at": "2014-01-14T11:43:37.000Z",
20
+ "url": "http://voog.test/admin/api/pages/3"
21
+ },
22
+ "description": null,
23
+ "fields": [{
24
+ "id": "field_1389863908580",
25
+ "type": "textfield",
26
+ "title": "Simple text field",
27
+ "required": false,
28
+ "field_size": "small",
29
+ "classname": "my-field",
30
+ "placeholder": "This is placeholder"
31
+ }, {
32
+ "id": "field_1389863978349",
33
+ "type": "textfield",
34
+ "title": "Email field",
35
+ "required": false,
36
+ "field_size": "medium",
37
+ "format": "email",
38
+ "classname": "my-email-field",
39
+ "placeholder": "Enter your email"
40
+ }, {
41
+ "id": "field_1389864022045",
42
+ "type": "textfield",
43
+ "title": "Web addres",
44
+ "required": false,
45
+ "field_size": "large",
46
+ "format": "webaddress",
47
+ "classname": "my-web-field",
48
+ "placeholder": "http://"
49
+ }, {
50
+ "id": "field_1389864067243",
51
+ "type": "textarea",
52
+ "title": "Multiline text",
53
+ "required": false,
54
+ "field_size": "large",
55
+ "classname": "my-multiline-field",
56
+ "placeholder": "Enter your story"
57
+ }, {
58
+ "id": "field_1389864095155",
59
+ "type": "select",
60
+ "title": "Select list",
61
+ "required": false,
62
+ "options": [
63
+ "Option 1",
64
+ "Option 2",
65
+ "Option 3"
66
+ ],
67
+ "classname": "my-select"
68
+ }, {
69
+ "id": "field_1389864130096",
70
+ "type": "checkbox",
71
+ "title": "Checkboxes",
72
+ "required": false,
73
+ "options": [
74
+ "Checkbox 1",
75
+ "Checkbox 2",
76
+ "Checkbox 3"
77
+ ],
78
+ "classname": "my-checkboxes"
79
+ }, {
80
+ "id": "field_1389864153264",
81
+ "type": "radio",
82
+ "title": "Single choice",
83
+ "required": false,
84
+ "options": [
85
+ "Choice 1",
86
+ "Choice 2",
87
+ "Choice 3"
88
+ ],
89
+ "classname": "my-radiobuttons"
90
+ }, {
91
+ "id": "field_1389864181776",
92
+ "type": "file",
93
+ "title": "File upload",
94
+ "required": false,
95
+ "classname": "my-file-upload-field"
96
+ }],
97
+ "submit_emails": "test@example.com",
98
+ "submit_label": "Send form",
99
+ "submit_email_subject": "Email from page",
100
+ "submit_action": null,
101
+ "submit_success_message": null,
102
+ "submit_success_address": null,
103
+ "submit_failure_message": null
104
+ }
@@ -0,0 +1,43 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "created_at": "2014-01-13T09:19:04.000Z",
5
+ "updated_at": "2014-01-13T09:19:04.000Z",
6
+ "url": "http://voog.test/admin/api/texts/1",
7
+ "content": {
8
+ "id": 2,
9
+ "name": "slogan",
10
+ "position": 1,
11
+ "created_at": "2014-01-13T09:19:05.000Z",
12
+ "updated_at": "2014-01-13T09:19:05.000Z",
13
+ "url": "http://voog.test/admin/api/pages/1/contents/2"
14
+ },
15
+ "parent": {
16
+ "id": 1,
17
+ "type": "page",
18
+ "created_at": "2014-01-13T09:19:04.000Z",
19
+ "updated_at": "2014-01-13T09:19:04.000Z",
20
+ "url": "http://voog.test/admin/api/pages/1"
21
+ }
22
+ }, {
23
+ "id": 2,
24
+ "created_at": "2014-01-14T10:22:04.000Z",
25
+ "updated_at": "2014-01-14T10:22:04.000Z",
26
+ "url": "http://voog.test/admin/api/texts/2",
27
+ "content": {
28
+ "id": 3,
29
+ "name": "body",
30
+ "position": 1,
31
+ "created_at": "2014-01-14T10:22:04.000Z",
32
+ "updated_at": "2014-01-14T10:22:04.000Z",
33
+ "url": "http://voog.test/admin/api/pages/1/contents/3"
34
+ },
35
+ "parent": {
36
+ "id": 1,
37
+ "type": "page",
38
+ "created_at": "2014-01-13T09:19:04.000Z",
39
+ "updated_at": "2014-01-13T09:19:04.000Z",
40
+ "url": "http://voog.test/admin/api/pages/1"
41
+ }
42
+ }
43
+ ]
@@ -0,0 +1,13 @@
1
+ {
2
+ "id": 2,
3
+ "code": "fr",
4
+ "title": "FRA",
5
+ "site_title": "Mon nouveau site",
6
+ "position": 2,
7
+ "default_language": false,
8
+ "created_at": "2014-01-21T14:43:48.000Z",
9
+ "updated_at": "2014-01-21T14:43:48.000Z",
10
+ "url": "http://voog.test/admin/api/languages/2",
11
+ "move_url": "http://voog.test/admin/api/languages/2/move",
12
+ "pages_url": "http://voog.test/admin/api/pages?language_id=2"
13
+ }
@@ -0,0 +1,27 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "code": "en",
5
+ "title": "ENG",
6
+ "site_title": "My new site",
7
+ "position": 1,
8
+ "default_language": false,
9
+ "created_at": "2014-01-20T09:19:04.000Z",
10
+ "updated_at": "2014-01-20T09:19:04.000Z",
11
+ "url": "http://voog.test/admin/api/languages/1",
12
+ "move_url": "http://voog.test/admin/api/languages/1/move",
13
+ "pages_url": "http://voog.test/admin/api/pages?language_id=1"
14
+ }, {
15
+ "id": 2,
16
+ "code": "fr",
17
+ "title": "FRA",
18
+ "site_title": "Mon nouveau site",
19
+ "position": 2,
20
+ "default_language": false,
21
+ "created_at": "2014-01-21T14:43:48.000Z",
22
+ "updated_at": "2014-01-21T14:43:48.000Z",
23
+ "url": "http://voog.test/admin/api/languages/2",
24
+ "move_url": "http://voog.test/admin/api/languages/2/move",
25
+ "pages_url": "http://voog.test/admin/api/pages?language_id=2"
26
+ }
27
+ ]
@@ -0,0 +1,14 @@
1
+ {
2
+ "id": 2,
3
+ "filename": "style.css",
4
+ "asset_type": "stylesheet",
5
+ "content_type": "text/css",
6
+ "size": 12016,
7
+ "width": null,
8
+ "height": null,
9
+ "editable": true,
10
+ "url": "http://voog.test/admin/api/layout_assets/2",
11
+ "public_url": "http://voog.test/stylesheets/style.css",
12
+ "created_at": "2014-01-01T15:28:24.000Z",
13
+ "updated_at": "2014-01-01T15:28:24.000Z"
14
+ }
@@ -0,0 +1,29 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "filename": "bg.gif",
5
+ "asset_type": "image",
6
+ "content_type": "image/gif",
7
+ "size": 139,
8
+ "width": 1000,
9
+ "height": 800,
10
+ "editable": false,
11
+ "url": "http://voog.test/admin/api/layout_assets/1",
12
+ "public_url": "http://voog.test/images/bg.gif",
13
+ "created_at": "2014-01-01T15:28:24.000Z",
14
+ "updated_at": "2014-01-01T15:28:24.000Z"
15
+ }, {
16
+ "id": 2,
17
+ "filename": "style.css",
18
+ "asset_type": "stylesheet",
19
+ "content_type": "text/css",
20
+ "size": 12016,
21
+ "width": null,
22
+ "height": null,
23
+ "editable": true,
24
+ "url": "http://voog.test/admin/api/layout_assets/2",
25
+ "public_url": "http://voog.test/stylesheets/style.css",
26
+ "created_at": "2014-01-01T15:28:24.000Z",
27
+ "updated_at": "2014-01-01T15:28:24.000Z"
28
+ }
29
+ ]
@@ -0,0 +1,11 @@
1
+ {
2
+ "id": 2,
3
+ "parent_id": null,
4
+ "title": "Blog & News",
5
+ "layout_name": "blog",
6
+ "content_type": "blog",
7
+ "component": false,
8
+ "url": "http://voog.test/admin/api/layouts/2",
9
+ "created_at": "2008-06-18T14:42:09.000Z",
10
+ "updated_at": "2013-06-06T12:00:25.000Z"
11
+ }
@@ -0,0 +1,23 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "parent_id": null,
5
+ "title": "Common page",
6
+ "layout_name": "common_page",
7
+ "content_type": "page",
8
+ "component": false,
9
+ "url": "http://voog.test/admin/api/layouts/1",
10
+ "created_at": "2008-06-18T14:41:12.000Z",
11
+ "updated_at": "2012-01-26T11:14:53.000Z"
12
+ }, {
13
+ "id": 2,
14
+ "parent_id": null,
15
+ "title": "Blog & News",
16
+ "layout_name": "blog",
17
+ "content_type": "blog",
18
+ "component": false,
19
+ "url": "http://voog.test/admin/api/layouts/2",
20
+ "created_at": "2008-06-18T14:42:09.000Z",
21
+ "updated_at": "2013-06-06T12:00:25.000Z"
22
+ }
23
+ ]
@@ -0,0 +1,23 @@
1
+ {
2
+ "id": 2,
3
+ "title": "Standalone media set",
4
+ "created_at": "2014-01-16T08:16:33.000Z",
5
+ "updated_at": "2014-01-16T08:16:33.000Z",
6
+ "url": "http://voog.test/admin/api/media_sets/2",
7
+ "add_assets_url": "http://voog.test/admin/api/media_sets/2/add_assets",
8
+ "assets": [{
9
+ "title": "",
10
+ "position": 1,
11
+ "created_at": "2014-01-16T08:13:18.000Z",
12
+ "updated_at": "2014-01-16T08:13:18.000Z",
13
+ "id": 1,
14
+ "extension": "png",
15
+ "type": "image",
16
+ "url": "http://voog.test/admin/api/assets/1",
17
+ "original_url": "http://media.voog.com/0000/0000/0001/photos/account-currency.png",
18
+ "thumbnail_url": "http://media.voog.com/0000/0000/0001/photos/account-currency_large.png",
19
+ "medium_thumbnail_url": "http://media.voog.com/0000/0000/0001/photos/account-currency_medium.png",
20
+ "width": 634,
21
+ "height": 295
22
+ }]
23
+ }
@@ -0,0 +1,32 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "title": "",
5
+ "created_at": "2014-01-16T08:04:27.000Z",
6
+ "updated_at": "2014-01-16T08:04:27.000Z",
7
+ "url": "http://voog.test/admin/api/media_sets/1",
8
+ "add_assets_url": "http://voog.test/admin/api/media_sets/1/add_assets",
9
+ "content": {
10
+ "id": 3,
11
+ "name": "body",
12
+ "created_at": "2014-01-16T08:04:27.000Z",
13
+ "updated_at": "2014-01-16T14:56:45.000Z",
14
+ "position": 3,
15
+ "url": "http://voog.test/admin/api/pages/1/contents/3"
16
+ },
17
+ "parent": {
18
+ "id": 1,
19
+ "created_at": "2013-12-13T09:19:04.000Z",
20
+ "updated_at": "2013-12-13T09:19:04.000Z",
21
+ "type": "page",
22
+ "url": "http://voog.test/admin/api/pages/1"
23
+ }
24
+ }, {
25
+ "id": 2,
26
+ "title": "Standalone media set",
27
+ "created_at": "2014-01-16T08:16:33.000Z",
28
+ "updated_at": "2014-01-16T08:16:33.000Z",
29
+ "url": "http://voog.test/admin/api/media_sets/2",
30
+ "add_assets_url": "http://voog.test/admin/api/media_sets/2/add_assets"
31
+ }
32
+ ]
@@ -0,0 +1,11 @@
1
+ {
2
+ "id": 2,
3
+ "title": "Products",
4
+ "parent_id": 1,
5
+ "position": 2,
6
+ "created_at": "2014-01-24T09:19:04.000Z",
7
+ "updated_at": "2014-01-24T09:19:04.000Z",
8
+ "url": "http://voog.test/admin/api/nodes/2",
9
+ "children_url": "http://voog.test/admin/api/nodes?parent_id=2",
10
+ "parent_url": "http://voog.test/admin/api/nodes/1"
11
+ }
@@ -0,0 +1,23 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "title": "Home Page",
5
+ "parent_id": null,
6
+ "position": 1,
7
+ "created_at": "2014-01-24T09:19:04.000Z",
8
+ "updated_at": "2014-01-24T09:19:04.000Z",
9
+ "url": "http://voog.test/admin/api/nodes/1",
10
+ "children_url": "http://voog.test/admin/api/nodes?parent_id=1",
11
+ "parent_url": null
12
+ }, {
13
+ "id": 2,
14
+ "title": "Products",
15
+ "parent_id": 1,
16
+ "position": 2,
17
+ "created_at": "2014-01-24T09:19:04.000Z",
18
+ "updated_at": "2014-01-24T09:19:04.000Z",
19
+ "url": "http://voog.test/admin/api/nodes/2",
20
+ "children_url": "http://voog.test/admin/api/nodes?parent_id=2",
21
+ "parent_url": "http://voog.test/admin/api/nodes/1"
22
+ }
23
+ ]