locomotivecms_coal 1.0.0.pre.alpha.1 → 1.0.0.pre.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.gitignore +1 -0
  4. data/Gemfile +2 -0
  5. data/Gemfile.lock +23 -12
  6. data/README.md +167 -10
  7. data/lib/locomotive/coal/client.rb +70 -20
  8. data/lib/locomotive/coal/client_v2.rb +31 -0
  9. data/lib/locomotive/coal/error.rb +46 -5
  10. data/lib/locomotive/coal/resources/base.rb +57 -0
  11. data/lib/locomotive/coal/resources/concerns/request.rb +101 -0
  12. data/lib/locomotive/coal/resources/content_assets.rb +9 -0
  13. data/lib/locomotive/coal/resources/content_entries.rb +17 -11
  14. data/lib/locomotive/coal/resources/{contents.rb → content_types.rb} +4 -5
  15. data/lib/locomotive/coal/resources/engine_version.rb +15 -0
  16. data/lib/locomotive/coal/resources/my_account.rb +14 -2
  17. data/lib/locomotive/coal/resources/pages.rb +25 -0
  18. data/lib/locomotive/coal/resources/sites.rb +5 -17
  19. data/lib/locomotive/coal/resources/snippets.rb +9 -0
  20. data/lib/locomotive/coal/resources/theme_assets.rb +13 -0
  21. data/lib/locomotive/coal/resources/token.rb +2 -2
  22. data/lib/locomotive/coal/resources/translations.rb +9 -0
  23. data/lib/locomotive/coal/upload_io.rb +11 -0
  24. data/lib/locomotive/coal/version.rb +1 -1
  25. data/lib/locomotive/coal.rb +11 -3
  26. data/locomotivecms_coal.gemspec +4 -4
  27. data/spec/fixtures/assets/locomotive.png +0 -0
  28. data/spec/fixtures/assets/rails.png +0 -0
  29. data/spec/fixtures/coal_cassettes/client.yml +333 -69
  30. data/spec/fixtures/coal_cassettes/content_assets.yml +595 -0
  31. data/spec/fixtures/coal_cassettes/content_entries.yml +1134 -223
  32. data/spec/fixtures/coal_cassettes/content_types.yml +616 -0
  33. data/spec/fixtures/coal_cassettes/my_account.yml +167 -47
  34. data/spec/fixtures/coal_cassettes/pages.yml +281 -0
  35. data/spec/fixtures/coal_cassettes/sites.yml +93 -117
  36. data/spec/fixtures/coal_cassettes/snippets.yml +227 -0
  37. data/spec/fixtures/coal_cassettes/theme_assets.yml +406 -0
  38. data/spec/fixtures/coal_cassettes/token.yml +37 -55
  39. data/spec/fixtures/coal_cassettes/translations.yml +227 -0
  40. data/spec/fixtures/coal_cassettes/version.yml +89 -0
  41. data/spec/integration/client_spec.rb +37 -3
  42. data/spec/integration/resources/content_assets_spec.rb +42 -0
  43. data/spec/integration/resources/content_entries_spec.rb +45 -18
  44. data/spec/integration/resources/content_types_spec.rb +44 -0
  45. data/spec/integration/resources/engine_version_spec.rb +17 -0
  46. data/spec/integration/resources/my_account_spec.rb +22 -5
  47. data/spec/integration/resources/pages_spec.rb +43 -0
  48. data/spec/integration/resources/sites_spec.rb +9 -9
  49. data/spec/integration/resources/snippets_spec.rb +38 -0
  50. data/spec/integration/resources/theme_assets_spec.rb +43 -0
  51. data/spec/integration/resources/token_spec.rb +7 -7
  52. data/spec/integration/resources/translations_spec.rb +38 -0
  53. data/spec/spec_helper.rb +2 -13
  54. data/spec/support/api_settings.rb +7 -3
  55. data/spec/support/assets.rb +4 -0
  56. data/spec/support/vcr.rb +10 -0
  57. data/spec/unit/error_spec.rb +28 -0
  58. metadata +71 -13
  59. data/lib/locomotive/coal/request.rb +0 -63
  60. data/spec/fixtures/coal_cassettes/contents.yml +0 -120
  61. data/spec/integration/resources/contents_spec.rb +0 -22
