vzaar_api 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.rspec +4 -0
  4. data/.tool-versions +1 -0
  5. data/.travis.yml +3 -0
  6. data/Changelog +50 -0
  7. data/Gemfile +3 -0
  8. data/Guardfile +25 -0
  9. data/README.md +55 -0
  10. data/Rakefile +26 -0
  11. data/examples/README.md +33 -0
  12. data/examples/api_envs.yml.example +31 -0
  13. data/examples/category/create_update_delete_spec.rb +100 -0
  14. data/examples/category/list_spec.rb +38 -0
  15. data/examples/category/list_subtree_spec.rb +40 -0
  16. data/examples/category/lookup_spec.rb +35 -0
  17. data/examples/encoding_preset/list_spec.rb +38 -0
  18. data/examples/encoding_preset/lookup_spec.rb +35 -0
  19. data/examples/ingest_recipe/create_update_delete_spec.rb +70 -0
  20. data/examples/ingest_recipe/list_spec.rb +38 -0
  21. data/examples/ingest_recipe/lookup_spec.rb +35 -0
  22. data/examples/playlist/create_update_delete_spec.rb +97 -0
  23. data/examples/playlist/list_spec.rb +37 -0
  24. data/examples/playlist/lookup_spec.rb +34 -0
  25. data/examples/rate_limit_spec.rb +18 -0
  26. data/examples/spec_helper.rb +17 -0
  27. data/examples/support/helpers.rb +16 -0
  28. data/examples/support/videos/medium.mp4 +0 -0
  29. data/examples/support/videos/small.mp4 +0 -0
  30. data/examples/video/create_update_delete_spec.rb +73 -0
  31. data/lib/vzaar_api/abstract.rb +9 -0
  32. data/lib/vzaar_api/category.rb +39 -0
  33. data/lib/vzaar_api/encoding_preset.rb +19 -0
  34. data/lib/vzaar_api/ingest_recipe.rb +35 -0
  35. data/lib/vzaar_api/legacy_rendition.rb +11 -0
  36. data/lib/vzaar_api/lib/active_object.rb +92 -0
  37. data/lib/vzaar_api/lib/api.rb +54 -0
  38. data/lib/vzaar_api/lib/api_response.rb +61 -0
  39. data/lib/vzaar_api/lib/has_attributes.rb +49 -0
  40. data/lib/vzaar_api/lib/has_collection_builder.rb +17 -0
  41. data/lib/vzaar_api/lib/has_resource_url.rb +24 -0
  42. data/lib/vzaar_api/lib/paged_resource.rb +80 -0
  43. data/lib/vzaar_api/lib/will_paginate.rb +22 -0
  44. data/lib/vzaar_api/link_upload.rb +14 -0
  45. data/lib/vzaar_api/playlist.rb +29 -0
  46. data/lib/vzaar_api/rendition.rb +16 -0
  47. data/lib/vzaar_api/signature/abstract.rb +40 -0
  48. data/lib/vzaar_api/signature/factory.rb +39 -0
  49. data/lib/vzaar_api/signature/multipart.rb +23 -0
  50. data/lib/vzaar_api/signature/single.rb +17 -0
  51. data/lib/vzaar_api/strategy/video/create.rb +46 -0
  52. data/lib/vzaar_api/upload/s3.rb +90 -0
  53. data/lib/vzaar_api/upload/virtual_file.rb +14 -0
  54. data/lib/vzaar_api/version.rb +4 -0
  55. data/lib/vzaar_api/video.rb +38 -0
  56. data/lib/vzaar_api.rb +60 -0
  57. data/spec/fixtures/vcr_cassettes/categories/each_item.yml +363 -0
  58. data/spec/fixtures/vcr_cassettes/categories/find.yml +61 -0
  59. data/spec/fixtures/vcr_cassettes/categories/find_404.yml +49 -0
  60. data/spec/fixtures/vcr_cassettes/categories/paginate_first.yml +61 -0
  61. data/spec/fixtures/vcr_cassettes/categories/paginate_last.yml +119 -0
  62. data/spec/fixtures/vcr_cassettes/categories/paginate_next.yml +120 -0
  63. data/spec/fixtures/vcr_cassettes/categories/paginate_previous.yml +120 -0
  64. data/spec/fixtures/vcr_cassettes/categories/subtree.yml +127 -0
  65. data/spec/fixtures/vcr_cassettes/categories/subtree_paginate_first.yml +123 -0
  66. data/spec/fixtures/vcr_cassettes/categories/subtree_paginate_last.yml +185 -0
  67. data/spec/fixtures/vcr_cassettes/categories/subtree_paginate_next.yml +184 -0
  68. data/spec/fixtures/vcr_cassettes/categories/subtree_paginate_previous.yml +184 -0
  69. data/spec/fixtures/vcr_cassettes/encoding_presets/each_item.yml +299 -0
  70. data/spec/fixtures/vcr_cassettes/encoding_presets/find.yml +62 -0
  71. data/spec/fixtures/vcr_cassettes/encoding_presets/find_404.yml +51 -0
  72. data/spec/fixtures/vcr_cassettes/encoding_presets/paginate_first.yml +62 -0
  73. data/spec/fixtures/vcr_cassettes/encoding_presets/paginate_last.yml +121 -0
  74. data/spec/fixtures/vcr_cassettes/encoding_presets/paginate_next.yml +121 -0
  75. data/spec/fixtures/vcr_cassettes/encoding_presets/paginate_previous.yml +121 -0
  76. data/spec/fixtures/vcr_cassettes/ingest_recipes/create_200.yml +63 -0
  77. data/spec/fixtures/vcr_cassettes/ingest_recipes/create_422.yml +52 -0
  78. data/spec/fixtures/vcr_cassettes/ingest_recipes/delete_204.yml +166 -0
  79. data/spec/fixtures/vcr_cassettes/ingest_recipes/delete_422.yml +112 -0
  80. data/spec/fixtures/vcr_cassettes/ingest_recipes/each_item.yml +182 -0
  81. data/spec/fixtures/vcr_cassettes/ingest_recipes/find.yml +62 -0
  82. data/spec/fixtures/vcr_cassettes/ingest_recipes/find_404.yml +51 -0
  83. data/spec/fixtures/vcr_cassettes/ingest_recipes/paginate_first.yml +62 -0
  84. data/spec/fixtures/vcr_cassettes/ingest_recipes/paginate_last.yml +122 -0
  85. data/spec/fixtures/vcr_cassettes/ingest_recipes/paginate_next.yml +121 -0
  86. data/spec/fixtures/vcr_cassettes/ingest_recipes/paginate_previous.yml +122 -0
  87. data/spec/fixtures/vcr_cassettes/ingest_recipes/update_200.yml +242 -0
  88. data/spec/fixtures/vcr_cassettes/ingest_recipes/update_422.yml +113 -0
  89. data/spec/fixtures/vcr_cassettes/playlists/each_item.yml +607 -0
  90. data/spec/fixtures/vcr_cassettes/playlists/find.yml +66 -0
  91. data/spec/fixtures/vcr_cassettes/playlists/find_404.yml +51 -0
  92. data/spec/fixtures/vcr_cassettes/playlists/paginate_first.yml +74 -0
  93. data/spec/fixtures/vcr_cassettes/playlists/paginate_last.yml +146 -0
  94. data/spec/fixtures/vcr_cassettes/playlists/paginate_next.yml +145 -0
  95. data/spec/fixtures/vcr_cassettes/playlists/paginate_previous.yml +145 -0
  96. data/spec/fixtures/vcr_cassettes/signature/multipart_201.yml +62 -0
  97. data/spec/fixtures/vcr_cassettes/signature/multipart_422.yml +52 -0
  98. data/spec/fixtures/vcr_cassettes/signature/single_201.yml +62 -0
  99. data/spec/fixtures/vcr_cassettes/signature/single_422.yml +51 -0
  100. data/spec/fixtures/vcr_cassettes/upload/multipart_201.yml +279868 -0
  101. data/spec/fixtures/vcr_cassettes/upload/multipart_403.yml +116578 -0
  102. data/spec/fixtures/vcr_cassettes/upload/single_201.yml +23388 -0
  103. data/spec/fixtures/vcr_cassettes/upload/single_403.yml +23374 -0
  104. data/spec/fixtures/vcr_cassettes/videos/create/error.yml +51 -0
  105. data/spec/fixtures/vcr_cassettes/videos/create/guid_201.yml +65 -0
  106. data/spec/fixtures/vcr_cassettes/videos/create/guid_error.yml +52 -0
  107. data/spec/fixtures/vcr_cassettes/videos/create/link_201.yml +65 -0
  108. data/spec/fixtures/vcr_cassettes/videos/create/link_error.yml +51 -0
  109. data/spec/fixtures/vcr_cassettes/videos/create/path_201.yml +23509 -0
  110. data/spec/fixtures/vcr_cassettes/videos/delete_204.yml +168 -0
  111. data/spec/fixtures/vcr_cassettes/videos/find.yml +66 -0
  112. data/spec/fixtures/vcr_cassettes/videos/find_404.yml +51 -0
  113. data/spec/fixtures/vcr_cassettes/videos/paginate_first.yml +71 -0
  114. data/spec/fixtures/vcr_cassettes/videos/paginate_last.yml +137 -0
  115. data/spec/fixtures/vcr_cassettes/videos/paginate_next.yml +139 -0
  116. data/spec/fixtures/vcr_cassettes/videos/paginate_previous.yml +139 -0
  117. data/spec/spec_helper.rb +103 -0
  118. data/spec/support/files/video-1.0MB.mp4 +0 -0
  119. data/spec/support/files/video-12.0MB.mp4 +0 -0
  120. data/spec/support/files/video-4.9MB.mp4 +0 -0
  121. data/spec/support/files/video-5.0MB.mp4 +0 -0
  122. data/spec/support/helpers.rb +16 -0
  123. data/spec/vzaar_api/category_spec.rb +141 -0
  124. data/spec/vzaar_api/encoding_preset_spec.rb +92 -0
  125. data/spec/vzaar_api/ingest_recipe_spec.rb +197 -0
  126. data/spec/vzaar_api/lib/api_spec.rb +28 -0
  127. data/spec/vzaar_api/playlist_spec.rb +97 -0
  128. data/spec/vzaar_api/rendition_spec.rb +55 -0
  129. data/spec/vzaar_api/signature/factory_spec.rb +68 -0
  130. data/spec/vzaar_api/signature/multipart_spec.rb +81 -0
  131. data/spec/vzaar_api/signature/single_spec.rb +72 -0
  132. data/spec/vzaar_api/upload/s3_spec.rb +112 -0
  133. data/spec/vzaar_api/video_spec.rb +248 -0
  134. data/spec/vzaar_api/vzaar_api_spec.rb +18 -0
  135. data/spec/vzaar_api_helper.rb +19 -0
  136. data/vzaar.png +0 -0
  137. data/vzaar_api.gemspec +35 -0
  138. metadata +413 -0
