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,385 +2,1296 @@
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/tokens.json
6
6
  body:
7
- encoding: US-ASCII
8
- string: email=john%40doe.net&password=easyone
7
+ encoding: UTF-8
8
+ string: email=admin%40locomotivecms.com&password=locomotive
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
+ - '32'
27
+ Etag:
28
+ - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 7a94fbe9-227c-4575-bb68-dd29c485fe9d
33
+ X-Runtime:
34
+ - '0.022233'
35
+ Connection:
36
+ - keep-alive
37
+ Server:
38
+ - thin
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
42
+ http_version:
43
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
44
+ - request:
45
+ method: post
46
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
47
+ body:
48
+ encoding: UTF-8
49
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_type%5Bfields%5D%5B%5D%5Blabel%5D=Title&content_type%5Bfields%5D%5B%5D%5Blocalized%5D=true&content_type%5Bfields%5D%5B%5D%5Bname%5D=title&content_type%5Bfields%5D%5B%5D%5Btype%5D=string&content_type%5Bname%5D=Article&content_type%5Bslug%5D=articles
50
+ headers:
51
+ Accept:
52
+ - application/json
53
+ X-Locomotive-Account-Email:
54
+ - admin@locomotivecms.com
55
+ X-Locomotive-Account-Token:
56
+ - NuCxqFfvpry9osYdFUm1
18
57
  Content-Type:
19
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
20
63
  response:
21
64
  status:
22
- code: 200
23
- message: OK
65
+ code: 201
66
+ message: Created
24
67
  headers:
25
- Date:
26
- - Thu, 26 Mar 2015 11:42:07 GMT
27
- Status:
28
- - 200 OK
68
+ Content-Type:
69
+ - application/json
70
+ Content-Length:
71
+ - '550'
72
+ Etag:
73
+ - W/"091ef48c4ebd6f4c8c5a70760496e798"
74
+ Cache-Control:
75
+ - max-age=0, private, must-revalidate
76
+ X-Request-Id:
77
+ - e6443b4c-0e18-4aa1-bf52-326953ebf32e
78
+ X-Runtime:
79
+ - '0.059219'
29
80
  Connection:
30
- - close
31
- Location:
32
- - http://sample.lvh.me:4000/locomotive/
81
+ - keep-alive
82
+ Server:
83
+ - thin
84
+ body:
85
+ encoding: UTF-8
86
+ string: '{"_id":"554779c46469643251330300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","name":"Article","slug":"articles","description":null,"label_field_name":"title","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"554779c46469643251340300","created_at":null,"updated_at":null,"name":"title","type":"string","label":"Title","hint":null,"required":true,"localized":true,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
87
+ http_version:
88
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
89
+ - request:
90
+ method: post
91
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
92
+ body:
93
+ encoding: UTF-8
94
+ string: email=admin%40locomotivecms.com&password=locomotive
95
+ headers:
96
+ Accept:
97
+ - application/json
98
+ Content-Type:
99
+ - application/x-www-form-urlencoded
100
+ Accept-Encoding:
101
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
102
+ User-Agent:
103
+ - Ruby
104
+ response:
105
+ status:
106
+ code: 201
107
+ message: Created
108
+ headers:
33
109
  Content-Type:
34
- - application/json; charset=utf-8
35
- X-Ua-Compatible:
36
- - IE=Edge
110
+ - application/json
111
+ Content-Length:
112
+ - '32'
37
113
  Etag:
38
- - '"557f8d72cf11ab5399621eddec942c29"'
114
+ - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
39
115
  Cache-Control:
40
116
  - max-age=0, private, must-revalidate
41
- Set-Cookie:
42
- - _locomotive_session=Mr3RL9aUNxSU2N6ew4hRngyeMyo; domain=.sample.lvh.me; path=/;
43
- HttpOnly
44
117
  X-Request-Id:
45
- - c148b081fc84bae8af1fc2dc4f415a5a
118
+ - 322548f3-3299-4ecd-89c2-d6dde3c0fb2b
46
119
  X-Runtime:
47
- - '0.705651'
120
+ - '0.015333'
121
+ Connection:
122
+ - keep-alive
123
+ Server:
124
+ - thin
48
125
  body:
49
126
  encoding: UTF-8
50
- string: '{"token":"9GLRWwc2MGTCF7SHiZSg"}'
127
+ string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
51
128
  http_version:
52
- recorded_at: Thu, 26 Mar 2015 11:42:07 GMT
129
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
53
130
  - request:
54
- method: get
55
- uri: http://sample.lvh.me:4000/locomotive/api/content_types.json?auth_token=9GLRWwc2MGTCF7SHiZSg
131
+ method: post
132
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
56
133
  body:
57
- encoding: US-ASCII
58
- string: ''
134
+ encoding: UTF-8
135
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Hello+world
59
136
  headers:
60
137
  Accept:
61
138
  - application/json
139
+ X-Locomotive-Account-Email:
140
+ - admin@locomotivecms.com
141
+ X-Locomotive-Account-Token:
142
+ - NuCxqFfvpry9osYdFUm1
143
+ Content-Type:
144
+ - application/x-www-form-urlencoded
62
145
  Accept-Encoding:
63
- - gzip
146
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
64
147
  User-Agent:
65
- - unirest-ruby/1.1
148
+ - Ruby
66
149
  response:
67
150
  status:
68
- code: 200
69
- message: OK
151
+ code: 201
152
+ message: Created
70
153
  headers:
71
- Date:
72
- - Thu, 26 Mar 2015 11:42:07 GMT
73
- Status:
74
- - 200 OK
154
+ Content-Type:
155
+ - application/json
156
+ Content-Length:
157
+ - '296'
158
+ Etag:
159
+ - W/"4f7bbc721762f2691795e834cd5340b7"
160
+ Cache-Control:
161
+ - max-age=0, private, must-revalidate
162
+ X-Request-Id:
163
+ - 8e2adf49-e3d3-48f0-a276-8e993e3ae1fb
164
+ X-Runtime:
165
+ - '0.061399'
75
166
  Connection:
76
- - close
167
+ - keep-alive
168
+ Server:
169
+ - thin
170
+ body:
171
+ encoding: UTF-8
172
+ string: '{"_id":"554779c46469643251360300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"hello-world","content_type_slug":"articles","_label":"Hello
173
+ world","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Hello
174
+ world"}'
175
+ http_version:
176
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
177
+ - request:
178
+ method: post
179
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
180
+ body:
181
+ encoding: UTF-8
182
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Lorem+ipsum
183
+ headers:
184
+ Accept:
185
+ - application/json
186
+ X-Locomotive-Account-Email:
187
+ - admin@locomotivecms.com
188
+ X-Locomotive-Account-Token:
189
+ - NuCxqFfvpry9osYdFUm1
190
+ Content-Type:
191
+ - application/x-www-form-urlencoded
192
+ Accept-Encoding:
193
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
194
+ User-Agent:
195
+ - Ruby
196
+ response:
197
+ status:
198
+ code: 201
199
+ message: Created
200
+ headers:
77
201
  Content-Type:
78
- - application/json; charset=utf-8
79
- X-Ua-Compatible:
80
- - IE=Edge
202
+ - application/json
203
+ Content-Length:
204
+ - '296'
81
205
  Etag:
82
- - '"7dbb8592219d2f208083b29864ef8522"'
206
+ - W/"69adc8f6a87970faaf7c06b8333becdc"
83
207
  Cache-Control:
84
208
  - max-age=0, private, must-revalidate
85
- Set-Cookie:
86
- - _locomotive_session=pxKxImEpxvFPudAIdRaje5_KXg0; domain=.sample.lvh.me; path=/;
87
- HttpOnly
88
209
  X-Request-Id:
89
- - f947cf728c3abd3969b4be4996a0c928
210
+ - 96748e6d-79a9-411b-8471-152f137c8772
90
211
  X-Runtime:
91
- - '0.134199'
92
- body:
93
- encoding: UTF-8
94
- string: '[{"id":"54eb4b662475804b2b00000a","_id":"54eb4b662475804b2b00000a","created_at":"2015-02-23T15:46:46Z","updated_at":"2015-02-23T15:46:47Z","name":"Bands","slug":"bands","entries_custom_fields":[{"id":"54eb4b662475804b2b00000b","_id":"54eb4b662475804b2b00000b","name":"name","label":"Name","type":"string","required":true,"localized":false,"unique":false,"hint":"Name
95
- of the band","position":0},{"id":"54eb4b662475804b2b00000c","_id":"54eb4b662475804b2b00000c","name":"leader","label":"Fullname
96
- of the leader","type":"string","required":false,"localized":false,"unique":false,"position":1},{"id":"54eb4b662475804b2b00000d","_id":"54eb4b662475804b2b00000d","name":"kind","label":"Music
97
- kind (grunge, rock, pop, country)","type":"select","required":false,"localized":false,"unique":false,"position":2,"select_options":[{"_id":"54eb4b662475804b2b00000f","name":"grunge","position":0,"id":"54eb4b662475804b2b00000f"},{"_id":"54eb4b662475804b2b000010","name":"rock","position":1,"id":"54eb4b662475804b2b000010"},{"_id":"54eb4b662475804b2b000011","name":"country","position":2,"id":"54eb4b662475804b2b000011"}],"raw_select_options":[{"id":"54eb4b662475804b2b00000f","name":{"en":"grunge"},"position":2},{"id":"54eb4b662475804b2b000010","name":{"en":"rock"},"position":2},{"id":"54eb4b662475804b2b000011","name":{"en":"country"},"position":2}]},{"id":"54eb4b662475804b2b00002d","_id":"54eb4b662475804b2b00002d","name":"songs","label":"Songs","type":"has_many","required":false,"localized":false,"unique":false,"position":3,"class_name":"Locomotive::ContentEntry54eb4b662475804b2b00001e","inverse_of":"band","ui_enabled":true,"class_slug":"songs"},{"id":"54eb4b662475804b2b00000e","_id":"54eb4b662475804b2b00000e","name":"featured","label":"Featured","type":"boolean","required":false,"localized":false,"unique":false,"position":4}],"description":"List
98
- of bands","label_field_name":"name","order_by":"54eb4b662475804b2b00000b","order_direction":"asc","order_by_field_name":"name","public_submission_enabled":false,"public_submission_account_emails":[]},{"id":"54eb4bb52475804b2b000037","_id":"54eb4bb52475804b2b000037","created_at":"2015-02-23T15:48:05Z","updated_at":"2015-02-23T15:48:05Z","name":"Events","slug":"events","entries_custom_fields":[{"id":"54eb4bb52475804b2b000038","_id":"54eb4bb52475804b2b000038","name":"place","label":"Place","type":"string","required":true,"localized":false,"unique":false,"hint":"Name
99
- of the place","position":0},{"id":"54eb4bb52475804b2b000039","_id":"54eb4bb52475804b2b000039","name":"date","label":"Date","type":"date","required":false,"localized":false,"unique":false,"hint":"Date
100
- of the event","position":1},{"id":"54eb4bb52475804b2b00003a","_id":"54eb4bb52475804b2b00003a","name":"city","label":"City
101
- of the event","type":"string","required":false,"localized":false,"unique":false,"position":2},{"id":"54eb4bb52475804b2b00003b","_id":"54eb4bb52475804b2b00003b","name":"state","label":"State
102
- of the event","type":"string","required":false,"localized":false,"unique":false,"position":3},{"id":"54eb4bb52475804b2b00003c","_id":"54eb4bb52475804b2b00003c","name":"notes","label":"Notes","type":"text","required":false,"localized":false,"unique":false,"position":4,"text_formatting":""},{"id":"54eb4bb52475804b2b00003d","_id":"54eb4bb52475804b2b00003d","name":"tags","label":"List
103
- of tags","type":"tags","required":false,"localized":false,"unique":false,"position":5},{"id":"54eb4bb52475804b2b00003e","_id":"54eb4bb52475804b2b00003e","name":"price","label":"Price
104
- of the event","type":"float","required":false,"localized":false,"unique":false,"position":6}],"description":"List
105
- of upcoming events","label_field_name":"place","order_by":"created_at","order_direction":"asc","order_by_field_name":"created_at","public_submission_enabled":false,"public_submission_account_emails":[]},{"id":"54eb4b662475804b2b00001a","_id":"54eb4b662475804b2b00001a","created_at":"2015-02-23T15:46:46Z","updated_at":"2015-02-23T15:46:46Z","name":"Messages","slug":"messages","entries_custom_fields":[{"id":"54eb4b662475804b2b00001b","_id":"54eb4b662475804b2b00001b","name":"name","label":"Name","type":"string","required":true,"localized":false,"unique":false,"hint":"Full
106
- name","position":0},{"id":"54eb4b662475804b2b00001c","_id":"54eb4b662475804b2b00001c","name":"email","label":"Email","type":"string","required":true,"localized":false,"unique":false,"hint":"Email","position":1},{"id":"54eb4b662475804b2b00001d","_id":"54eb4b662475804b2b00001d","name":"message","label":"Message","type":"text","required":true,"localized":false,"unique":false,"hint":"Customer
107
- message","position":2,"text_formatting":""}],"description":"Messages posted
108
- by new potential customers","label_field_name":"name","order_by":"created_at","order_direction":"asc","order_by_field_name":"created_at","public_submission_enabled":true,"public_submission_account_emails":[]},{"id":"54eb4b662475804b2b00001e","_id":"54eb4b662475804b2b00001e","created_at":"2015-02-23T15:46:46Z","updated_at":"2015-02-23T15:46:47Z","name":"Songs","slug":"songs","entries_custom_fields":[{"id":"54eb4b662475804b2b00001f","_id":"54eb4b662475804b2b00001f","name":"title","label":"Title","type":"string","required":true,"localized":false,"unique":false,"hint":"Title
109
- of your song","position":0},{"id":"54eb4b672475804b2b00002e","_id":"54eb4b672475804b2b00002e","name":"band","label":"Band","type":"belongs_to","required":false,"localized":false,"unique":false,"position":1,"class_name":"Locomotive::ContentEntry54eb4b662475804b2b00000a","ui_enabled":true,"class_slug":"bands"},{"id":"54eb4b662475804b2b000020","_id":"54eb4b662475804b2b000020","name":"cover","label":"Cover","type":"file","required":true,"localized":false,"unique":false,"position":2},{"id":"54eb4b662475804b2b000021","_id":"54eb4b662475804b2b000021","name":"short_description","label":"Short
110
- description","type":"text","required":false,"localized":false,"unique":false,"position":3,"text_formatting":"html"},{"id":"54eb4b662475804b2b000022","_id":"54eb4b662475804b2b000022","name":"audio_url","label":"Audio
111
- url","type":"string","required":false,"localized":false,"unique":false,"hint":"Url
112
- to a service like Blip for instance","position":4},{"id":"54eb4b662475804b2b000023","_id":"54eb4b662475804b2b000023","name":"duration","label":"Duration","type":"string","required":false,"localized":false,"unique":false,"hint":"format
113
- like: mm:ss","position":5}],"label_field_name":"title","order_by":"_position","order_direction":"asc","order_by_field_name":"_position","public_submission_enabled":false,"public_submission_account_emails":[]},{"id":"54eb4b662475804b2b000024","_id":"54eb4b662475804b2b000024","created_at":"2015-02-23T15:46:46Z","updated_at":"2015-02-23T15:46:46Z","name":"Updates","slug":"updates","entries_custom_fields":[{"id":"54eb4b662475804b2b000025","_id":"54eb4b662475804b2b000025","name":"title","label":"Title","type":"string","required":true,"localized":true,"unique":false,"hint":"Not
114
- displayed in the website","position":0},{"id":"54eb4b662475804b2b000026","_id":"54eb4b662475804b2b000026","name":"text","label":"Text","type":"text","required":false,"localized":true,"unique":false,"hint":"Text
115
- displayed in the home page","position":1,"text_formatting":"html"},{"id":"54eb4b662475804b2b000027","_id":"54eb4b662475804b2b000027","name":"category","label":"Category","type":"select","required":false,"localized":true,"unique":false,"hint":"Pick
116
- a category","position":2,"select_options":[{"_id":"54eb4b662475804b2b000029","name":"General","position":0,"id":"54eb4b662475804b2b000029"},{"_id":"54eb4b662475804b2b00002a","name":"Gigs","position":1,"id":"54eb4b662475804b2b00002a"},{"_id":"54eb4b662475804b2b00002b","name":"Bands","position":2,"id":"54eb4b662475804b2b00002b"},{"_id":"54eb4b662475804b2b00002c","name":"Albums","position":3,"id":"54eb4b662475804b2b00002c"}],"raw_select_options":[{"id":"54eb4b662475804b2b000029","name":{"en":"General","fr":"G\u00e9n\u00e9ral"},"position":2},{"id":"54eb4b662475804b2b00002a","name":{"en":"Gigs","fr":"Concerts"},"position":2},{"id":"54eb4b662475804b2b00002b","name":{"en":"Bands","fr":"Groupes"},"position":2},{"id":"54eb4b662475804b2b00002c","name":{"en":"Albums"},"position":2}]},{"id":"54eb4b662475804b2b000028","_id":"54eb4b662475804b2b000028","name":"date","label":"Date","type":"date","required":false,"localized":false,"unique":false,"hint":"Date
117
- of the update","position":3}],"description":"List of updates","label_field_name":"title","order_by":"54eb4b662475804b2b000028","order_direction":"asc","order_by_field_name":"date","public_submission_enabled":false,"public_submission_account_emails":[]}]'
212
+ - '0.034541'
213
+ Connection:
214
+ - keep-alive
215
+ Server:
216
+ - thin
217
+ body:
218
+ encoding: UTF-8
219
+ string: '{"_id":"554779c46469643251380300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"lorem-ipsum","content_type_slug":"articles","_label":"Lorem
220
+ ipsum","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Lorem
221
+ ipsum"}'
118
222
  http_version:
119
- recorded_at: Thu, 26 Mar 2015 11:42:07 GMT
223
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
120
224
  - request:
121
225
  method: get
122
- uri: http://sample.lvh.me:4000/locomotive/api/content_types/bands/entries.json?auth_token=9GLRWwc2MGTCF7SHiZSg&where=%7B%7D
226
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
123
227
  body:
124
- encoding: US-ASCII
125
- string: ''
228
+ encoding: UTF-8
229
+ string: auth_token=NuCxqFfvpry9osYdFUm1&where=%7B%7D
126
230
  headers:
127
231
  Accept:
128
232
  - application/json
233
+ X-Locomotive-Account-Email:
234
+ - admin@locomotivecms.com
235
+ X-Locomotive-Account-Token:
236
+ - NuCxqFfvpry9osYdFUm1
237
+ Content-Type:
238
+ - application/x-www-form-urlencoded
129
239
  Accept-Encoding:
130
- - gzip
240
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
131
241
  User-Agent:
132
- - unirest-ruby/1.1
242
+ - Ruby
133
243
  response:
134
244
  status:
135
245
  code: 200
136
246
  message: OK
137
247
  headers:
138
- Date:
139
- - Thu, 26 Mar 2015 11:42:07 GMT
140
- Status:
141
- - 200 OK
142
- Connection:
143
- - close
144
248
  X-Total-Pages:
145
249
  - '1'
146
250
  X-Per-Page:
147
251
  - '10'
148
252
  X-Total-Entries:
149
- - '3'
253
+ - '2'
150
254
  Content-Type:
151
- - application/json; charset=utf-8
152
- X-Ua-Compatible:
153
- - IE=Edge
255
+ - application/json
256
+ Content-Length:
257
+ - '595'
154
258
  Etag:
155
- - '"91c1194717bc84d6d2704913a58b5d0b"'
259
+ - W/"6b78a029e32eb9e5d6861eb86994db52"
156
260
  Cache-Control:
157
261
  - max-age=0, private, must-revalidate
158
- Set-Cookie:
159
- - _locomotive_session=uFUrpZan-EA2AzmSsY-9cFje0sA; domain=.sample.lvh.me; path=/;
160
- HttpOnly
161
262
  X-Request-Id:
162
- - 8033ea5edff41d69d608268af677821b
263
+ - c38212f8-54e7-44c7-bb7f-487857b0f1ad
163
264
  X-Runtime:
164
- - '0.088316'
265
+ - '0.035506'
266
+ Connection:
267
+ - keep-alive
268
+ Server:
269
+ - thin
165
270
  body:
166
271
  encoding: UTF-8
167
- string: '[{"id":"54eb4bbc2475804b2b000040","_id":"54eb4bbc2475804b2b000040","created_at":"2015-02-23T15:48:12Z","updated_at":"2015-02-23T15:48:12Z","_label":"Alice
168
- in Chains","_slug":"alice-in-chains","_position":1,"_visible":true,"content_type_slug":"bands","name":"Alice
169
- in Chains","leader":"Layne","kind":"grunge","kind_id":"54eb4b662475804b2b00000f","featured":false,"songs":[]},{"id":"54eb4bbc2475804b2b00003f","_id":"54eb4bbc2475804b2b00003f","created_at":"2015-02-23T15:48:12Z","updated_at":"2015-02-23T15:48:12Z","_label":"Pearl
170
- Jam","_slug":"pearl-jam","_position":0,"_visible":true,"content_type_slug":"bands","name":"Pearl
171
- Jam","leader":"Eddie","kind":"grunge","kind_id":"54eb4b662475804b2b00000f","featured":false,"songs":["song-number-1","song-number-2","song-number-3","song-number-4"]},{"id":"54eb4bbc2475804b2b000041","_id":"54eb4bbc2475804b2b000041","created_at":"2015-02-23T15:48:12Z","updated_at":"2015-02-23T15:48:12Z","_label":"The
172
- who","_slug":"the-who","_position":2,"_visible":true,"content_type_slug":"bands","name":"The
173
- who","leader":"Peter","kind":"rock","kind_id":"54eb4b662475804b2b000010","featured":true,"songs":["song-number-5","song-number-6"]}]'
272
+ string: '[{"_id":"554779c46469643251360300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"hello-world","content_type_slug":"articles","_label":"Hello
273
+ world","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Hello
274
+ world"},{"_id":"554779c46469643251380300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"lorem-ipsum","content_type_slug":"articles","_label":"Lorem
275
+ ipsum","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Lorem
276
+ ipsum"}]'
174
277
  http_version:
175
- recorded_at: Thu, 26 Mar 2015 11:42:07 GMT
278
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
176
279
  - request:
177
- method: get
178
- uri: http://sample.lvh.me:4000/locomotive/api/content_types/bands/entries.json?auth_token=9GLRWwc2MGTCF7SHiZSg&page=2&where=%7B%7D
280
+ method: delete
281
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries/hello-world.json
179
282
  body:
180
- encoding: US-ASCII
181
- string: ''
283
+ encoding: UTF-8
284
+ string: auth_token=NuCxqFfvpry9osYdFUm1
182
285
  headers:
183
286
  Accept:
184
287
  - application/json
288
+ X-Locomotive-Account-Email:
289
+ - admin@locomotivecms.com
290
+ X-Locomotive-Account-Token:
291
+ - NuCxqFfvpry9osYdFUm1
292
+ Content-Type:
293
+ - application/x-www-form-urlencoded
185
294
  Accept-Encoding:
186
- - gzip
295
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
187
296
  User-Agent:
188
- - unirest-ruby/1.1
297
+ - Ruby
189
298
  response:
190
299
  status:
191
300
  code: 200
192
301
  message: OK
193
302
  headers:
194
- Date:
195
- - Thu, 26 Mar 2015 11:42:47 GMT
196
- Status:
197
- - 200 OK
198
- Connection:
199
- - close
200
- X-Total-Pages:
201
- - '1'
202
- X-Per-Page:
203
- - '10'
204
- X-Total-Entries:
205
- - '3'
206
303
  Content-Type:
207
- - application/json; charset=utf-8
208
- X-Ua-Compatible:
209
- - IE=Edge
304
+ - application/json
305
+ Content-Length:
306
+ - '296'
210
307
  Etag:
211
- - '"d751713988987e9331980363e24189ce"'
308
+ - W/"4f7bbc721762f2691795e834cd5340b7"
212
309
  Cache-Control:
213
310
  - max-age=0, private, must-revalidate
214
- Set-Cookie:
215
- - _locomotive_session=MCwnvao2L1V4f6_hrHaj8EG6Xnk; domain=.sample.lvh.me; path=/;
216
- HttpOnly
217
311
  X-Request-Id:
218
- - b6c46c8e51af9298038b5039e964cc07
312
+ - cf8cdac2-7842-482d-a433-e0d6c7f375d9
219
313
  X-Runtime:
220
- - '0.038975'
314
+ - '0.028457'
315
+ Connection:
316
+ - keep-alive
317
+ Server:
318
+ - thin
221
319
  body:
222
320
  encoding: UTF-8
223
- string: "[]"
321
+ string: '{"_id":"554779c46469643251360300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"hello-world","content_type_slug":"articles","_label":"Hello
322
+ world","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Hello
323
+ world"}'
224
324
  http_version:
225
- recorded_at: Thu, 26 Mar 2015 11:42:47 GMT
325
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
226
326
  - request:
227
- method: get
228
- uri: http://sample.lvh.me:4000/locomotive/api/content_types/bands/entries.json?auth_token=9GLRWwc2MGTCF7SHiZSg&page=2&per_page=2&where=%7B%7D
327
+ method: delete
328
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries/lorem-ipsum.json
229
329
  body:
230
- encoding: US-ASCII
231
- string: ''
330
+ encoding: UTF-8
331
+ string: auth_token=NuCxqFfvpry9osYdFUm1
232
332
  headers:
233
333
  Accept:
234
334
  - application/json
335
+ X-Locomotive-Account-Email:
336
+ - admin@locomotivecms.com
337
+ X-Locomotive-Account-Token:
338
+ - NuCxqFfvpry9osYdFUm1
339
+ Content-Type:
340
+ - application/x-www-form-urlencoded
235
341
  Accept-Encoding:
236
- - gzip
342
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
237
343
  User-Agent:
238
- - unirest-ruby/1.1
344
+ - Ruby
239
345
  response:
240
346
  status:
241
347
  code: 200
242
348
  message: OK
243
349
  headers:
244
- Date:
245
- - Thu, 26 Mar 2015 11:43:54 GMT
246
- Status:
247
- - 200 OK
350
+ Content-Type:
351
+ - application/json
352
+ Content-Length:
353
+ - '296'
354
+ Etag:
355
+ - W/"69adc8f6a87970faaf7c06b8333becdc"
356
+ Cache-Control:
357
+ - max-age=0, private, must-revalidate
358
+ X-Request-Id:
359
+ - d87c8190-b7b1-4b2b-9fe7-3bc0e704e5c7
360
+ X-Runtime:
361
+ - '0.029785'
248
362
  Connection:
249
- - close
250
- X-Total-Pages:
251
- - '2'
252
- X-Per-Page:
253
- - '2'
254
- X-Total-Entries:
255
- - '3'
363
+ - keep-alive
364
+ Server:
365
+ - thin
366
+ body:
367
+ encoding: UTF-8
368
+ string: '{"_id":"554779c46469643251380300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"lorem-ipsum","content_type_slug":"articles","_label":"Lorem
369
+ ipsum","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Lorem
370
+ ipsum"}'
371
+ http_version:
372
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
373
+ - request:
374
+ method: post
375
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
376
+ body:
377
+ encoding: UTF-8
378
+ string: email=admin%40locomotivecms.com&password=locomotive
379
+ headers:
380
+ Accept:
381
+ - application/json
382
+ Content-Type:
383
+ - application/x-www-form-urlencoded
384
+ Accept-Encoding:
385
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
386
+ User-Agent:
387
+ - Ruby
388
+ response:
389
+ status:
390
+ code: 201
391
+ message: Created
392
+ headers:
393
+ Content-Type:
394
+ - application/json
395
+ Content-Length:
396
+ - '32'
397
+ Etag:
398
+ - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
399
+ Cache-Control:
400
+ - max-age=0, private, must-revalidate
401
+ X-Request-Id:
402
+ - 8e1c7680-5acc-49b5-8091-595748b29cb3
403
+ X-Runtime:
404
+ - '0.014975'
405
+ Connection:
406
+ - keep-alive
407
+ Server:
408
+ - thin
409
+ body:
410
+ encoding: UTF-8
411
+ string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
412
+ http_version:
413
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
414
+ - request:
415
+ method: post
416
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
417
+ body:
418
+ encoding: UTF-8
419
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Hello+world
420
+ headers:
421
+ Accept:
422
+ - application/json
423
+ X-Locomotive-Account-Email:
424
+ - admin@locomotivecms.com
425
+ X-Locomotive-Account-Token:
426
+ - NuCxqFfvpry9osYdFUm1
427
+ Content-Type:
428
+ - application/x-www-form-urlencoded
429
+ Accept-Encoding:
430
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
431
+ User-Agent:
432
+ - Ruby
433
+ response:
434
+ status:
435
+ code: 201
436
+ message: Created
437
+ headers:
438
+ Content-Type:
439
+ - application/json
440
+ Content-Length:
441
+ - '296'
442
+ Etag:
443
+ - W/"9235f258633afdaee4ca4d49b2e48e95"
444
+ Cache-Control:
445
+ - max-age=0, private, must-revalidate
446
+ X-Request-Id:
447
+ - eaabb738-2c57-44da-a426-6e718d375a71
448
+ X-Runtime:
449
+ - '0.062553'
450
+ Connection:
451
+ - keep-alive
452
+ Server:
453
+ - thin
454
+ body:
455
+ encoding: UTF-8
456
+ string: '{"_id":"554779c464696432513a0300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"hello-world","content_type_slug":"articles","_label":"Hello
457
+ world","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Hello
458
+ world"}'
459
+ http_version:
460
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
461
+ - request:
462
+ method: post
463
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
464
+ body:
465
+ encoding: UTF-8
466
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Lorem+ipsum
467
+ headers:
468
+ Accept:
469
+ - application/json
470
+ X-Locomotive-Account-Email:
471
+ - admin@locomotivecms.com
472
+ X-Locomotive-Account-Token:
473
+ - NuCxqFfvpry9osYdFUm1
474
+ Content-Type:
475
+ - application/x-www-form-urlencoded
476
+ Accept-Encoding:
477
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
478
+ User-Agent:
479
+ - Ruby
480
+ response:
481
+ status:
482
+ code: 201
483
+ message: Created
484
+ headers:
256
485
  Content-Type:
257
- - application/json; charset=utf-8
258
- X-Ua-Compatible:
259
- - IE=Edge
486
+ - application/json
487
+ Content-Length:
488
+ - '296'
260
489
  Etag:
261
- - '"77cec12cfd3fa8312a6ebfe37146b5b3"'
490
+ - W/"d56c019d5c1bf287b4c667ba18d92b62"
262
491
  Cache-Control:
263
492
  - max-age=0, private, must-revalidate
264
- Set-Cookie:
265
- - _locomotive_session=MrAzKiNGfNlKnrgF1ZUdLEcJpm8; domain=.sample.lvh.me; path=/;
266
- HttpOnly
267
493
  X-Request-Id:
268
- - 133e08d818134e7ed3771af680a81a36
494
+ - d295d99d-93e6-45f3-8379-1aee3291bf54
269
495
  X-Runtime:
270
- - '0.046230'
496
+ - '0.036524'
497
+ Connection:
498
+ - keep-alive
499
+ Server:
500
+ - thin
271
501
  body:
272
502
  encoding: UTF-8
273
- string: '[{"id":"54eb4bbc2475804b2b000041","_id":"54eb4bbc2475804b2b000041","created_at":"2015-02-23T15:48:12Z","updated_at":"2015-02-23T15:48:12Z","_label":"The
274
- who","_slug":"the-who","_position":2,"_visible":true,"content_type_slug":"bands","name":"The
275
- who","leader":"Peter","kind":"rock","kind_id":"54eb4b662475804b2b000010","featured":true,"songs":["song-number-5","song-number-6"]}]'
503
+ string: '{"_id":"554779c464696432513c0300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"lorem-ipsum","content_type_slug":"articles","_label":"Lorem
504
+ ipsum","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Lorem
505
+ ipsum"}'
276
506
  http_version:
277
- recorded_at: Thu, 26 Mar 2015 11:43:54 GMT
507
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
278
508
  - request:
279
509
  method: get
280
- uri: http://sample.lvh.me:4000/locomotive/api/content_types/bands/entries.json?auth_token=9GLRWwc2MGTCF7SHiZSg&where=%7B%22_visible%22:true,%22name%22:%22Pearl%20Jam%22%7D
510
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
281
511
  body:
282
- encoding: US-ASCII
283
- string: ''
512
+ encoding: UTF-8
513
+ string: auth_token=NuCxqFfvpry9osYdFUm1&page=2&per_page=1&where=%7B%7D
284
514
  headers:
285
515
  Accept:
286
516
  - application/json
517
+ X-Locomotive-Account-Email:
518
+ - admin@locomotivecms.com
519
+ X-Locomotive-Account-Token:
520
+ - NuCxqFfvpry9osYdFUm1
521
+ Content-Type:
522
+ - application/x-www-form-urlencoded
287
523
  Accept-Encoding:
288
- - gzip
524
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
289
525
  User-Agent:
290
- - unirest-ruby/1.1
526
+ - Ruby
291
527
  response:
292
528
  status:
293
529
  code: 200
294
530
  message: OK
295
531
  headers:
296
- Date:
297
- - Thu, 26 Mar 2015 11:46:05 GMT
298
- Status:
299
- - 200 OK
300
- Connection:
301
- - close
302
532
  X-Total-Pages:
303
- - '1'
533
+ - '2'
304
534
  X-Per-Page:
305
- - '10'
306
- X-Total-Entries:
307
535
  - '1'
536
+ X-Total-Entries:
537
+ - '2'
308
538
  Content-Type:
309
- - application/json; charset=utf-8
310
- X-Ua-Compatible:
311
- - IE=Edge
539
+ - application/json
540
+ Content-Length:
541
+ - '298'
312
542
  Etag:
313
- - '"f8ee5f52f06bb626aa8998c399bdd303"'
543
+ - W/"df5372bb8068a367894bf736a97d2268"
314
544
  Cache-Control:
315
545
  - max-age=0, private, must-revalidate
316
- Set-Cookie:
317
- - _locomotive_session=JEUQBJGbGbEkga1EmhwA4en9kbo; domain=.sample.lvh.me; path=/;
318
- HttpOnly
319
546
  X-Request-Id:
320
- - 152e785ab085c083f15a8b5e9b8652da
547
+ - d3087a57-e007-4d2d-b15d-63b5c2d328dc
321
548
  X-Runtime:
322
- - '0.043661'
549
+ - '0.029519'
550
+ Connection:
551
+ - keep-alive
552
+ Server:
553
+ - thin
323
554
  body:
324
555
  encoding: UTF-8
325
- string: '[{"id":"54eb4bbc2475804b2b00003f","_id":"54eb4bbc2475804b2b00003f","created_at":"2015-02-23T15:48:12Z","updated_at":"2015-02-23T15:48:12Z","_label":"Pearl
326
- Jam","_slug":"pearl-jam","_position":0,"_visible":true,"content_type_slug":"bands","name":"Pearl
327
- Jam","leader":"Eddie","kind":"grunge","kind_id":"54eb4b662475804b2b00000f","featured":false,"songs":["song-number-1","song-number-2","song-number-3","song-number-4"]}]'
556
+ string: '[{"_id":"554779c464696432513c0300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"lorem-ipsum","content_type_slug":"articles","_label":"Lorem
557
+ ipsum","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Lorem
558
+ ipsum"}]'
328
559
  http_version:
329
- recorded_at: Thu, 26 Mar 2015 11:46:05 GMT
560
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
330
561
  - request:
331
- method: put
332
- uri: http://sample.lvh.me:4000/locomotive/api/content_types/bands/entries/54eb4bbc2475804b2b000040.json
562
+ method: delete
563
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries/hello-world.json
333
564
  body:
334
- encoding: US-ASCII
335
- string: content_entry[name]=Pearl%20Jam&auth_token=9GLRWwc2MGTCF7SHiZSg
565
+ encoding: UTF-8
566
+ string: auth_token=NuCxqFfvpry9osYdFUm1
336
567
  headers:
337
568
  Accept:
338
569
  - application/json
570
+ X-Locomotive-Account-Email:
571
+ - admin@locomotivecms.com
572
+ X-Locomotive-Account-Token:
573
+ - NuCxqFfvpry9osYdFUm1
574
+ Content-Type:
575
+ - application/x-www-form-urlencoded
339
576
  Accept-Encoding:
340
- - gzip
577
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
341
578
  User-Agent:
342
- - unirest-ruby/1.1
579
+ - Ruby
580
+ response:
581
+ status:
582
+ code: 200
583
+ message: OK
584
+ headers:
585
+ Content-Type:
586
+ - application/json
343
587
  Content-Length:
344
- - '63'
588
+ - '296'
589
+ Etag:
590
+ - W/"9235f258633afdaee4ca4d49b2e48e95"
591
+ Cache-Control:
592
+ - max-age=0, private, must-revalidate
593
+ X-Request-Id:
594
+ - 5e49b9db-d273-49a5-a64f-9f3848520a22
595
+ X-Runtime:
596
+ - '0.029629'
597
+ Connection:
598
+ - keep-alive
599
+ Server:
600
+ - thin
601
+ body:
602
+ encoding: UTF-8
603
+ string: '{"_id":"554779c464696432513a0300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"hello-world","content_type_slug":"articles","_label":"Hello
604
+ world","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Hello
605
+ world"}'
606
+ http_version:
607
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
608
+ - request:
609
+ method: delete
610
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries/lorem-ipsum.json
611
+ body:
612
+ encoding: UTF-8
613
+ string: auth_token=NuCxqFfvpry9osYdFUm1
614
+ headers:
615
+ Accept:
616
+ - application/json
617
+ X-Locomotive-Account-Email:
618
+ - admin@locomotivecms.com
619
+ X-Locomotive-Account-Token:
620
+ - NuCxqFfvpry9osYdFUm1
345
621
  Content-Type:
346
622
  - application/x-www-form-urlencoded
623
+ Accept-Encoding:
624
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
625
+ User-Agent:
626
+ - Ruby
347
627
  response:
348
628
  status:
349
629
  code: 200
350
630
  message: OK
351
631
  headers:
352
- Date:
353
- - Thu, 26 Mar 2015 11:55:30 GMT
354
- Status:
355
- - 200 OK
356
- Connection:
357
- - close
358
- X-Message:
359
- - '"Content%20entry%20was%20successfully%20updated."'
360
- X-Message-Type:
361
- - notice
362
- Location:
363
- - http://sample.lvh.me:4000/locomotive/api/content_types/bands/entries
364
- Content-Type:
365
- - application/json; charset=utf-8
366
- X-Ua-Compatible:
367
- - IE=Edge
632
+ Content-Type:
633
+ - application/json
634
+ Content-Length:
635
+ - '296'
368
636
  Etag:
369
- - '"84c5c68cba09d1589e78a8827644a958"'
637
+ - W/"d56c019d5c1bf287b4c667ba18d92b62"
370
638
  Cache-Control:
371
639
  - max-age=0, private, must-revalidate
372
- Set-Cookie:
373
- - _locomotive_session=0Nu-IUIFMFrUHygtzzQCMPzNa6k; domain=.sample.lvh.me; path=/;
374
- HttpOnly
375
640
  X-Request-Id:
376
- - 6650fc80d6ae5f691cc38a1cc868d8c2
641
+ - c107431a-bc3d-41d1-bc56-d9487596ddf0
377
642
  X-Runtime:
378
- - '0.060579'
643
+ - '0.029452'
644
+ Connection:
645
+ - keep-alive
646
+ Server:
647
+ - thin
648
+ body:
649
+ encoding: UTF-8
650
+ string: '{"_id":"554779c464696432513c0300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"lorem-ipsum","content_type_slug":"articles","_label":"Lorem
651
+ ipsum","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Lorem
652
+ ipsum"}'
653
+ http_version:
654
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
655
+ - request:
656
+ method: post
657
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
658
+ body:
659
+ encoding: UTF-8
660
+ string: email=admin%40locomotivecms.com&password=locomotive
661
+ headers:
662
+ Accept:
663
+ - application/json
664
+ Content-Type:
665
+ - application/x-www-form-urlencoded
666
+ Accept-Encoding:
667
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
668
+ User-Agent:
669
+ - Ruby
670
+ response:
671
+ status:
672
+ code: 201
673
+ message: Created
674
+ headers:
675
+ Content-Type:
676
+ - application/json
677
+ Content-Length:
678
+ - '32'
679
+ Etag:
680
+ - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
681
+ Cache-Control:
682
+ - max-age=0, private, must-revalidate
683
+ X-Request-Id:
684
+ - 77bb09be-4e32-4bf7-b78c-971ffe84fdc2
685
+ X-Runtime:
686
+ - '0.015073'
687
+ Connection:
688
+ - keep-alive
689
+ Server:
690
+ - thin
691
+ body:
692
+ encoding: UTF-8
693
+ string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
694
+ http_version:
695
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
696
+ - request:
697
+ method: post
698
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
699
+ body:
700
+ encoding: UTF-8
701
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Hello+world
702
+ headers:
703
+ Accept:
704
+ - application/json
705
+ X-Locomotive-Account-Email:
706
+ - admin@locomotivecms.com
707
+ X-Locomotive-Account-Token:
708
+ - NuCxqFfvpry9osYdFUm1
709
+ Content-Type:
710
+ - application/x-www-form-urlencoded
711
+ Accept-Encoding:
712
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
713
+ User-Agent:
714
+ - Ruby
715
+ response:
716
+ status:
717
+ code: 201
718
+ message: Created
719
+ headers:
720
+ Content-Type:
721
+ - application/json
722
+ Content-Length:
723
+ - '296'
724
+ Etag:
725
+ - W/"7be86633221c5d85c2637e13468a9a1b"
726
+ Cache-Control:
727
+ - max-age=0, private, must-revalidate
728
+ X-Request-Id:
729
+ - 4ccaf083-efc9-4ddb-8037-4945e159ebbe
730
+ X-Runtime:
731
+ - '0.049922'
732
+ Connection:
733
+ - keep-alive
734
+ Server:
735
+ - thin
736
+ body:
737
+ encoding: UTF-8
738
+ string: '{"_id":"554779c464696432513e0300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"hello-world","content_type_slug":"articles","_label":"Hello
739
+ world","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Hello
740
+ world"}'
741
+ http_version:
742
+ recorded_at: Mon, 04 May 2015 13:53:08 GMT
743
+ - request:
744
+ method: post
745
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
746
+ body:
747
+ encoding: UTF-8
748
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Lorem+ipsum
749
+ headers:
750
+ Accept:
751
+ - application/json
752
+ X-Locomotive-Account-Email:
753
+ - admin@locomotivecms.com
754
+ X-Locomotive-Account-Token:
755
+ - NuCxqFfvpry9osYdFUm1
756
+ Content-Type:
757
+ - application/x-www-form-urlencoded
758
+ Accept-Encoding:
759
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
760
+ User-Agent:
761
+ - Ruby
762
+ response:
763
+ status:
764
+ code: 201
765
+ message: Created
766
+ headers:
767
+ Content-Type:
768
+ - application/json
769
+ Content-Length:
770
+ - '296'
771
+ Etag:
772
+ - W/"bcb2ee025c9ae73aee1786c9a1fec4ce"
773
+ Cache-Control:
774
+ - max-age=0, private, must-revalidate
775
+ X-Request-Id:
776
+ - 714b8c7d-dbf8-4576-856b-f26a472d6a5e
777
+ X-Runtime:
778
+ - '0.034889'
779
+ Connection:
780
+ - keep-alive
781
+ Server:
782
+ - thin
783
+ body:
784
+ encoding: UTF-8
785
+ string: '{"_id":"554779c56469643251400300","created_at":"2015-05-04T13:53:09Z","updated_at":"2015-05-04T13:53:09Z","_slug":"lorem-ipsum","content_type_slug":"articles","_label":"Lorem
786
+ ipsum","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Lorem
787
+ ipsum"}'
788
+ http_version:
789
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
790
+ - request:
791
+ method: get
792
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
793
+ body:
794
+ encoding: UTF-8
795
+ string: auth_token=NuCxqFfvpry9osYdFUm1&where=%7B%22_visible%22%3Atrue%2C%22title%22%3A%22Hello+world%22%7D
796
+ headers:
797
+ Accept:
798
+ - application/json
799
+ X-Locomotive-Account-Email:
800
+ - admin@locomotivecms.com
801
+ X-Locomotive-Account-Token:
802
+ - NuCxqFfvpry9osYdFUm1
803
+ Content-Type:
804
+ - application/x-www-form-urlencoded
805
+ Accept-Encoding:
806
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
807
+ User-Agent:
808
+ - Ruby
809
+ response:
810
+ status:
811
+ code: 200
812
+ message: OK
813
+ headers:
814
+ X-Total-Pages:
815
+ - '1'
816
+ X-Per-Page:
817
+ - '10'
818
+ X-Total-Entries:
819
+ - '1'
820
+ Content-Type:
821
+ - application/json
822
+ Content-Length:
823
+ - '298'
824
+ Etag:
825
+ - W/"ef84aaecf9796904113af1dbc1f12bad"
826
+ Cache-Control:
827
+ - max-age=0, private, must-revalidate
828
+ X-Request-Id:
829
+ - c870cc02-9d29-4b68-b39d-abf6d9a62e1a
830
+ X-Runtime:
831
+ - '0.027913'
832
+ Connection:
833
+ - keep-alive
834
+ Server:
835
+ - thin
836
+ body:
837
+ encoding: UTF-8
838
+ string: '[{"_id":"554779c464696432513e0300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"hello-world","content_type_slug":"articles","_label":"Hello
839
+ world","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Hello
840
+ world"}]'
841
+ http_version:
842
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
843
+ - request:
844
+ method: delete
845
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries/hello-world.json
846
+ body:
847
+ encoding: UTF-8
848
+ string: auth_token=NuCxqFfvpry9osYdFUm1
849
+ headers:
850
+ Accept:
851
+ - application/json
852
+ X-Locomotive-Account-Email:
853
+ - admin@locomotivecms.com
854
+ X-Locomotive-Account-Token:
855
+ - NuCxqFfvpry9osYdFUm1
856
+ Content-Type:
857
+ - application/x-www-form-urlencoded
858
+ Accept-Encoding:
859
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
860
+ User-Agent:
861
+ - Ruby
862
+ response:
863
+ status:
864
+ code: 200
865
+ message: OK
866
+ headers:
867
+ Content-Type:
868
+ - application/json
869
+ Content-Length:
870
+ - '296'
871
+ Etag:
872
+ - W/"7be86633221c5d85c2637e13468a9a1b"
873
+ Cache-Control:
874
+ - max-age=0, private, must-revalidate
875
+ X-Request-Id:
876
+ - 07ec22c9-a274-47a7-811a-ef51e0d7024f
877
+ X-Runtime:
878
+ - '0.028462'
879
+ Connection:
880
+ - keep-alive
881
+ Server:
882
+ - thin
883
+ body:
884
+ encoding: UTF-8
885
+ string: '{"_id":"554779c464696432513e0300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","_slug":"hello-world","content_type_slug":"articles","_label":"Hello
886
+ world","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Hello
887
+ world"}'
888
+ http_version:
889
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
890
+ - request:
891
+ method: delete
892
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries/lorem-ipsum.json
893
+ body:
894
+ encoding: UTF-8
895
+ string: auth_token=NuCxqFfvpry9osYdFUm1
896
+ headers:
897
+ Accept:
898
+ - application/json
899
+ X-Locomotive-Account-Email:
900
+ - admin@locomotivecms.com
901
+ X-Locomotive-Account-Token:
902
+ - NuCxqFfvpry9osYdFUm1
903
+ Content-Type:
904
+ - application/x-www-form-urlencoded
905
+ Accept-Encoding:
906
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
907
+ User-Agent:
908
+ - Ruby
909
+ response:
910
+ status:
911
+ code: 200
912
+ message: OK
913
+ headers:
914
+ Content-Type:
915
+ - application/json
916
+ Content-Length:
917
+ - '296'
918
+ Etag:
919
+ - W/"bcb2ee025c9ae73aee1786c9a1fec4ce"
920
+ Cache-Control:
921
+ - max-age=0, private, must-revalidate
922
+ X-Request-Id:
923
+ - 23619a36-a335-4682-9738-158d0ffec482
924
+ X-Runtime:
925
+ - '0.027017'
926
+ Connection:
927
+ - keep-alive
928
+ Server:
929
+ - thin
930
+ body:
931
+ encoding: UTF-8
932
+ string: '{"_id":"554779c56469643251400300","created_at":"2015-05-04T13:53:09Z","updated_at":"2015-05-04T13:53:09Z","_slug":"lorem-ipsum","content_type_slug":"articles","_label":"Lorem
933
+ ipsum","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Lorem
934
+ ipsum"}'
935
+ http_version:
936
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
937
+ - request:
938
+ method: post
939
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
940
+ body:
941
+ encoding: UTF-8
942
+ string: email=admin%40locomotivecms.com&password=locomotive
943
+ headers:
944
+ Accept:
945
+ - application/json
946
+ Content-Type:
947
+ - application/x-www-form-urlencoded
948
+ Accept-Encoding:
949
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
950
+ User-Agent:
951
+ - Ruby
952
+ response:
953
+ status:
954
+ code: 201
955
+ message: Created
956
+ headers:
957
+ Content-Type:
958
+ - application/json
959
+ Content-Length:
960
+ - '32'
961
+ Etag:
962
+ - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
963
+ Cache-Control:
964
+ - max-age=0, private, must-revalidate
965
+ X-Request-Id:
966
+ - 222a983f-5997-4da0-8855-83eda538349c
967
+ X-Runtime:
968
+ - '0.012858'
969
+ Connection:
970
+ - keep-alive
971
+ Server:
972
+ - thin
973
+ body:
974
+ encoding: UTF-8
975
+ string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
976
+ http_version:
977
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
978
+ - request:
979
+ method: post
980
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
981
+ body:
982
+ encoding: UTF-8
983
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Random+title
984
+ headers:
985
+ Accept:
986
+ - application/json
987
+ X-Locomotive-Account-Email:
988
+ - admin@locomotivecms.com
989
+ X-Locomotive-Account-Token:
990
+ - NuCxqFfvpry9osYdFUm1
991
+ Content-Type:
992
+ - application/x-www-form-urlencoded
993
+ Accept-Encoding:
994
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
995
+ User-Agent:
996
+ - Ruby
997
+ response:
998
+ status:
999
+ code: 201
1000
+ message: Created
1001
+ headers:
1002
+ Content-Type:
1003
+ - application/json
1004
+ Content-Length:
1005
+ - '299'
1006
+ Etag:
1007
+ - W/"802ffdc70d37cc48451047993a0dd286"
1008
+ Cache-Control:
1009
+ - max-age=0, private, must-revalidate
1010
+ X-Request-Id:
1011
+ - 982528c4-ca14-4b11-8d72-56968ce67ac4
1012
+ X-Runtime:
1013
+ - '0.046773'
1014
+ Connection:
1015
+ - keep-alive
1016
+ Server:
1017
+ - thin
1018
+ body:
1019
+ encoding: UTF-8
1020
+ string: '{"_id":"554779c56469643251420300","created_at":"2015-05-04T13:53:09Z","updated_at":"2015-05-04T13:53:09Z","_slug":"random-title","content_type_slug":"articles","_label":"Random
1021
+ title","_position":0,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Random
1022
+ title"}'
1023
+ http_version:
1024
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
1025
+ - request:
1026
+ method: put
1027
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries/random-title.json
1028
+ body:
1029
+ encoding: UTF-8
1030
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Random+title%21
1031
+ headers:
1032
+ Accept:
1033
+ - application/json
1034
+ X-Locomotive-Account-Email:
1035
+ - admin@locomotivecms.com
1036
+ X-Locomotive-Account-Token:
1037
+ - NuCxqFfvpry9osYdFUm1
1038
+ X-Locomotive-Locale:
1039
+ - ''
1040
+ Content-Type:
1041
+ - application/x-www-form-urlencoded
1042
+ Accept-Encoding:
1043
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1044
+ User-Agent:
1045
+ - Ruby
1046
+ response:
1047
+ status:
1048
+ code: 200
1049
+ message: OK
1050
+ headers:
1051
+ Content-Type:
1052
+ - application/json
1053
+ Content-Length:
1054
+ - '301'
1055
+ Etag:
1056
+ - W/"2550596d734ddb8cac3bc4125a081d62"
1057
+ Cache-Control:
1058
+ - max-age=0, private, must-revalidate
1059
+ X-Request-Id:
1060
+ - 7d26ff9f-a28f-4d0a-84e9-ed3144df966b
1061
+ X-Runtime:
1062
+ - '0.034128'
1063
+ Connection:
1064
+ - keep-alive
1065
+ Server:
1066
+ - thin
1067
+ body:
1068
+ encoding: UTF-8
1069
+ string: '{"_id":"554779c56469643251440300","created_at":"2015-05-04T13:53:09Z","updated_at":"2015-05-04T13:53:09Z","_slug":"random-title","content_type_slug":"articles","_label":"Random
1070
+ title!","_position":1,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Random
1071
+ title!"}'
1072
+ http_version:
1073
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
1074
+ - request:
1075
+ method: post
1076
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
1077
+ body:
1078
+ encoding: UTF-8
1079
+ string: email=admin%40locomotivecms.com&password=locomotive
1080
+ headers:
1081
+ Accept:
1082
+ - application/json
1083
+ Content-Type:
1084
+ - application/x-www-form-urlencoded
1085
+ Accept-Encoding:
1086
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1087
+ User-Agent:
1088
+ - Ruby
1089
+ response:
1090
+ status:
1091
+ code: 201
1092
+ message: Created
1093
+ headers:
1094
+ Content-Type:
1095
+ - application/json
1096
+ Content-Length:
1097
+ - '32'
1098
+ Etag:
1099
+ - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
1100
+ Cache-Control:
1101
+ - max-age=0, private, must-revalidate
1102
+ X-Request-Id:
1103
+ - 17b025fb-f16f-429d-a324-456375a4e6d5
1104
+ X-Runtime:
1105
+ - '0.013061'
1106
+ Connection:
1107
+ - keep-alive
1108
+ Server:
1109
+ - thin
1110
+ body:
1111
+ encoding: UTF-8
1112
+ string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
1113
+ http_version:
1114
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
1115
+ - request:
1116
+ method: post
1117
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries.json
1118
+ body:
1119
+ encoding: UTF-8
1120
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Random+title
1121
+ headers:
1122
+ Accept:
1123
+ - application/json
1124
+ X-Locomotive-Account-Email:
1125
+ - admin@locomotivecms.com
1126
+ X-Locomotive-Account-Token:
1127
+ - NuCxqFfvpry9osYdFUm1
1128
+ Content-Type:
1129
+ - application/x-www-form-urlencoded
1130
+ Accept-Encoding:
1131
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1132
+ User-Agent:
1133
+ - Ruby
1134
+ response:
1135
+ status:
1136
+ code: 201
1137
+ message: Created
1138
+ headers:
1139
+ Content-Type:
1140
+ - application/json
1141
+ Content-Length:
1142
+ - '301'
1143
+ Etag:
1144
+ - W/"1e7c0b6fffc926adffe144aaf6a1d0b8"
1145
+ Cache-Control:
1146
+ - max-age=0, private, must-revalidate
1147
+ X-Request-Id:
1148
+ - 8329eda2-f914-42d5-97a7-bd75ed603d67
1149
+ X-Runtime:
1150
+ - '0.057333'
1151
+ Connection:
1152
+ - keep-alive
1153
+ Server:
1154
+ - thin
1155
+ body:
1156
+ encoding: UTF-8
1157
+ string: '{"_id":"554779c56469643251460300","created_at":"2015-05-04T13:53:09Z","updated_at":"2015-05-04T13:53:09Z","_slug":"random-title-1","content_type_slug":"articles","_label":"Random
1158
+ title","_position":2,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Random
1159
+ title"}'
1160
+ http_version:
1161
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
1162
+ - request:
1163
+ method: put
1164
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/articles/entries/554779c56469643251460300.json
1165
+ body:
1166
+ encoding: UTF-8
1167
+ string: auth_token=NuCxqFfvpry9osYdFUm1&content_entry%5Btitle%5D=Titre+au+hasard
1168
+ headers:
1169
+ Accept:
1170
+ - application/json
1171
+ X-Locomotive-Account-Email:
1172
+ - admin@locomotivecms.com
1173
+ X-Locomotive-Account-Token:
1174
+ - NuCxqFfvpry9osYdFUm1
1175
+ X-Locomotive-Locale:
1176
+ - fr
1177
+ Content-Type:
1178
+ - application/x-www-form-urlencoded
1179
+ Accept-Encoding:
1180
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1181
+ User-Agent:
1182
+ - Ruby
1183
+ response:
1184
+ status:
1185
+ code: 200
1186
+ message: OK
1187
+ headers:
1188
+ Content-Type:
1189
+ - application/json
1190
+ Content-Length:
1191
+ - '308'
1192
+ Etag:
1193
+ - W/"8aba1fb392122aea4dd359c49314a171"
1194
+ Cache-Control:
1195
+ - max-age=0, private, must-revalidate
1196
+ X-Request-Id:
1197
+ - 3b1691ce-0f58-4657-875c-d054e453e18e
1198
+ X-Runtime:
1199
+ - '0.033732'
1200
+ Connection:
1201
+ - keep-alive
1202
+ Server:
1203
+ - thin
1204
+ body:
1205
+ encoding: UTF-8
1206
+ string: '{"_id":"554779c56469643251460300","created_at":"2015-05-04T13:53:09Z","updated_at":"2015-05-04T13:53:09Z","_slug":"titre-au-hasard","content_type_slug":"articles","_label":"Titre
1207
+ au hasard","_position":2,"_visible":true,"seo_title":null,"meta_keywords":null,"meta_description":null,"title":"Titre
1208
+ au hasard"}'
1209
+ http_version:
1210
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
1211
+ - request:
1212
+ method: post
1213
+ uri: http://localhost:3000/locomotive/api/v3/tokens.json
1214
+ body:
1215
+ encoding: UTF-8
1216
+ string: email=admin%40locomotivecms.com&password=locomotive
1217
+ headers:
1218
+ Accept:
1219
+ - application/json
1220
+ Content-Type:
1221
+ - application/x-www-form-urlencoded
1222
+ Accept-Encoding:
1223
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1224
+ User-Agent:
1225
+ - Ruby
1226
+ response:
1227
+ status:
1228
+ code: 201
1229
+ message: Created
1230
+ headers:
1231
+ Content-Type:
1232
+ - application/json
1233
+ Content-Length:
1234
+ - '32'
1235
+ Etag:
1236
+ - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
1237
+ Cache-Control:
1238
+ - max-age=0, private, must-revalidate
1239
+ X-Request-Id:
1240
+ - 37537acb-1a0c-4e19-bb08-9cd94547b925
1241
+ X-Runtime:
1242
+ - '0.013102'
1243
+ Connection:
1244
+ - keep-alive
1245
+ Server:
1246
+ - thin
1247
+ body:
1248
+ encoding: UTF-8
1249
+ string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
1250
+ http_version:
1251
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
1252
+ - request:
1253
+ method: delete
1254
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/554779c46469643251330300.json
1255
+ body:
1256
+ encoding: UTF-8
1257
+ string: auth_token=NuCxqFfvpry9osYdFUm1
1258
+ headers:
1259
+ Accept:
1260
+ - application/json
1261
+ X-Locomotive-Account-Email:
1262
+ - admin@locomotivecms.com
1263
+ X-Locomotive-Account-Token:
1264
+ - NuCxqFfvpry9osYdFUm1
1265
+ Content-Type:
1266
+ - application/x-www-form-urlencoded
1267
+ Accept-Encoding:
1268
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1269
+ User-Agent:
1270
+ - Ruby
1271
+ response:
1272
+ status:
1273
+ code: 200
1274
+ message: OK
1275
+ headers:
1276
+ Content-Type:
1277
+ - application/json
1278
+ Content-Length:
1279
+ - '550'
1280
+ Etag:
1281
+ - W/"091ef48c4ebd6f4c8c5a70760496e798"
1282
+ Cache-Control:
1283
+ - max-age=0, private, must-revalidate
1284
+ X-Request-Id:
1285
+ - 644b0439-3f47-4728-96e1-ed82be2d93b8
1286
+ X-Runtime:
1287
+ - '0.070134'
1288
+ Connection:
1289
+ - keep-alive
1290
+ Server:
1291
+ - thin
379
1292
  body:
380
1293
  encoding: UTF-8
381
- string: '{"id":"54eb4bbc2475804b2b000040","_id":"54eb4bbc2475804b2b000040","created_at":"2015-02-23T15:48:12Z","updated_at":"2015-03-26T11:55:30Z","_label":"Pearl
382
- Jam","_slug":"alice-in-chains","_position":1,"_visible":true,"content_type_slug":"bands","name":"Pearl
383
- Jam","leader":"Layne","kind":"grunge","kind_id":"54eb4b662475804b2b00000f","featured":false,"songs":[]}'
1294
+ string: '{"_id":"554779c46469643251330300","created_at":"2015-05-04T13:53:08Z","updated_at":"2015-05-04T13:53:08Z","name":"Article","slug":"articles","description":null,"label_field_name":"title","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"554779c46469643251340300","created_at":null,"updated_at":null,"name":"title","type":"string","label":"Title","hint":null,"required":true,"localized":true,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
384
1295
  http_version:
385
- recorded_at: Thu, 26 Mar 2015 11:55:30 GMT
1296
+ recorded_at: Mon, 04 May 2015 13:53:09 GMT
386
1297
  recorded_with: VCR 2.9.3