@@ -2,96 +2,216 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://sample.lvh.me:4000/locomotive/api/tokens.json
5
+ uri: http://localhost:3000/locomotive/api/v3/my_account.json
6
6
  body:
7
- encoding: US-ASCII
8
- string: email=john%40doe.net&password=easyone
7
+ encoding: UTF-8
8
+ string: account%5Bemail%5D=jack%40doe.net&account%5Bname%5D=Jack+Doe&account%5Bpassword%5D=easyone&account%5Bpassword_confirmation%5D=easyone
9
9
  headers:
10
10
  Accept:
11
11
  - application/json
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
12
14
  Accept-Encoding:
13
- - gzip
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
16
  User-Agent:
15
- - unirest-ruby/1.1
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ headers:
23
+ Content-Type:
24
+ - application/json
16
25
  Content-Length:
17
- - '37'
26
+ - '254'
27
+ Etag:
28
+ - W/"7f495f6884f41dffc17a487349932424"
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 3850132b-231d-47af-b1c5-f25f00102671
33
+ X-Runtime:
34
+ - '0.021105'
35
+ Connection:
36
+ - keep-alive
37
+ Server:
38
+ - thin
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"_id":"554779626469643251310300","created_at":"2015-05-04T13:51:30Z","updated_at":"2015-05-04T13:51:30Z","name":"Jack
42
+ Doe","email":"jack@doe.net","locale":"en","api_key":"3ce1417822037f832aad760414bb18f6c1f4b791","super_admin":false,"local_admin":false}'
43
+ http_version:
44
+ recorded_at: Mon, 04 May 2015 13:51:30 GMT
45
+ - request:
46
+ method: post
47
+ uri: http://localhost:3000/locomotive/api/v3/my_account.json
48
+ body:
49
+ encoding: UTF-8
50
+ string: account%5Bname%5D=Wrong+account
51
+ headers:
52
+ Accept:
53
+ - application/json
18
54
  Content-Type:
19
55
  - application/x-www-form-urlencoded
56
+ Accept-Encoding:
57
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
+ User-Agent:
59
+ - Ruby
20
60
  response:
21
61
  status:
22
- code: 200
23
- message: OK
62
+ code: 422
63
+ message: Unprocessable Entity
24
64
  headers:
25
- Date:
26
- - Thu, 26 Mar 2015 12:13:39 GMT
27
- Status:
28
- - 200 OK
65
+ Content-Type:
66
+ - application/json
67
+ Content-Length:
68
+ - '92'
69
+ Cache-Control:
70
+ - no-cache
71
+ X-Request-Id:
72
+ - 97108535-bd46-4695-a926-6650bb4d6341
73
+ X-Runtime:
74
+ - '0.013830'
29
75
  Connection:
30
- - close
31
- Location:
32
- - http://sample.lvh.me:4000/locomotive/
76
+ - keep-alive
77
+ Server:
78
+ - thin
79
+ body:
80
+ encoding: UTF-8
81
+ string: '{"error":"Resource invalid","attributes":{"email":["is missing"],"password":["is
82
+ missing"]}}'
83
+ http_version:
84
+ recorded_at: Mon, 04 May 2015 13:51:30 GMT
85
+ - request:
86
+ method: post
87
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
88
+ body:
89
+ encoding: UTF-8
90
+ string: email=admin%40locomotivecms.com&password=locomotive
91
+ headers:
92
+ Accept:
93
+ - application/json
33
94
  Content-Type:
34
- - application/json; charset=utf-8
35
- X-Ua-Compatible:
36
- - IE=Edge
95
+ - application/x-www-form-urlencoded
96
+ Accept-Encoding:
97
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
98
+ User-Agent:
99
+ - Ruby
100
+ response:
101
+ status:
102
+ code: 201
103
+ message: Created
104
+ headers:
105
+ Content-Type:
106
+ - application/json
107
+ Content-Length:
108
+ - '32'
37
109
  Etag:
38
- - '"557f8d72cf11ab5399621eddec942c29"'
110
+ - W/"6ba0e226b40adfde2d656d9027a1335f"
39
111
  Cache-Control:
40
112
  - max-age=0, private, must-revalidate
41
- Set-Cookie:
42
- - _locomotive_session=zUUHIKNc-a1-wegiBJYzxJOIcRE; domain=.sample.lvh.me; path=/;
43
- HttpOnly
44
113
  X-Request-Id:
45
- - 061a5e57ccbb534f01f7042ad71bf80b
114
+ - e64dda85-9835-4b42-9e6d-78b9423c7511
46
115
  X-Runtime:
47
- - '0.030627'
116
+ - '0.020849'
117
+ Connection:
118
+ - keep-alive
119
+ Server:
120
+ - thin
48
121
  body:
49
122
  encoding: UTF-8
50
- string: '{"token":"9GLRWwc2MGTCF7SHiZSg"}'
123
+ string: '{"token":"Z9s7W_-BXyGQsDPFsorr"}'
51
124
  http_version:
52
- recorded_at: Thu, 26 Mar 2015 12:13:39 GMT
125
+ recorded_at: Mon, 04 May 2015 13:51:30 GMT
53
126
  - request:
54
127
  method: get
55
- uri: http://sample.lvh.me:4000/locomotive/api/my_account.json?auth_token=9GLRWwc2MGTCF7SHiZSg
128
+ uri: http://localhost:3000/locomotive/api/v3/my_account.json
56
129
  body:
57
- encoding: US-ASCII
58
- string: ''
130
+ encoding: UTF-8
131
+ string: auth_token=Z9s7W_-BXyGQsDPFsorr
59
132
  headers:
60
133
  Accept:
61
134
  - application/json
135
+ X-Locomotive-Account-Email:
136
+ - admin@locomotivecms.com
137
+ X-Locomotive-Account-Token:
138
+ - Z9s7W_-BXyGQsDPFsorr
139
+ Content-Type:
140
+ - application/x-www-form-urlencoded
62
141
  Accept-Encoding:
63
- - gzip
142
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
64
143
  User-Agent:
65
- - unirest-ruby/1.1
144
+ - Ruby
66
145
  response:
67
146
  status:
68
147
  code: 200
69
148
  message: OK
70
149
  headers:
71
- Date:
72
- - Thu, 26 Mar 2015 12:13:40 GMT
73
- Status:
74
- - 200 OK
150
+ Content-Type:
151
+ - application/json
152
+ Content-Length:
153
+ - '261'
154
+ Etag:
155
+ - W/"8fad791a4f5d5da4ee14fa5bc5058ba4"
156
+ Cache-Control:
157
+ - max-age=0, private, must-revalidate
158
+ X-Request-Id:
159
+ - a2be78d4-74a6-4569-b7ee-4f1fa142383f
160
+ X-Runtime:
161
+ - '0.015587'
75
162
  Connection:
76
- - close
163
+ - keep-alive
164
+ Server:
165
+ - thin
166
+ body:
167
+ encoding: UTF-8
168
+ string: '{"_id":"554779596469644d44000000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
169
+ http_version:
170
+ recorded_at: Mon, 04 May 2015 13:51:30 GMT
171
+ - request:
172
+ method: put
173
+ uri: http://localhost:3000/locomotive/api/v3/my_account.json
174
+ body:
175
+ encoding: UTF-8
176
+ string: account%5Bname%5D=John+Doe&auth_token=Z9s7W_-BXyGQsDPFsorr
177
+ headers:
178
+ Accept:
179
+ - application/json
180
+ X-Locomotive-Account-Email:
181
+ - admin@locomotivecms.com
182
+ X-Locomotive-Account-Token:
183
+ - Z9s7W_-BXyGQsDPFsorr
77
184
  Content-Type:
78
- - application/json; charset=utf-8
79
- X-Ua-Compatible:
80
- - IE=Edge
185
+ - application/x-www-form-urlencoded
186
+ Accept-Encoding:
187
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
188
+ User-Agent:
189
+ - Ruby
190
+ response:
191
+ status:
192
+ code: 200
193
+ message: OK
194
+ headers:
195
+ Content-Type:
196
+ - application/json
197
+ Content-Length:
198
+ - '264'
81
199
  Etag:
82
- - '"5286c0fcb45b4f01085a8ad3b0271bca"'
200
+ - W/"99b7124fb46c001912ec4a83ce101f3a"
83
201
  Cache-Control:
84
202
  - max-age=0, private, must-revalidate
85
- Set-Cookie:
86
- - _locomotive_session=foIjGgvG1z2IMoxADAVRxAVoqnI; domain=.sample.lvh.me; path=/;
87
- HttpOnly
88
203
  X-Request-Id:
89
- - e1a73f86678857cf095ff20bf64bb298
204
+ - 6c5142b1-cc76-44f0-bd07-3fd8c79bfd14
90
205
  X-Runtime:
91
- - '0.031958'
206
+ - '0.024032'
207
+ Connection:
208
+ - keep-alive
209
+ Server:
210
+ - thin
92
211
  body:
93
212
  encoding: UTF-8
94
- string: '{"id":"54eb49b22475804b2b000001","_id":"54eb49b22475804b2b000001","created_at":"2015-02-23T15:39:30Z","updated_at":"2015-03-26T12:13:39Z","name":"John","email":"john@doe.net","locale":"en","encrypted_password":"fc2fa5bc736ba0f4ab04c4e427660f7a4fd7a360","password_salt":"ccEcFveptwhvSoRoExkX","api_key":"a9ac1e08c2c22c1b6f3da6db77a70cac4a615bd7","admin":true}'
213
+ string: '{"_id":"554779596469644d44000000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:30Z","name":"John
214
+ Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
95
215
  http_version:
96
- recorded_at: Thu, 26 Mar 2015 12:13:40 GMT
216
+ recorded_at: Mon, 04 May 2015 13:51:30 GMT
97
217
  recorded_with: VCR 2.9.3