@@ -0,0 +1,363 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/categories?per_page=2
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Fri, 18 Nov 2016 16:36:41 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx/1.10.1
29
+ Date:
30
+ - Fri, 18 Nov 2016 16:36:41 GMT
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '846'
35
+ Connection:
36
+ - keep-alive
37
+ X-RateLimit-Limit:
38
+ - '200'
39
+ X-RateLimit-Remaining:
40
+ - '199'
41
+ X-RateLimit-Reset:
42
+ - '1479487061'
43
+ X-RateLimit-Reset-In:
44
+ - 60 seconds
45
+ Cache-Control:
46
+ - no-store, must-revalidate, private, max-age=0
47
+ X-Request-Id:
48
+ - de23c9ba-1e77-4f5f-bf6c-ea0097398d21
49
+ X-Runtime:
50
+ - '0.137073'
51
+ Set-Cookie:
52
+ - __profilin=p%3Dt; path=/
53
+ - __profilin=p%3Dt; path=/
54
+ - __profilin=p%3Dt; path=/
55
+ X-Miniprofiler-Ids:
56
+ - '["d4dtbh0yl8g7mht3jgyi","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"data":[{"id":331,"account_id":79357,"user_id":79357,"name":"Overload
60
+ Fitness","description":null,"parent_id":null,"depth":0,"node_children_count":3,"tree_children_count":5,"node_video_count":3,"tree_video_count":6,"created_at":"2015-04-07T09:38:28.000Z","updated_at":"2016-10-18T16:30:02.000Z"},{"id":332,"account_id":79357,"user_id":79357,"name":"Kids","description":null,"parent_id":null,"depth":0,"node_children_count":0,"tree_children_count":0,"node_video_count":2,"tree_video_count":2,"created_at":"2015-04-07T09:38:46.000Z","updated_at":"2016-10-18T16:30:02.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/categories?page=2&per_page=2","previous":null,"last":"https://app.vzaar.localhost/api/v2/categories?page=6&per_page=2"}}}'
61
+ http_version:
62
+ recorded_at: Fri, 18 Nov 2016 16:36:41 GMT
63
+ - request:
64
+ method: get
65
+ uri: https://app.vzaar.localhost/api/v2/categories
66
+ body:
67
+ encoding: UTF-8
68
+ string: ''
69
+ headers:
70
+ User-Agent:
71
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
72
+ Accept:
73
+ - "*/*"
74
+ Date:
75
+ - Fri, 18 Nov 2016 16:36:41 GMT
76
+ X-Auth-Token:
77
+ - TUGXzNL17ypaougMYpR3
78
+ X-Client-Id:
79
+ - lair-tend72
80
+ Content-Type:
81
+ - application/json
82
+ response:
83
+ status:
84
+ code: 200
85
+ message: OK
86
+ headers:
87
+ Server:
88
+ - nginx/1.10.1
89
+ Date:
90
+ - Fri, 18 Nov 2016 16:36:41 GMT
91
+ Content-Type:
92
+ - application/json
93
+ Content-Length:
94
+ - '915'
95
+ Connection:
96
+ - keep-alive
97
+ X-RateLimit-Limit:
98
+ - '200'
99
+ X-RateLimit-Remaining:
100
+ - '198'
101
+ X-RateLimit-Reset:
102
+ - '1479487061'
103
+ X-RateLimit-Reset-In:
104
+ - 60 seconds
105
+ Cache-Control:
106
+ - no-store, must-revalidate, private, max-age=0
107
+ X-Request-Id:
108
+ - 06d412cb-6991-468f-8e2e-7e9a2470fec0
109
+ X-Runtime:
110
+ - '0.073150'
111
+ Set-Cookie:
112
+ - __profilin=p%3Dt; path=/
113
+ - __profilin=p%3Dt; path=/
114
+ - __profilin=p%3Dt; path=/
115
+ X-Miniprofiler-Ids:
116
+ - '["xd3eqfcaema09wi857z2","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
117
+ body:
118
+ encoding: UTF-8
119
+ string: '{"data":[{"id":333,"account_id":79357,"user_id":79357,"name":"Outdoors","description":null,"parent_id":331,"depth":1,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2015-04-07T09:38:55.000Z","updated_at":"2016-08-08T12:54:05.000Z"},{"id":334,"account_id":79357,"user_id":79357,"name":"Indoors","description":"All
120
+ indoor videos","parent_id":331,"depth":1,"node_children_count":2,"tree_children_count":2,"node_video_count":2,"tree_video_count":3,"created_at":"2015-04-07T09:39:06.000Z","updated_at":"2016-10-18T16:29:11.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/categories?page=3&per_page=2","previous":"https://app.vzaar.localhost/api/v2/categories?page=1&per_page=2","last":"https://app.vzaar.localhost/api/v2/categories?page=6&per_page=2"}}}'
121
+ http_version:
122
+ recorded_at: Fri, 18 Nov 2016 16:36:41 GMT
123
+ - request:
124
+ method: get
125
+ uri: https://app.vzaar.localhost/api/v2/categories
126
+ body:
127
+ encoding: UTF-8
128
+ string: ''
129
+ headers:
130
+ User-Agent:
131
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
132
+ Accept:
133
+ - "*/*"
134
+ Date:
135
+ - Fri, 18 Nov 2016 16:36:41 GMT
136
+ X-Auth-Token:
137
+ - TUGXzNL17ypaougMYpR3
138
+ X-Client-Id:
139
+ - lair-tend72
140
+ Content-Type:
141
+ - application/json
142
+ response:
143
+ status:
144
+ code: 200
145
+ message: OK
146
+ headers:
147
+ Server:
148
+ - nginx/1.10.1
149
+ Date:
150
+ - Fri, 18 Nov 2016 16:36:41 GMT
151
+ Content-Type:
152
+ - application/json
153
+ Content-Length:
154
+ - '905'
155
+ Connection:
156
+ - keep-alive
157
+ X-RateLimit-Limit:
158
+ - '200'
159
+ X-RateLimit-Remaining:
160
+ - '197'
161
+ X-RateLimit-Reset:
162
+ - '1479487061'
163
+ X-RateLimit-Reset-In:
164
+ - 60 seconds
165
+ Cache-Control:
166
+ - no-store, must-revalidate, private, max-age=0
167
+ X-Request-Id:
168
+ - 0ea13fbf-e70d-4249-b27b-7df718cc3d53
169
+ X-Runtime:
170
+ - '0.063812'
171
+ Set-Cookie:
172
+ - __profilin=p%3Dt; path=/
173
+ - __profilin=p%3Dt; path=/
174
+ - __profilin=p%3Dt; path=/
175
+ X-Miniprofiler-Ids:
176
+ - '["gpp17n6eyowbqhljaixc","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
177
+ body:
178
+ encoding: UTF-8
179
+ string: '{"data":[{"id":335,"account_id":79357,"user_id":79357,"name":"Test
180
+ shizzle","description":null,"parent_id":null,"depth":0,"node_children_count":0,"tree_children_count":0,"node_video_count":2,"tree_video_count":2,"created_at":"2015-04-07T09:39:21.000Z","updated_at":"2016-10-18T16:30:02.000Z"},{"id":336,"account_id":79357,"user_id":79357,"name":"Travel","description":null,"parent_id":null,"depth":0,"node_children_count":0,"tree_children_count":0,"node_video_count":4,"tree_video_count":4,"created_at":"2015-04-07T09:47:38.000Z","updated_at":"2016-10-18T16:30:02.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/categories?page=4&per_page=2","previous":"https://app.vzaar.localhost/api/v2/categories?page=2&per_page=2","last":"https://app.vzaar.localhost/api/v2/categories?page=6&per_page=2"}}}'
181
+ http_version:
182
+ recorded_at: Fri, 18 Nov 2016 16:36:41 GMT
183
+ - request:
184
+ method: get
185
+ uri: https://app.vzaar.localhost/api/v2/categories
186
+ body:
187
+ encoding: UTF-8
188
+ string: ''
189
+ headers:
190
+ User-Agent:
191
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
192
+ Accept:
193
+ - "*/*"
194
+ Date:
195
+ - Fri, 18 Nov 2016 16:36:41 GMT
196
+ X-Auth-Token:
197
+ - TUGXzNL17ypaougMYpR3
198
+ X-Client-Id:
199
+ - lair-tend72
200
+ Content-Type:
201
+ - application/json
202
+ response:
203
+ status:
204
+ code: 200
205
+ message: OK
206
+ headers:
207
+ Server:
208
+ - nginx/1.10.1
209
+ Date:
210
+ - Fri, 18 Nov 2016 16:36:41 GMT
211
+ Content-Type:
212
+ - application/json
213
+ Content-Length:
214
+ - '897'
215
+ Connection:
216
+ - keep-alive
217
+ X-RateLimit-Limit:
218
+ - '200'
219
+ X-RateLimit-Remaining:
220
+ - '196'
221
+ X-RateLimit-Reset:
222
+ - '1479487061'
223
+ X-RateLimit-Reset-In:
224
+ - 60 seconds
225
+ Cache-Control:
226
+ - no-store, must-revalidate, private, max-age=0
227
+ X-Request-Id:
228
+ - 88959a27-bfcc-4e6e-a09c-d34aec01e384
229
+ X-Runtime:
230
+ - '0.094007'
231
+ Set-Cookie:
232
+ - __profilin=p%3Dt; path=/
233
+ - __profilin=p%3Dt; path=/
234
+ - __profilin=p%3Dt; path=/
235
+ X-Miniprofiler-Ids:
236
+ - '["j8jpqpuatc5a0465o4ia","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
237
+ body:
238
+ encoding: UTF-8
239
+ string: '{"data":[{"id":2232,"account_id":79357,"user_id":94482,"name":"PT","description":null,"parent_id":null,"depth":0,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2016-08-08T12:46:50.000Z","updated_at":"2016-08-08T12:46:50.000Z"},{"id":2233,"account_id":79357,"user_id":79357,"name":"My
240
+ room","description":null,"parent_id":334,"depth":2,"node_children_count":0,"tree_children_count":0,"node_video_count":1,"tree_video_count":1,"created_at":"2016-10-18T16:29:04.000Z","updated_at":"2016-10-18T16:29:05.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/categories?page=5&per_page=2","previous":"https://app.vzaar.localhost/api/v2/categories?page=3&per_page=2","last":"https://app.vzaar.localhost/api/v2/categories?page=6&per_page=2"}}}'
241
+ http_version:
242
+ recorded_at: Fri, 18 Nov 2016 16:36:41 GMT
243
+ - request:
244
+ method: get
245
+ uri: https://app.vzaar.localhost/api/v2/categories
246
+ body:
247
+ encoding: UTF-8
248
+ string: ''
249
+ headers:
250
+ User-Agent:
251
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
252
+ Accept:
253
+ - "*/*"
254
+ Date:
255
+ - Fri, 18 Nov 2016 16:36:41 GMT
256
+ X-Auth-Token:
257
+ - TUGXzNL17ypaougMYpR3
258
+ X-Client-Id:
259
+ - lair-tend72
260
+ Content-Type:
261
+ - application/json
262
+ response:
263
+ status:
264
+ code: 200
265
+ message: OK
266
+ headers:
267
+ Server:
268
+ - nginx/1.10.1
269
+ Date:
270
+ - Fri, 18 Nov 2016 16:36:41 GMT
271
+ Content-Type:
272
+ - application/json
273
+ Content-Length:
274
+ - '907'
275
+ Connection:
276
+ - keep-alive
277
+ X-RateLimit-Limit:
278
+ - '200'
279
+ X-RateLimit-Remaining:
280
+ - '195'
281
+ X-RateLimit-Reset:
282
+ - '1479487061'
283
+ X-RateLimit-Reset-In:
284
+ - 60 seconds
285
+ Cache-Control:
286
+ - no-store, must-revalidate, private, max-age=0
287
+ X-Request-Id:
288
+ - 3141b2c3-f2c9-4eaf-8b6b-5ac0bea89092
289
+ X-Runtime:
290
+ - '0.061983'
291
+ Set-Cookie:
292
+ - __profilin=p%3Dt; path=/
293
+ - __profilin=p%3Dt; path=/
294
+ - __profilin=p%3Dt; path=/
295
+ X-Miniprofiler-Ids:
296
+ - '["mrm3wrmw9721eaq57f39","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
297
+ body:
298
+ encoding: UTF-8
299
+ string: '{"data":[{"id":2234,"account_id":79357,"user_id":79357,"name":"Your
300
+ room","description":null,"parent_id":334,"depth":2,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2016-10-18T16:29:10.000Z","updated_at":"2016-10-18T16:29:11.000Z"},{"id":2235,"account_id":79357,"user_id":79357,"name":"Outer
301
+ space","description":null,"parent_id":331,"depth":1,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2016-10-18T16:30:01.000Z","updated_at":"2016-10-18T16:30:02.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories?page=1&per_page=2","next":"https://app.vzaar.localhost/api/v2/categories?page=6&per_page=2","previous":"https://app.vzaar.localhost/api/v2/categories?page=4&per_page=2","last":"https://app.vzaar.localhost/api/v2/categories?page=6&per_page=2"}}}'
302
+ http_version:
303
+ recorded_at: Fri, 18 Nov 2016 16:36:41 GMT
304
+ - request:
305
+ method: get
306
+ uri: https://app.vzaar.localhost/api/v2/categories
307
+ body:
308
+ encoding: UTF-8
309
+ string: ''
310
+ headers:
311
+ User-Agent:
312
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
313
+ Accept:
314
+ - "*/*"
315
+ Date:
316
+ - Fri, 18 Nov 2016 16:36:41 GMT
317
+ X-Auth-Token:
318
+ - TUGXzNL17ypaougMYpR3
319
+ X-Client-Id:
320
+ - lair-tend72
321
+ Content-Type:
322
+ - application/json
323
+ response:
324
+ status:
325
+ code: 200
326
+ message: OK
327
+ headers:
328
+ Server:
329
+ - nginx/1.10.1
330
+ Date:
331
+ - Fri, 18 Nov 2016 16:36:41 GMT
332
+ Content-Type:
333
+ - application/json
334
+ Content-Length:
335
+ - '839'
336
+ Connection:
337
+ - keep-alive
338
+ X-RateLimit-Limit:
339
+ - '200'
340
+ X-RateLimit-Remaining:
341
+ - '194'
342
+ X-RateLimit-Reset:
343
+ - '1479487061'
344
+ X-RateLimit-Reset-In:
345
+ - 60 seconds
346
+ Cache-Control:
347
+ - no-store, must-revalidate, private, max-age=0
348
+ X-Request-Id:
349
+ - 3285b3fc-fdbe-4c7c-afe6-bfe82a8c4590
350
+ X-Runtime:
351
+ - '0.060019'
352
+ Set-Cookie:
353
+ - __profilin=p%3Dt; path=/
354
+ - __profilin=p%3Dt; path=/
355
+ - __profilin=p%3Dt; path=/
356
+ X-Miniprofiler-Ids:
357
+ - '["n6zc26dff02074i9rhtq","yibtuiqnohudk1d26xvg","cpo3oiqmi683pkcaj816","dtxr2heeicch5rud7pjt","b4scoosnvmo0xvyqw8fy","58r4vfxumrhgue7kbsai","5dfv6js4ggxyc9qp8qwk","luelw09036g1c3l24a6i","racr2kqe0uft8glynfol","yfqme9j3k1haf6v4sm35"]'
358
+ body:
359
+ encoding: UTF-8
360
+ string: '{"data":[{"id":2236,"account_id":79357,"user_id":79357,"name":"Ziggy","description":null,"parent_id":null,"depth":0,"node_children_count":1,"tree_children_count":1,"node_video_count":0,"tree_video_count":0,"created_at":"2016-10-19T10:39:07.000Z","updated_at":"2016-10-19T10:40:23.000Z"},{"id":2237,"account_id":79357,"user_id":79357,"name":"Boogie","description":null,"parent_id":2236,"depth":1,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2016-10-19T10:40:23.000Z","updated_at":"2016-10-19T10:40:23.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories?page=1&per_page=2","next":null,"previous":"https://app.vzaar.localhost/api/v2/categories?page=5&per_page=2","last":"https://app.vzaar.localhost/api/v2/categories?page=6&per_page=2"}}}'
361
+ http_version:
362
+ recorded_at: Fri, 18 Nov 2016 16:36:41 GMT
363
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/categories/334
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Wed, 26 Oct 2016 16:27:33 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx/1.10.1
27
+ Date:
28
+ - Wed, 26 Oct 2016 16:27:33 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '301'
33
+ Connection:
34
+ - keep-alive
35
+ X-RateLimit-Limit:
36
+ - '200'
37
+ X-RateLimit-Remaining:
38
+ - '199'
39
+ X-RateLimit-Reset:
40
+ - '1477499313'
41
+ X-RateLimit-Reset-In:
42
+ - 60 seconds
43
+ Cache-Control:
44
+ - no-store, must-revalidate, private, max-age=0
45
+ X-Request-Id:
46
+ - 13cd3730-5301-4c36-bba5-4b8a4373dfa5
47
+ X-Runtime:
48
+ - '0.056775'
49
+ Set-Cookie:
50
+ - __profilin=p%3Dt; path=/
51
+ - __profilin=p%3Dt; path=/
52
+ - __profilin=p%3Dt; path=/
53
+ X-Miniprofiler-Ids:
54
+ - '["has8pzh6rc4by4z4xiym","pn5i135ukuwha377mr32","7lg6ei3y4u0nnh0mnl31","rqhyl3rshl6yswisbh1s","fyy6f8laxzd2ei0u45t9","l4aj6dzpqer5rq3kg91k"]'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"data":{"id":334,"account_id":79357,"user_id":79357,"name":"Indoors","description":"All
58
+ indoor videos","parent_id":331,"depth":1,"node_children_count":2,"tree_children_count":2,"node_video_count":2,"tree_video_count":3,"created_at":"2015-04-07T09:39:06.000Z","updated_at":"2016-10-18T16:29:11.000Z"}}'
59
+ http_version:
60
+ recorded_at: Wed, 26 Oct 2016 16:27:33 GMT
61
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/categories/-1
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Mon, 24 Oct 2016 14:43:47 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ Server:
26
+ - nginx/1.10.1
27
+ Date:
28
+ - Mon, 24 Oct 2016 14:43:47 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '72'
33
+ Connection:
34
+ - keep-alive
35
+ Cache-Control:
36
+ - no-cache
37
+ X-Request-Id:
38
+ - 559815f4-f07c-453f-a321-e1859261bfbb
39
+ X-Runtime:
40
+ - '0.072928'
41
+ Set-Cookie:
42
+ - __profilin=p%3Dt; path=/
43
+ - __profilin=p%3Dt; path=/
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"errors":[{"message":"Not found","detail":"Resource cannot be found"}]}'
47
+ http_version:
48
+ recorded_at: Mon, 24 Oct 2016 14:43:47 GMT
49
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/categories?per_page=3
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Fri, 28 Oct 2016 14:27:12 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx/1.10.1
27
+ Date:
28
+ - Fri, 28 Oct 2016 14:27:12 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '1107'
33
+ Connection:
34
+ - keep-alive
35
+ X-RateLimit-Limit:
36
+ - '200'
37
+ X-RateLimit-Remaining:
38
+ - '199'
39
+ X-RateLimit-Reset:
40
+ - '1477664892'
41
+ X-RateLimit-Reset-In:
42
+ - 60 seconds
43
+ Cache-Control:
44
+ - no-store, must-revalidate, private, max-age=0
45
+ X-Request-Id:
46
+ - 24e726d7-be7c-40a8-b7d0-223a4fd56e53
47
+ X-Runtime:
48
+ - '0.416004'
49
+ Set-Cookie:
50
+ - __profilin=p%3Dt; path=/
51
+ - __profilin=p%3Dt; path=/
52
+ - __profilin=p%3Dt; path=/
53
+ X-Miniprofiler-Ids:
54
+ - '["v3ctdwh0k8wfewv0lpv7","4cgrjuu9znv5flechaye","xnttqh4f6tb6mlow6fqp","51m8dv0qththvbewgq13","x64kuijqm7wvs2v4hn7w","huk6yekaaonvewr8gorm","vbeuauig2dkult7iwd88","20346z4sk0xdmgjxe013","ojqf7ud6fx3fp4ugy5qy","a3g9j8ng0wd0z95f8byp"]'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"data":[{"id":331,"account_id":79357,"user_id":79357,"name":"Overload
58
+ Fitness","description":null,"parent_id":null,"depth":0,"node_children_count":3,"tree_children_count":5,"node_video_count":3,"tree_video_count":6,"created_at":"2015-04-07T09:38:28.000Z","updated_at":"2016-10-18T16:30:02.000Z"},{"id":332,"account_id":79357,"user_id":79357,"name":"Kids","description":null,"parent_id":null,"depth":0,"node_children_count":0,"tree_children_count":0,"node_video_count":2,"tree_video_count":2,"created_at":"2015-04-07T09:38:46.000Z","updated_at":"2016-10-18T16:30:02.000Z"},{"id":333,"account_id":79357,"user_id":79357,"name":"Outdoors","description":null,"parent_id":331,"depth":1,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2015-04-07T09:38:55.000Z","updated_at":"2016-08-08T12:54:05.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories","next":"https://app.vzaar.localhost/api/v2/categories?page=2&per_page=3","previous":null,"last":"https://app.vzaar.localhost/api/v2/categories?page=4&per_page=3"}}}'
59
+ http_version:
60
+ recorded_at: Fri, 28 Oct 2016 14:27:12 GMT
61
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,119 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://app.vzaar.localhost/api/v2/categories?per_page=3
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
12
+ Accept:
13
+ - "*/*"
14
+ Date:
15
+ - Fri, 28 Oct 2016 14:27:12 GMT
16
+ X-Auth-Token:
17
+ - TUGXzNL17ypaougMYpR3
18
+ X-Client-Id:
19
+ - lair-tend72
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx/1.10.1
27
+ Date:
28
+ - Fri, 28 Oct 2016 14:27:13 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '1107'
33
+ Connection:
34
+ - keep-alive
35
+ X-RateLimit-Limit:
36
+ - '200'
37
+ X-RateLimit-Remaining:
38
+ - '196'
39
+ X-RateLimit-Reset:
40
+ - '1477664892'
41
+ X-RateLimit-Reset-In:
42
+ - 60 seconds
43
+ Cache-Control:
44
+ - no-store, must-revalidate, private, max-age=0
45
+ X-Request-Id:
46
+ - 36e3b3e8-7897-461a-a974-d6786e8b8019
47
+ X-Runtime:
48
+ - '0.091143'
49
+ Set-Cookie:
50
+ - __profilin=p%3Dt; path=/
51
+ - __profilin=p%3Dt; path=/
52
+ - __profilin=p%3Dt; path=/
53
+ X-Miniprofiler-Ids:
54
+ - '["sznobxstvf0k87i4yveb","4cgrjuu9znv5flechaye","xnttqh4f6tb6mlow6fqp","51m8dv0qththvbewgq13","x64kuijqm7wvs2v4hn7w","huk6yekaaonvewr8gorm","vbeuauig2dkult7iwd88","20346z4sk0xdmgjxe013","ojqf7ud6fx3fp4ugy5qy","a3g9j8ng0wd0z95f8byp"]'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"data":[{"id":331,"account_id":79357,"user_id":79357,"name":"Overload
58
+ Fitness","description":null,"parent_id":null,"depth":0,"node_children_count":3,"tree_children_count":5,"node_video_count":3,"tree_video_count":6,"created_at":"2015-04-07T09:38:28.000Z","updated_at":"2016-10-18T16:30:02.000Z"},{"id":332,"account_id":79357,"user_id":79357,"name":"Kids","description":null,"parent_id":null,"depth":0,"node_children_count":0,"tree_children_count":0,"node_video_count":2,"tree_video_count":2,"created_at":"2015-04-07T09:38:46.000Z","updated_at":"2016-10-18T16:30:02.000Z"},{"id":333,"account_id":79357,"user_id":79357,"name":"Outdoors","description":null,"parent_id":331,"depth":1,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2015-04-07T09:38:55.000Z","updated_at":"2016-08-08T12:54:05.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories","next":"https://app.vzaar.localhost/api/v2/categories?page=2&per_page=3","previous":null,"last":"https://app.vzaar.localhost/api/v2/categories?page=4&per_page=3"}}}'
59
+ http_version:
60
+ recorded_at: Fri, 28 Oct 2016 14:27:13 GMT
61
+ - request:
62
+ method: get
63
+ uri: https://app.vzaar.localhost/api/v2/categories
64
+ body:
65
+ encoding: UTF-8
66
+ string: ''
67
+ headers:
68
+ User-Agent:
69
+ - HTTPClient/1.0 (2.8.2.4, ruby 2.3.1 (2016-04-26))
70
+ Accept:
71
+ - "*/*"
72
+ Date:
73
+ - Fri, 28 Oct 2016 14:27:13 GMT
74
+ X-Auth-Token:
75
+ - TUGXzNL17ypaougMYpR3
76
+ X-Client-Id:
77
+ - lair-tend72
78
+ response:
79
+ status:
80
+ code: 200
81
+ message: OK
82
+ headers:
83
+ Server:
84
+ - nginx/1.10.1
85
+ Date:
86
+ - Fri, 28 Oct 2016 14:27:13 GMT
87
+ Content-Type:
88
+ - application/json
89
+ Content-Length:
90
+ - '1104'
91
+ Connection:
92
+ - keep-alive
93
+ X-RateLimit-Limit:
94
+ - '200'
95
+ X-RateLimit-Remaining:
96
+ - '195'
97
+ X-RateLimit-Reset:
98
+ - '1477664893'
99
+ X-RateLimit-Reset-In:
100
+ - 60 seconds
101
+ Cache-Control:
102
+ - no-store, must-revalidate, private, max-age=0
103
+ X-Request-Id:
104
+ - af9015b1-3607-463c-a4ff-876088634cb1
105
+ X-Runtime:
106
+ - '0.077256'
107
+ Set-Cookie:
108
+ - __profilin=p%3Dt; path=/
109
+ - __profilin=p%3Dt; path=/
110
+ - __profilin=p%3Dt; path=/
111
+ X-Miniprofiler-Ids:
112
+ - '["mt29oe1q76nsmkgle832","4cgrjuu9znv5flechaye","xnttqh4f6tb6mlow6fqp","51m8dv0qththvbewgq13","x64kuijqm7wvs2v4hn7w","huk6yekaaonvewr8gorm","vbeuauig2dkult7iwd88","20346z4sk0xdmgjxe013","ojqf7ud6fx3fp4ugy5qy","a3g9j8ng0wd0z95f8byp"]'
113
+ body:
114
+ encoding: UTF-8
115
+ string: '{"data":[{"id":2235,"account_id":79357,"user_id":79357,"name":"Outer
116
+ space","description":null,"parent_id":331,"depth":1,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2016-10-18T16:30:01.000Z","updated_at":"2016-10-18T16:30:02.000Z"},{"id":2236,"account_id":79357,"user_id":79357,"name":"Ziggy","description":null,"parent_id":null,"depth":0,"node_children_count":1,"tree_children_count":1,"node_video_count":0,"tree_video_count":0,"created_at":"2016-10-19T10:39:07.000Z","updated_at":"2016-10-19T10:40:23.000Z"},{"id":2237,"account_id":79357,"user_id":79357,"name":"Boogie","description":null,"parent_id":2236,"depth":1,"node_children_count":0,"tree_children_count":0,"node_video_count":0,"tree_video_count":0,"created_at":"2016-10-19T10:40:23.000Z","updated_at":"2016-10-19T10:40:23.000Z"}],"meta":{"total_count":12,"links":{"first":"https://app.vzaar.localhost/api/v2/categories","next":null,"previous":"https://app.vzaar.localhost/api/v2/categories?page=3&per_page=3","last":"https://app.vzaar.localhost/api/v2/categories?page=4&per_page=3"}}}'
117
+ http_version:
118
+ recorded_at: Fri, 28 Oct 2016 14:27:13 GMT
119
+ recorded_with: VCR 3.0.3