@@ -0,0 +1,281 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: email=admin%40locomotivecms.com&password=locomotive
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ headers:
23
+ Content-Type:
24
+ - application/json
25
+ Content-Length:
26
+ - '32'
27
+ Etag:
28
+ - W/"6be06530def9720d4d9c14c9278d2f4b"
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - f128dcb9-64fb-40b8-a0bb-d86ca8c78067
33
+ X-Runtime:
34
+ - '0.012847'
35
+ Connection:
36
+ - keep-alive
37
+ Server:
38
+ - thin
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"token":"7BAa-6gXVc3f4XPVaCuu"}'
42
+ http_version:
43
+ recorded_at: Thu, 07 May 2015 14:28:18 GMT
44
+ - request:
45
+ method: get
46
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
47
+ body:
48
+ encoding: UTF-8
49
+ string: auth_token=7BAa-6gXVc3f4XPVaCuu
50
+ headers:
51
+ Accept:
52
+ - application/json
53
+ X-Locomotive-Account-Email:
54
+ - admin@locomotivecms.com
55
+ X-Locomotive-Account-Token:
56
+ - 7BAa-6gXVc3f4XPVaCuu
57
+ Content-Type:
58
+ - application/x-www-form-urlencoded
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ User-Agent:
62
+ - Ruby
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Content-Type:
69
+ - application/json
70
+ Content-Length:
71
+ - '1242'
72
+ Etag:
73
+ - W/"9743ede061b6ec1cdf772baad610baf5"
74
+ Cache-Control:
75
+ - max-age=0, private, must-revalidate
76
+ X-Request-Id:
77
+ - 8a058bf8-e706-41aa-a4f0-b8b05f747ef3
78
+ X-Runtime:
79
+ - '0.020903'
80
+ Connection:
81
+ - keep-alive
82
+ Server:
83
+ - thin
84
+ body:
85
+ encoding: UTF-8
86
+ string: '[{"_id":"554b767464696416f0060000","created_at":"2015-05-07T14:28:04Z","updated_at":"2015-05-07T14:28:04Z","title":"Home
87
+ page","parent_id":null,"position":0,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"slug":"index","fullpath":"index","localized_fullpaths":{"en":""},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
88
+ of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"554b767464696416f0070000","created_at":"2015-05-07T14:28:04Z","updated_at":"2015-05-07T14:28:04Z","title":"Page
89
+ not found","parent_id":null,"position":1,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"slug":"404","fullpath":"404","localized_fullpaths":{"en":"404"},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
90
+ of the 404 page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}]'
91
+ http_version:
92
+ recorded_at: Thu, 07 May 2015 14:28:18 GMT
93
+ - request:
94
+ method: post
95
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
96
+ body:
97
+ encoding: UTF-8
98
+ string: auth_token=7BAa-6gXVc3f4XPVaCuu&page%5Bparent%5D=index&page%5Bslug%5D=about-us&page%5Btemplate%5D=Locomotive+rocks%21&page%5Btitle%5D=About+us
99
+ headers:
100
+ Accept:
101
+ - application/json
102
+ X-Locomotive-Account-Email:
103
+ - admin@locomotivecms.com
104
+ X-Locomotive-Account-Token:
105
+ - 7BAa-6gXVc3f4XPVaCuu
106
+ Content-Type:
107
+ - application/x-www-form-urlencoded
108
+ Accept-Encoding:
109
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
110
+ User-Agent:
111
+ - Ruby
112
+ response:
113
+ status:
114
+ code: 201
115
+ message: Created
116
+ headers:
117
+ Content-Type:
118
+ - application/json
119
+ Content-Length:
120
+ - '661'
121
+ Etag:
122
+ - W/"31d77daada1869a598f86f882854eb6b"
123
+ Cache-Control:
124
+ - max-age=0, private, must-revalidate
125
+ X-Request-Id:
126
+ - 9bc6f4be-2455-4705-bad0-9a9dbb8d4c73
127
+ X-Runtime:
128
+ - '0.079593'
129
+ Connection:
130
+ - keep-alive
131
+ Server:
132
+ - thin
133
+ body:
134
+ encoding: UTF-8
135
+ string: '{"_id":"554b76826469641460040000","created_at":"2015-05-07T14:28:18Z","updated_at":"2015-05-07T14:28:18Z","title":"About
136
+ us","parent_id":{"$oid":"554b767464696416f0060000"},"position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"{%
137
+ extends ''parent'' %}","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
138
+ http_version:
139
+ recorded_at: Thu, 07 May 2015 14:28:18 GMT
140
+ - request:
141
+ method: put
142
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages/554b76826469641460040000.json
143
+ body:
144
+ encoding: UTF-8
145
+ string: auth_token=7BAa-6gXVc3f4XPVaCuu&page%5Btemplate%5D=Locomotive+rocks.+period
146
+ headers:
147
+ Accept:
148
+ - application/json
149
+ X-Locomotive-Account-Email:
150
+ - admin@locomotivecms.com
151
+ X-Locomotive-Account-Token:
152
+ - 7BAa-6gXVc3f4XPVaCuu
153
+ Content-Type:
154
+ - application/x-www-form-urlencoded
155
+ Accept-Encoding:
156
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
157
+ User-Agent:
158
+ - Ruby
159
+ response:
160
+ status:
161
+ code: 200
162
+ message: OK
163
+ headers:
164
+ Content-Type:
165
+ - application/json
166
+ Content-Length:
167
+ - '663'
168
+ Etag:
169
+ - W/"c09dfe97c855fbd373aa489d002c864d"
170
+ Cache-Control:
171
+ - max-age=0, private, must-revalidate
172
+ X-Request-Id:
173
+ - 4ef2af25-ed77-42b7-bd37-4a32996e73af
174
+ X-Runtime:
175
+ - '0.038725'
176
+ Connection:
177
+ - keep-alive
178
+ Server:
179
+ - thin
180
+ body:
181
+ encoding: UTF-8
182
+ string: '{"_id":"554b76826469641460040000","created_at":"2015-05-07T14:28:18Z","updated_at":"2015-05-07T14:28:18Z","title":"About
183
+ us","parent_id":{"$oid":"554b767464696416f0060000"},"position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
184
+ rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
185
+ http_version:
186
+ recorded_at: Thu, 07 May 2015 14:28:18 GMT
187
+ - request:
188
+ method: delete
189
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages/554b76826469641460040000.json
190
+ body:
191
+ encoding: UTF-8
192
+ string: auth_token=7BAa-6gXVc3f4XPVaCuu
193
+ headers:
194
+ Accept:
195
+ - application/json
196
+ X-Locomotive-Account-Email:
197
+ - admin@locomotivecms.com
198
+ X-Locomotive-Account-Token:
199
+ - 7BAa-6gXVc3f4XPVaCuu
200
+ Content-Type:
201
+ - application/x-www-form-urlencoded
202
+ Accept-Encoding:
203
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
204
+ User-Agent:
205
+ - Ruby
206
+ response:
207
+ status:
208
+ code: 200
209
+ message: OK
210
+ headers:
211
+ Content-Type:
212
+ - application/json
213
+ Content-Length:
214
+ - '663'
215
+ Etag:
216
+ - W/"c09dfe97c855fbd373aa489d002c864d"
217
+ Cache-Control:
218
+ - max-age=0, private, must-revalidate
219
+ X-Request-Id:
220
+ - e2a720db-1592-4638-9baa-a4b714dc13f1
221
+ X-Runtime:
222
+ - '0.046890'
223
+ Connection:
224
+ - keep-alive
225
+ Server:
226
+ - thin
227
+ body:
228
+ encoding: UTF-8
229
+ string: '{"_id":"554b76826469641460040000","created_at":"2015-05-07T14:28:18Z","updated_at":"2015-05-07T14:28:18Z","title":"About
230
+ us","parent_id":{"$oid":"554b767464696416f0060000"},"position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
231
+ rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
232
+ http_version:
233
+ recorded_at: Thu, 07 May 2015 14:28:18 GMT
234
+ - request:
235
+ method: get
236
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages/fullpaths.json
237
+ body:
238
+ encoding: UTF-8
239
+ string: auth_token=7BAa-6gXVc3f4XPVaCuu
240
+ headers:
241
+ Accept:
242
+ - application/json
243
+ X-Locomotive-Account-Email:
244
+ - admin@locomotivecms.com
245
+ X-Locomotive-Account-Token:
246
+ - 7BAa-6gXVc3f4XPVaCuu
247
+ X-Locomotive-Locale:
248
+ - en
249
+ Content-Type:
250
+ - application/x-www-form-urlencoded
251
+ Accept-Encoding:
252
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
253
+ User-Agent:
254
+ - Ruby
255
+ response:
256
+ status:
257
+ code: 200
258
+ message: OK
259
+ headers:
260
+ Content-Type:
261
+ - application/json
262
+ Content-Length:
263
+ - '107'
264
+ Etag:
265
+ - W/"424257c89737e2736dce6359507c20e1"
266
+ Cache-Control:
267
+ - max-age=0, private, must-revalidate
268
+ X-Request-Id:
269
+ - 3264e9e8-8bc5-4f2f-a667-17b6f7eb1a0b
270
+ X-Runtime:
271
+ - '0.946854'
272
+ Connection:
273
+ - keep-alive
274
+ Server:
275
+ - thin
276
+ body:
277
+ encoding: UTF-8
278
+ string: '[{"_id":"554b767464696416f0060000","fullpath":"index"},{"_id":"554b767464696416f0070000","fullpath":"404"}]'
279
+ http_version:
280
+ recorded_at: Mon, 11 May 2015 19:36:55 GMT
281
+ recorded_with: VCR 2.9.3