storageroom-to-contentful 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,96 @@
1
+ require 'uri'
2
+ require 'net/http'
3
+
4
+ class StorageRoomExporter
5
+ attr_reader :collections
6
+
7
+ def export_collections
8
+ puts 'Exporting collections:'
9
+ collections.each do |collection|
10
+ puts collection['name']
11
+ save_to_file(COLLECTIONS_DATA_DIR, collection['entry_type'], format_json(collection))
12
+ end
13
+ end
14
+
15
+ def export_entries
16
+ collections.each do |collection|
17
+ puts "Exporting entries for: #{collection['name']}"
18
+ entries(collection).each do |entry|
19
+ entry_id = File.basename(entry['@url'])
20
+ save_to_file("#{ENTRIES_DATA_DIR}/#{collection['entry_type'].downcase}", "#{entry_id}", format_json(entry))
21
+ end
22
+ end
23
+ end
24
+
25
+ def mapping_collections_input_types
26
+ read_collection_data do |collection_attributes, fields, file_path|
27
+ translate_fields(fields)
28
+ File.open(file_path, 'w') { |file| file.write(format_json(collection_attributes)) }
29
+ end
30
+ end
31
+
32
+ private
33
+
34
+ def read_collection_data
35
+ Dir.glob("#{COLLECTIONS_DATA_DIR}/*json") do |file_path|
36
+ collection_attributes = JSON.parse(File.read(file_path), symbolize_names: true)
37
+ yield collection_attributes, collection_attributes[:fields], file_path
38
+ end
39
+ end
40
+
41
+ def translate_fields(fields)
42
+ fields.each do |field|
43
+ translate_input_type(field)
44
+ mapping_array_type(field)
45
+ end
46
+ end
47
+
48
+ def translate_input_type(field)
49
+ field_type = field[:input_type]
50
+ unless CONTENTFUL_TYPES.include? field_type
51
+ field[:input_type] = begin
52
+ I18n.t! "fields.input_type.#{field[:@type]}.#{field_type}"
53
+ rescue I18n::MissingTranslationData
54
+ I18n.t "fields.input_type.#{field_type}"
55
+ end
56
+ end
57
+ end
58
+
59
+ def mapping_array_type(field)
60
+ field['link_type'] = 'Entry' if field[:@type] == 'ManyAssociationField'
61
+ field['link'] = 'Symbol' if field[:@type] == 'ArrayField'
62
+ end
63
+
64
+ def save_to_file(dir, file_name, json)
65
+ FileUtils.mkdir_p dir unless File.directory?(dir)
66
+ File.open("#{dir}/#{file_name.downcase}.json", 'w') { |file| file.write(json) }
67
+ end
68
+
69
+ def collections
70
+ @collections ||= get_request('collections')['array']['resources']
71
+ end
72
+
73
+ def get_request(path)
74
+ uri = URI.parse("#{STORAGE_ROOM_URL}#{CREDENTIALS['ACCOUNT_ID']}/#{path}.json?auth_token=#{CREDENTIALS['APPLICATION_API_KEY']}")
75
+ http = Net::HTTP.new(uri.host, uri.port)
76
+ request = Net::HTTP::Get.new(uri.request_uri)
77
+ response = http.request(request)
78
+ if response.code == '200'
79
+ JSON.parse(response.body)
80
+ else
81
+ fail "ERROR: #{response.body}\n#{uri.inspect}"
82
+ end
83
+ end
84
+
85
+ def format_json(item)
86
+ JSON.pretty_generate(JSON.parse(item.to_json))
87
+ end
88
+
89
+ def collection_id(collection)
90
+ File.basename(collection['@url'])
91
+ end
92
+
93
+ def entries(collection)
94
+ get_request("collections/#{collection_id(collection)}/entries")['array']['resources']
95
+ end
96
+ end
data/lib/version.rb ADDED
@@ -0,0 +1,3 @@
1
+ module Version
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.storageroomapp.com/accounts/account_id/collections.json?auth_token=application_api_key
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.1.19
23
+ Date:
24
+ - Wed, 17 Sep 2014 08:29:01 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '9474'
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 200 OK
33
+ X-Ua-Compatible:
34
+ - IE=Edge,chrome=1
35
+ Etag:
36
+ - '"07493a7a638d7722da61013620286fd9"'
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ Accept-Ranges:
40
+ - bytes
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"array":{"@url":"http://api.storageroomapp.com/accounts/account_id/collections","@type":"Array","resources":[{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4d96091dba0561733300001b","@version":6,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2014-09-15T07:12:43Z","name":"Announcements","note":"","entry_type":"Announcement","primary_field_identifier":"text","fields":[{"@type":"StringField","name":"Text","identifier":"text","show_in_interface":true,"edit_in_interface":true,"input_type":"text_area","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Locale","identifier":"locale","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":["en","de"]},{"@type":"StringField","name":"Type","identifier":"type","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":["announcement"]},{"@type":"StringField","name":"Link","identifier":"link","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"FileField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
44
+ an icon image"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"http://www.postbin.org/195aj9e","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true},{"@type":"WebhookDefinition","url":"https://www.example2.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4dff88d74d085d6010000033","@version":7,"@created_at":"2011-06-20T17:52:23Z","@updated_at":"2011-08-21T09:14:50Z","name":"Category","note":null,"entry_type":"Category","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"include_blank_choice":false}],"webhook_definitions":[]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F540d6d001e29fa3541000d2d","@version":5,"@created_at":"2014-09-08T08:46:56Z","@updated_at":"2014-09-15T06:54:19Z","name":"Codequest","note":"Testing","entry_type":"Codequest","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"IntegerField","name":"Number","identifier":"number","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"FloatField","name":"Float","identifier":"float1","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"BooleanField","name":"Boolean","identifier":"boolean","show_in_interface":true,"edit_in_interface":true,"input_type":"radio","include_blank_choice":false,"choices":[["Yes",true],["No",false]]},{"@type":"DateField","name":"Date","identifier":"date","show_in_interface":true,"edit_in_interface":true,"input_type":"date_picker","include_blank_choice":false},{"@type":"TimeField","name":"Time","identifier":"time","show_in_interface":true,"edit_in_interface":true,"input_type":"time_picker","include_blank_choice":false},{"@type":"LocationField","name":"Location","identifier":"location","show_in_interface":true,"edit_in_interface":true,"input_type":"location"},{"@type":"FileField","name":"File","identifier":"file","show_in_interface":true,"edit_in_interface":true,"input_type":"file"},{"@type":"ImageField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","versions":[]},{"@type":"ArrayField","name":"Array","identifier":"array","show_in_interface":true,"edit_in_interface":true,"input_type":"array_field"},{"@type":"OneAssociationField","name":"Entry","identifier":"entry","show_in_interface":true,"edit_in_interface":true,"input_type":"association_field","collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005"},{"@type":"ManyAssociationField","name":"Entries","identifier":"entries","show_in_interface":true,"edit_in_interface":true,"input_type":"association_field","collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033"},{"@type":"JsonField","name":"Object","identifier":"object_json","show_in_interface":true,"edit_in_interface":true,"input_type":"json_field"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"https://www.example.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true},{"@type":"WebhookDefinition","url":"https://www.example2.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4d960916ba05617333000005","@version":12,"@created_at":"2011-04-01T17:19:18Z","@updated_at":"2013-03-01T07:58:20Z","name":"Restaurants","note":"","entry_type":"Restaurant","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Text","identifier":"text","show_in_interface":true,"edit_in_interface":true,"input_type":"html_editor","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Website","identifier":"website","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"regexp":"/\\A(http|https)://[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(([0-9]{1,5})?/.*)?\\Z/ix","include_blank_choice":false},{"@type":"LocationField","name":"Location","identifier":"location","show_in_interface":true,"edit_in_interface":true,"input_type":"location","required":true},{"@type":"FileField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
45
+ an image"},{"@type":"StringField","name":"Address","identifier":"address","show_in_interface":true,"edit_in_interface":true,"input_type":"text_area","required":true,"include_blank_choice":false},{"@type":"DateField","name":"Last
46
+ Visit","identifier":"last_visit","show_in_interface":true,"edit_in_interface":true,"input_type":"date_picker","include_blank_choice":false},{"@type":"IntegerField","name":"Price
47
+ Range","identifier":"price_range","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":[1,2,3]},{"@type":"IntegerField","name":"Stars","identifier":"stars","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":[1,2,3,4,5]},{"@type":"BooleanField","name":"Vegetarian
48
+ Menu","identifier":"vegetarian_menu","show_in_interface":true,"edit_in_interface":true,"input_type":"radio","include_blank_choice":false,"choices":[["Yes",true],["No",false]]},{"@type":"FileField","name":"Preview
49
+ Image","identifier":"preview_image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
50
+ an preview image"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"http://requestb.in/s802aas8","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]}]}}'
51
+ http_version:
52
+ recorded_at: Wed, 17 Sep 2014 08:30:12 GMT
53
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.storageroomapp.com/accounts/account_id/collections.json?auth_token=application_api_key
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.1.19
23
+ Date:
24
+ - Wed, 17 Sep 2014 08:41:58 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '9474'
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 200 OK
33
+ X-Ua-Compatible:
34
+ - IE=Edge,chrome=1
35
+ Etag:
36
+ - '"07493a7a638d7722da61013620286fd9"'
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ Accept-Ranges:
40
+ - bytes
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"array":{"@url":"http://api.storageroomapp.com/accounts/account_id/collections","@type":"Array","resources":[{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4d96091dba0561733300001b","@version":6,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2014-09-15T07:12:43Z","name":"Announcements","note":"","entry_type":"Announcement","primary_field_identifier":"text","fields":[{"@type":"StringField","name":"Text","identifier":"text","show_in_interface":true,"edit_in_interface":true,"input_type":"text_area","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Locale","identifier":"locale","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":["en","de"]},{"@type":"StringField","name":"Type","identifier":"type","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":["announcement"]},{"@type":"StringField","name":"Link","identifier":"link","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"FileField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
44
+ an icon image"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"http://www.postbin.org/195aj9e","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true},{"@type":"WebhookDefinition","url":"https://www.example2.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4dff88d74d085d6010000033","@version":7,"@created_at":"2011-06-20T17:52:23Z","@updated_at":"2011-08-21T09:14:50Z","name":"Category","note":null,"entry_type":"Category","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"include_blank_choice":false}],"webhook_definitions":[]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F540d6d001e29fa3541000d2d","@version":5,"@created_at":"2014-09-08T08:46:56Z","@updated_at":"2014-09-15T06:54:19Z","name":"Codequest","note":"Testing","entry_type":"Codequest","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"IntegerField","name":"Number","identifier":"number","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"FloatField","name":"Float","identifier":"float1","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"BooleanField","name":"Boolean","identifier":"boolean","show_in_interface":true,"edit_in_interface":true,"input_type":"radio","include_blank_choice":false,"choices":[["Yes",true],["No",false]]},{"@type":"DateField","name":"Date","identifier":"date","show_in_interface":true,"edit_in_interface":true,"input_type":"date_picker","include_blank_choice":false},{"@type":"TimeField","name":"Time","identifier":"time","show_in_interface":true,"edit_in_interface":true,"input_type":"time_picker","include_blank_choice":false},{"@type":"LocationField","name":"Location","identifier":"location","show_in_interface":true,"edit_in_interface":true,"input_type":"location"},{"@type":"FileField","name":"File","identifier":"file","show_in_interface":true,"edit_in_interface":true,"input_type":"file"},{"@type":"ImageField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","versions":[]},{"@type":"ArrayField","name":"Array","identifier":"array","show_in_interface":true,"edit_in_interface":true,"input_type":"array_field"},{"@type":"OneAssociationField","name":"Entry","identifier":"entry","show_in_interface":true,"edit_in_interface":true,"input_type":"association_field","collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005"},{"@type":"ManyAssociationField","name":"Entries","identifier":"entries","show_in_interface":true,"edit_in_interface":true,"input_type":"association_field","collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033"},{"@type":"JsonField","name":"Object","identifier":"object_json","show_in_interface":true,"edit_in_interface":true,"input_type":"json_field"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"https://www.example.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true},{"@type":"WebhookDefinition","url":"https://www.example2.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4d960916ba05617333000005","@version":12,"@created_at":"2011-04-01T17:19:18Z","@updated_at":"2013-03-01T07:58:20Z","name":"Restaurants","note":"","entry_type":"Restaurant","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Text","identifier":"text","show_in_interface":true,"edit_in_interface":true,"input_type":"html_editor","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Website","identifier":"website","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"regexp":"/\\A(http|https)://[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(([0-9]{1,5})?/.*)?\\Z/ix","include_blank_choice":false},{"@type":"LocationField","name":"Location","identifier":"location","show_in_interface":true,"edit_in_interface":true,"input_type":"location","required":true},{"@type":"FileField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
45
+ an image"},{"@type":"StringField","name":"Address","identifier":"address","show_in_interface":true,"edit_in_interface":true,"input_type":"text_area","required":true,"include_blank_choice":false},{"@type":"DateField","name":"Last
46
+ Visit","identifier":"last_visit","show_in_interface":true,"edit_in_interface":true,"input_type":"date_picker","include_blank_choice":false},{"@type":"IntegerField","name":"Price
47
+ Range","identifier":"price_range","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":[1,2,3]},{"@type":"IntegerField","name":"Stars","identifier":"stars","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":[1,2,3,4,5]},{"@type":"BooleanField","name":"Vegetarian
48
+ Menu","identifier":"vegetarian_menu","show_in_interface":true,"edit_in_interface":true,"input_type":"radio","include_blank_choice":false,"choices":[["Yes",true],["No",false]]},{"@type":"FileField","name":"Preview
49
+ Image","identifier":"preview_image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
50
+ an preview image"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"http://requestb.in/s802aas8","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]}]}}'
51
+ http_version:
52
+ recorded_at: Wed, 17 Sep 2014 08:43:09 GMT
53
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries.json?auth_token=application_api_key
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.1.19
23
+ Date:
24
+ - Wed, 17 Sep 2014 08:38:21 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '3578'
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 200 OK
33
+ X-Ua-Compatible:
34
+ - IE=Edge,chrome=1
35
+ Etag:
36
+ - '"afa958c160c068b8428c38e4ba7280cf"'
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ Accept-Ranges:
40
+ - bytes
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"array":{"@total_resources":2,"@pages":1,"@page":1,"@per_page":20,"@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries","@type":"Array","resources":[{"@type":"Codequest","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@version":2,"@trash":false,"@created_at":"2014-09-08T08:49:26Z","@updated_at":"2014-09-12T08:49:46Z","name":"Test","number":11,"float1":1.1,"boolean":true,"date":"2014-09-03","time":"2014-09-09T06:13:00Z","location":{"@type":"Location","lat":53.13248859999999,"lng":23.168840300000056},"file":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d/fields/k540d6d001e29fa3541000d34/file.png"},"image":{"@type":"Image","@url":"http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d/fields/k540d6d001e29fa3541000d35/file.png","@processing":false,"@versions":{}},"array":["some
44
+ value","second value","third value"],"entry":{"@type":"Restaurant","url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d960919ba05617333000012"},"entries":[{"@type":"Category","url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1674d085d46a7000021"},{"@type":"Category","url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1644d085d46e0000019"}],"object_json":null},{"@type":"Codequest","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries/5412e93a1e29fa07dd00178b","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@version":2,"@trash":false,"@created_at":"2014-09-12T12:38:18Z","@updated_at":"2014-09-12T12:39:26Z","name":"Test
45
+ z plikiem","number":11,"float1":null,"boolean":null,"date":null,"time":null,"location":null,"file":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/5412e93a1e29fa07dd00178b/fields/k540d6d001e29fa3541000d34/file.pdf"},"image":{"@type":"Image","@url":"http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/5412e93a1e29fa07dd00178b/fields/k540d6d001e29fa3541000d35/file.png","@processing":false,"@versions":{}},"array":[],"entry":null,"entries":[{"@type":"Category","url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1644d085d46e0000019"},{"@type":"Category","url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1674d085d46a7000021"}],"object_json":{"entry":{"@type":"Codequest","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@version":2,"@trash":false,"@created_at":"2014-09-08T08:49:26Z","@updated_at":"2014-09-12T08:49:46Z","name":"Test","number":11}}}]}}'
46
+ http_version:
47
+ recorded_at: Wed, 17 Sep 2014 08:39:33 GMT
48
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,351 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.storageroomapp.com/accounts/account_id/collections.json?auth_token=application_api_key
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.1.19
23
+ Date:
24
+ - Wed, 17 Sep 2014 08:30:33 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '9474'
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 200 OK
33
+ X-Ua-Compatible:
34
+ - IE=Edge,chrome=1
35
+ Etag:
36
+ - '"07493a7a638d7722da61013620286fd9"'
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ Accept-Ranges:
40
+ - bytes
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"array":{"@url":"http://api.storageroomapp.com/accounts/account_id/collections","@type":"Array","resources":[{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4d96091dba0561733300001b","@version":6,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2014-09-15T07:12:43Z","name":"Announcements","note":"","entry_type":"Announcement","primary_field_identifier":"text","fields":[{"@type":"StringField","name":"Text","identifier":"text","show_in_interface":true,"edit_in_interface":true,"input_type":"text_area","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Locale","identifier":"locale","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":["en","de"]},{"@type":"StringField","name":"Type","identifier":"type","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":["announcement"]},{"@type":"StringField","name":"Link","identifier":"link","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"FileField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
44
+ an icon image"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"http://www.postbin.org/195aj9e","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true},{"@type":"WebhookDefinition","url":"https://www.example2.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4dff88d74d085d6010000033","@version":7,"@created_at":"2011-06-20T17:52:23Z","@updated_at":"2011-08-21T09:14:50Z","name":"Category","note":null,"entry_type":"Category","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"include_blank_choice":false}],"webhook_definitions":[]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F540d6d001e29fa3541000d2d","@version":5,"@created_at":"2014-09-08T08:46:56Z","@updated_at":"2014-09-15T06:54:19Z","name":"Codequest","note":"Testing","entry_type":"Codequest","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"IntegerField","name":"Number","identifier":"number","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"FloatField","name":"Float","identifier":"float1","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","include_blank_choice":false},{"@type":"BooleanField","name":"Boolean","identifier":"boolean","show_in_interface":true,"edit_in_interface":true,"input_type":"radio","include_blank_choice":false,"choices":[["Yes",true],["No",false]]},{"@type":"DateField","name":"Date","identifier":"date","show_in_interface":true,"edit_in_interface":true,"input_type":"date_picker","include_blank_choice":false},{"@type":"TimeField","name":"Time","identifier":"time","show_in_interface":true,"edit_in_interface":true,"input_type":"time_picker","include_blank_choice":false},{"@type":"LocationField","name":"Location","identifier":"location","show_in_interface":true,"edit_in_interface":true,"input_type":"location"},{"@type":"FileField","name":"File","identifier":"file","show_in_interface":true,"edit_in_interface":true,"input_type":"file"},{"@type":"ImageField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","versions":[]},{"@type":"ArrayField","name":"Array","identifier":"array","show_in_interface":true,"edit_in_interface":true,"input_type":"array_field"},{"@type":"OneAssociationField","name":"Entry","identifier":"entry","show_in_interface":true,"edit_in_interface":true,"input_type":"association_field","collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005"},{"@type":"ManyAssociationField","name":"Entries","identifier":"entries","show_in_interface":true,"edit_in_interface":true,"input_type":"association_field","collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033"},{"@type":"JsonField","name":"Object","identifier":"object_json","show_in_interface":true,"edit_in_interface":true,"input_type":"json_field"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"https://www.example.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true},{"@type":"WebhookDefinition","url":"https://www.example2.com","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]},{"@type":"Collection","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@account_url":"http://api.storageroomapp.com/accounts/account_id","@entries_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries","@deleted_entries_url":"http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4d960916ba05617333000005","@version":12,"@created_at":"2011-04-01T17:19:18Z","@updated_at":"2013-03-01T07:58:20Z","name":"Restaurants","note":"","entry_type":"Restaurant","primary_field_identifier":"name","fields":[{"@type":"StringField","name":"Name","identifier":"name","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Text","identifier":"text","show_in_interface":true,"edit_in_interface":true,"input_type":"html_editor","required":true,"include_blank_choice":false},{"@type":"StringField","name":"Website","identifier":"website","show_in_interface":true,"edit_in_interface":true,"input_type":"text_field","required":true,"regexp":"/\\A(http|https)://[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(([0-9]{1,5})?/.*)?\\Z/ix","include_blank_choice":false},{"@type":"LocationField","name":"Location","identifier":"location","show_in_interface":true,"edit_in_interface":true,"input_type":"location","required":true},{"@type":"FileField","name":"Image","identifier":"image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
45
+ an image"},{"@type":"StringField","name":"Address","identifier":"address","show_in_interface":true,"edit_in_interface":true,"input_type":"text_area","required":true,"include_blank_choice":false},{"@type":"DateField","name":"Last
46
+ Visit","identifier":"last_visit","show_in_interface":true,"edit_in_interface":true,"input_type":"date_picker","include_blank_choice":false},{"@type":"IntegerField","name":"Price
47
+ Range","identifier":"price_range","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":[1,2,3]},{"@type":"IntegerField","name":"Stars","identifier":"stars","show_in_interface":true,"edit_in_interface":true,"input_type":"select","required":true,"include_blank_choice":false,"choices":[1,2,3,4,5]},{"@type":"BooleanField","name":"Vegetarian
48
+ Menu","identifier":"vegetarian_menu","show_in_interface":true,"edit_in_interface":true,"input_type":"radio","include_blank_choice":false,"choices":[["Yes",true],["No",false]]},{"@type":"FileField","name":"Preview
49
+ Image","identifier":"preview_image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload
50
+ an preview image"}],"webhook_definitions":[{"@type":"WebhookDefinition","url":"http://requestb.in/s802aas8","on_create":true,"on_update":true,"on_delete":true,"api":true,"web_interface":true}]}]}}'
51
+ http_version:
52
+ recorded_at: Wed, 17 Sep 2014 08:31:45 GMT
53
+ - request:
54
+ method: get
55
+ uri: http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries.json?auth_token=application_api_key
56
+ body:
57
+ encoding: US-ASCII
58
+ string: ''
59
+ headers:
60
+ Accept-Encoding:
61
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
62
+ Accept:
63
+ - "*/*"
64
+ User-Agent:
65
+ - Ruby
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ Server:
72
+ - nginx/1.1.19
73
+ Date:
74
+ - Wed, 17 Sep 2014 08:30:34 GMT
75
+ Content-Type:
76
+ - application/json; charset=utf-8
77
+ Content-Length:
78
+ - '4582'
79
+ Connection:
80
+ - keep-alive
81
+ Status:
82
+ - 200 OK
83
+ X-Ua-Compatible:
84
+ - IE=Edge,chrome=1
85
+ Etag:
86
+ - '"6c1cca8f6776ee04fcabe8dd59dd24d1"'
87
+ Cache-Control:
88
+ - max-age=0, private, must-revalidate
89
+ Accept-Ranges:
90
+ - bytes
91
+ body:
92
+ encoding: UTF-8
93
+ string: '{"array":{"@total_resources":8,"@pages":1,"@page":1,"@per_page":20,"@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries","@type":"Array","resources":[{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000021","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-04-01T17:19:25Z","text":"Welcome
94
+ to our app. Try clicking around.","locale":"en","type":"announcement","link":null,"image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000022","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-04-01T17:19:25Z","text":"We
95
+ submitted a new version of our application, you will be able to download it
96
+ soon","locale":"en","type":"announcement","link":null,"image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000023","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":2,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-08-08T09:54:28Z","text":"Why
97
+ not follow us on twitter?","locale":"en","type":"announcement","link":"http://www.twitter.com/thriventures","image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d96091dba0561733300001b/entries/4d96091dba05617333000023/fields/k4d96091dba05617333000020/file.png"}},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000024","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-04-01T17:19:25Z","text":"Did
98
+ you visit the website of our partner?","locale":"en","type":"announcement","link":"http://www.google.com/","image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000025","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-04-01T17:19:25Z","text":"Our
99
+ blog is currently down, please bear with us","locale":"en","type":"announcement","link":null,"image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000026","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":3,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-11-24T08:20:02Z","text":"Buy
100
+ our other app with a 30% discount today","locale":"en","type":"announcement","link":null,"image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000027","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":3,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-11-24T08:20:06Z","text":"Yey,
101
+ we have won an award for our application!","locale":"en","type":"announcement","link":"http://oscar.go.com/","image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000028","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":3,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-11-24T08:20:09Z","text":"Did
102
+ you know that you can change the interface language in the settings?","locale":"en","type":"announcement","link":null,"image":null}]}}'
103
+ http_version:
104
+ recorded_at: Wed, 17 Sep 2014 08:31:45 GMT
105
+ - request:
106
+ method: get
107
+ uri: http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries.json?auth_token=application_api_key
108
+ body:
109
+ encoding: US-ASCII
110
+ string: ''
111
+ headers:
112
+ Accept-Encoding:
113
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
114
+ Accept:
115
+ - "*/*"
116
+ User-Agent:
117
+ - Ruby
118
+ response:
119
+ status:
120
+ code: 200
121
+ message: OK
122
+ headers:
123
+ Server:
124
+ - nginx/1.1.19
125
+ Date:
126
+ - Wed, 17 Sep 2014 08:30:34 GMT
127
+ Content-Type:
128
+ - application/json; charset=utf-8
129
+ Content-Length:
130
+ - '5920'
131
+ Connection:
132
+ - keep-alive
133
+ Status:
134
+ - 200 OK
135
+ X-Ua-Compatible:
136
+ - IE=Edge,chrome=1
137
+ Etag:
138
+ - '"3c0a7e61c1c8f3b27c2470fd2bdb4b67"'
139
+ Cache-Control:
140
+ - max-age=0, private, must-revalidate
141
+ Accept-Ranges:
142
+ - bytes
143
+ body:
144
+ encoding: UTF-8
145
+ string: '{"array":{"@total_resources":14,"@pages":1,"@page":1,"@per_page":20,"@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries","@type":"Array","resources":[{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4dff89074d085d608600005a","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-06-20T17:53:11Z","@updated_at":"2011-06-20T17:53:11Z","name":"Category
146
+ 1"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4dff89204d085d5ff5000097","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-06-20T17:53:36Z","@updated_at":"2011-06-20T17:53:36Z","name":"Category
147
+ 2"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4dff892f4d085d604800005f","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-06-20T17:53:51Z","@updated_at":"2011-06-20T17:53:51Z","name":"Category
148
+ 3"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1454d085d466100003f","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:09Z","@updated_at":"2011-07-26T11:13:09Z","name":"Category
149
+ 4"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea14c4d085d46aa00000d","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:16Z","@updated_at":"2011-07-26T11:13:16Z","name":"Category
150
+ 5"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1514d085d4716000019","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:21Z","@updated_at":"2011-07-26T11:13:21Z","name":"Category
151
+ 6"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1574d085d4621000055","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:27Z","@updated_at":"2011-07-26T11:13:27Z","name":"Category
152
+ 7"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea15c4d085d46aa000012","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:32Z","@updated_at":"2011-07-26T11:13:32Z","name":"Category
153
+ 8"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1614d085d46aa000017","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:37Z","@updated_at":"2011-07-26T11:13:37Z","name":"Category
154
+ 9"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1644d085d46e0000019","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:40Z","@updated_at":"2011-07-26T11:13:40Z","name":"Category
155
+ 10"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1674d085d46a7000021","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:43Z","@updated_at":"2011-07-26T11:13:43Z","name":"Category
156
+ 11"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea16c4d085d466100004f","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:48Z","@updated_at":"2011-07-26T11:13:48Z","name":"Category
157
+ 12"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1714d085d46a7000026","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:53Z","@updated_at":"2011-07-26T11:13:53Z","name":"Category
158
+ 13"},{"@type":"Category","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1754d085d46aa000026","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033","@version":1,"@trash":false,"@created_at":"2011-07-26T11:13:57Z","@updated_at":"2011-07-26T11:13:57Z","name":"Category
159
+ 14"}]}}'
160
+ http_version:
161
+ recorded_at: Wed, 17 Sep 2014 08:31:46 GMT
162
+ - request:
163
+ method: get
164
+ uri: http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries.json?auth_token=application_api_key
165
+ body:
166
+ encoding: US-ASCII
167
+ string: ''
168
+ headers:
169
+ Accept-Encoding:
170
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
171
+ Accept:
172
+ - "*/*"
173
+ User-Agent:
174
+ - Ruby
175
+ response:
176
+ status:
177
+ code: 200
178
+ message: OK
179
+ headers:
180
+ Server:
181
+ - nginx/1.1.19
182
+ Date:
183
+ - Wed, 17 Sep 2014 08:30:35 GMT
184
+ Content-Type:
185
+ - application/json; charset=utf-8
186
+ Content-Length:
187
+ - '3578'
188
+ Connection:
189
+ - keep-alive
190
+ Status:
191
+ - 200 OK
192
+ X-Ua-Compatible:
193
+ - IE=Edge,chrome=1
194
+ Etag:
195
+ - '"afa958c160c068b8428c38e4ba7280cf"'
196
+ Cache-Control:
197
+ - max-age=0, private, must-revalidate
198
+ Accept-Ranges:
199
+ - bytes
200
+ body:
201
+ encoding: UTF-8
202
+ string: '{"array":{"@total_resources":2,"@pages":1,"@page":1,"@per_page":20,"@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries","@type":"Array","resources":[{"@type":"Codequest","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@version":2,"@trash":false,"@created_at":"2014-09-08T08:49:26Z","@updated_at":"2014-09-12T08:49:46Z","name":"Test","number":11,"float1":1.1,"boolean":true,"date":"2014-09-03","time":"2014-09-09T06:13:00Z","location":{"@type":"Location","lat":53.13248859999999,"lng":23.168840300000056},"file":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d/fields/k540d6d001e29fa3541000d34/file.png"},"image":{"@type":"Image","@url":"http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d/fields/k540d6d001e29fa3541000d35/file.png","@processing":false,"@versions":{}},"array":["some
203
+ value","second value","third value"],"entry":{"@type":"Restaurant","url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d960919ba05617333000012"},"entries":[{"@type":"Category","url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1674d085d46a7000021"},{"@type":"Category","url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1644d085d46e0000019"}],"object_json":null},{"@type":"Codequest","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries/5412e93a1e29fa07dd00178b","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@version":2,"@trash":false,"@created_at":"2014-09-12T12:38:18Z","@updated_at":"2014-09-12T12:39:26Z","name":"Test
204
+ z plikiem","number":11,"float1":null,"boolean":null,"date":null,"time":null,"location":null,"file":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/5412e93a1e29fa07dd00178b/fields/k540d6d001e29fa3541000d34/file.pdf"},"image":{"@type":"Image","@url":"http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/5412e93a1e29fa07dd00178b/fields/k540d6d001e29fa3541000d35/file.png","@processing":false,"@versions":{}},"array":[],"entry":null,"entries":[{"@type":"Category","url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1644d085d46e0000019"},{"@type":"Category","url":"http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1674d085d46a7000021"}],"object_json":{"entry":{"@type":"Codequest","@url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d","@version":2,"@trash":false,"@created_at":"2014-09-08T08:49:26Z","@updated_at":"2014-09-12T08:49:46Z","name":"Test","number":11}}}]}}'
205
+ http_version:
206
+ recorded_at: Wed, 17 Sep 2014 08:31:47 GMT
207
+ - request:
208
+ method: get
209
+ uri: http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries.json?auth_token=application_api_key
210
+ body:
211
+ encoding: US-ASCII
212
+ string: ''
213
+ headers:
214
+ Accept-Encoding:
215
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
216
+ Accept:
217
+ - "*/*"
218
+ User-Agent:
219
+ - Ruby
220
+ response:
221
+ status:
222
+ code: 200
223
+ message: OK
224
+ headers:
225
+ Server:
226
+ - nginx/1.1.19
227
+ Date:
228
+ - Wed, 17 Sep 2014 08:30:35 GMT
229
+ Content-Type:
230
+ - application/json; charset=utf-8
231
+ Content-Length:
232
+ - '13806'
233
+ Connection:
234
+ - keep-alive
235
+ Status:
236
+ - 200 OK
237
+ X-Ua-Compatible:
238
+ - IE=Edge,chrome=1
239
+ Etag:
240
+ - '"fcad81f1f6273c1607b54f89f0f6fbb8"'
241
+ Cache-Control:
242
+ - max-age=0, private, must-revalidate
243
+ Accept-Ranges:
244
+ - bytes
245
+ body:
246
+ encoding: UTF-8
247
+ string: '{"array":{"@total_resources":10,"@pages":1,"@page":1,"@per_page":20,"@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries","@type":"Array","resources":[{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d960917ba05617333000011","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":4,"@trash":false,"@created_at":"2011-04-01T17:19:19Z","@updated_at":"2013-04-19T10:37:53Z","name":"M-Steakhouse","text":"Hello.Probably
248
+ the best beef in Germany. ","website":"http://www.the-steakhouse.de/steakhouse/main-frames.html","location":{"@type":"Location","lat":50.106993125620185,"lng":8.630141015624986},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d960917ba05617333000011/fields/k4d960916ba0561733300000f/file.png"},"address":"Feuerbachstrasse
249
+ 11a\r\n60325 Frankfurt am Main\r\nGermany","last_visit":"2011-04-01","price_range":3,"stars":4,"vegetarian_menu":true,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d960917ba05617333000011/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d960919ba05617333000012","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":4,"@trash":false,"@created_at":"2011-04-01T17:19:21Z","@updated_at":"2012-04-07T11:39:25Z","name":"Banyan
250
+ Tree Bangkok - Vertigo","text":"A must-see on every Bangkok travel itinerary,
251
+ Vertigo is unlike any other bar-restaurant in the world: some 61 floors above
252
+ the streets of Bangkok, this open-air rooftop lounge gives true meaning to
253
+ the word ''vertigo'' as it grants views that simply take your breath away.
254
+ Stylish, sophisticated and reaching for the clouds, there is no better place
255
+ for a romantic t\u00eate-\u00e0-t\u00eate, glamorous cocktail party or fashion
256
+ launch than this. Indulge in a variety of western-style fresh grilled seafood
257
+ and premium steaks, champagne and a wide selection of cocktails, wines-by-the-glass
258
+ and non-alcoholic drinks.","website":"http://www.banyantree.com/en/bangkok/overview","location":{"@type":"Location","lat":13.724,"lng":100.5411},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d960919ba05617333000012/fields/k4d960916ba0561733300000f/file.png"},"address":"21/100
259
+ South Sathon Road\r\nBangkok, 10120\r\n Thailand","last_visit":"2011-03-29","price_range":2,"stars":3,"vegetarian_menu":false,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d960919ba05617333000012/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d96091aba05617333000014","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:22Z","@updated_at":"2011-04-01T17:19:22Z","name":"Peter
260
+ Luger","text":"Rated No. 1 New York Steak House for 26 years in a Row.","website":"http://www.peterluger.com/","location":{"@type":"Location","lat":40.7097,"lng":-73.962},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091aba05617333000014/fields/k4d960916ba0561733300000f/file.png"},"address":"178
261
+ Broadway\nBrooklyn, N.Y. 11211","last_visit":"2011-03-02","price_range":3,"stars":4,"vegetarian_menu":false,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091aba05617333000014/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d96091aba05617333000015","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:22Z","@updated_at":"2011-04-01T17:19:22Z","name":"Pat''s
262
+ King of Steaks","text":"Creator of the Philly Steak and Cheese Steak","website":"http://www.patskingofsteaks.com/","location":{"@type":"Location","lat":39.933,"lng":-75.159},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091aba05617333000015/fields/k4d960916ba0561733300000f/file.png"},"address":"1237
263
+ East Passyunk Avenue\n, Philadelphia, PA","last_visit":"2011-03-29","price_range":1,"stars":3,"vegetarian_menu":true,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091aba05617333000015/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d96091aba05617333000013","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":11,"@trash":false,"@created_at":"2011-04-01T17:19:22Z","@updated_at":"2013-03-01T07:59:05Z","name":"Wolfgang''s
264
+ Steakhouse","text":"Located in the heart of midtown Manhattan, the flagship
265
+ Park Avenue Wolfgang\u2019s is splendidly situated in the former Vanderbilt
266
+ Hotel dining room.","website":"http://wolfgangssteakhouse.net/","location":{"@type":"Location","lat":52.516246155615235,"lng":13.404717908984367},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091aba05617333000013/fields/k4d960916ba0561733300000f/file.png"},"address":"4
267
+ Park Avenue\r\nNew York, NY 10016","last_visit":"2011-03-25","price_range":2,"stars":2,"vegetarian_menu":false,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091aba05617333000013/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d96091bba05617333000016","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:23Z","@updated_at":"2011-04-01T17:19:23Z","name":"Shula''s","text":"One
268
+ of the best Steak Houses in Florida","website":"http://www.donshula.com/locations.php?sub=4&l=1&restid=7","location":{"@type":"Location","lat":25.913,"lng":-80.322},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091bba05617333000016/fields/k4d960916ba0561733300000f/file.png"},"address":"7601
269
+ Miami Lakes Drive\nMiami Lakes, FL 33014","last_visit":"2010-12-22","price_range":3,"stars":4,"vegetarian_menu":false,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091bba05617333000016/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d96091bba05617333000017","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:23Z","@updated_at":"2011-04-01T17:19:23Z","name":"LG''s
270
+ Steak House","text":"In December of 1997, a second LG''s Prime Steakhouse
271
+ opened in beautiful downtown Palm Springs, California. Located on South Palm
272
+ Canyon Drive, between the cross streets of Arenas and Barristo, LG''s Prime
273
+ Steakhouse, Palm Springs features a large covered patio for dining and people
274
+ watching on South Palm Canyon. The d\u00e9cor is eclectic and the restaurant
275
+ has a private dining room for parties. French doors in the main dining area
276
+ open onto the patio, which also has an indoor-outdoor bar.","website":"http://www.lgsprimesteakhouse.com/palmsprings.html","location":{"@type":"Location","lat":33.82,"lng":-116.546},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091bba05617333000017/fields/k4d960916ba0561733300000f/file.png"},"address":"255
277
+ S. Palm Canyon Drive\nPalm Springs, CA 92262","last_visit":"2010-04-01","price_range":3,"stars":5,"vegetarian_menu":false,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091bba05617333000017/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d96091cba05617333000018","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:24Z","@updated_at":"2011-04-01T17:19:24Z","name":"Hill
278
+ Top Steak House","text":"In 1961 Frank Giuffrida bought a club in Saugus that
279
+ he converted into a western-style steakhouse. Over the years Frank became
280
+ known as the \"king of the Hill\" serving over three million customers annually. Now
281
+ over 50 million meals later The Hilltop is still known today for it''s generous
282
+ portions at a great value winning numerous awards.","website":"http://hilltopsteakhouse.com","location":{"@type":"Location","lat":42.474,"lng":-71.023},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091cba05617333000018/fields/k4d960916ba0561733300000f/file.png"},"address":"855
283
+ Broadway, Saugus, MA","last_visit":"2011-02-06","price_range":2,"stars":1,"vegetarian_menu":true,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091cba05617333000018/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d96091cba05617333000019","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:24Z","@updated_at":"2011-04-01T17:19:24Z","name":"Morton''s
284
+ Steak House","text":"Located in Toronto''s trendy Yorkville at the Park Hyatt
285
+ Hotel, Morton''s the Steakhouse offers a classic dining experience. Welcoming
286
+ decor, succulent steaks and fresh fish and seafood make Morton''s a destination
287
+ for Torontonians, celebrities and tourists alike. Whether you are looking
288
+ for the perfect place to unwind with cocktails and Bar Bites or to book a
289
+ private boardroom for a special occasion, Morton''s offers impeccable service
290
+ and a timeless menu.","website":"http://www.mortons.com/toronto/","location":{"@type":"Location","lat":43.668,"lng":-79.394},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091cba05617333000019/fields/k4d960916ba0561733300000f/file.png"},"address":"4
291
+ Avenue Road at Prince Arthur\nToronto, Canada","last_visit":"2010-11-29","price_range":3,"stars":3,"vegetarian_menu":true,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091cba05617333000019/fields/k4d960916ba05617333000010/file.png"}},{"@type":"Restaurant","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d96091cba0561733300001a","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:24Z","@updated_at":"2011-04-01T17:19:24Z","name":"Ruth''s
292
+ Chris Honululu","text":"Whether it''s a romantic steak dinner for two, an
293
+ important business meeting, or a private party, Ruth''s Chris Steak House
294
+ can accommodate your needs. Our Honolulu steakhouse provides guests with a
295
+ warm, comfortable atmosphere. The restaurant is also handicap accessible.","website":"http://www.ruthschris.com/Steak-House/6504/Honolulu/Oahu","location":{"@type":"Location","lat":21.3,"lng":-157.861},"image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091cba0561733300001a/fields/k4d960916ba0561733300000f/file.png"},"address":"500
296
+ Ala Moana Blvd,\nRestaurant Row,\nHonolulu, HI 96813","last_visit":"2011-01-14","price_range":3,"stars":4,"vegetarian_menu":false,"preview_image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d960916ba05617333000005/entries/4d96091cba0561733300001a/fields/k4d960916ba05617333000010/file.png"}}]}}'
297
+ http_version:
298
+ recorded_at: Wed, 17 Sep 2014 08:31:47 GMT
299
+ - request:
300
+ method: get
301
+ uri: http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries.json?auth_token=application_api_key
302
+ body:
303
+ encoding: US-ASCII
304
+ string: ''
305
+ headers:
306
+ Accept-Encoding:
307
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
308
+ Accept:
309
+ - "*/*"
310
+ User-Agent:
311
+ - Ruby
312
+ response:
313
+ status:
314
+ code: 200
315
+ message: OK
316
+ headers:
317
+ Server:
318
+ - nginx/1.1.19
319
+ Date:
320
+ - Wed, 17 Sep 2014 08:30:36 GMT
321
+ Content-Type:
322
+ - application/json; charset=utf-8
323
+ Content-Length:
324
+ - '4582'
325
+ Connection:
326
+ - keep-alive
327
+ Status:
328
+ - 200 OK
329
+ X-Ua-Compatible:
330
+ - IE=Edge,chrome=1
331
+ Etag:
332
+ - '"6c1cca8f6776ee04fcabe8dd59dd24d1"'
333
+ Cache-Control:
334
+ - max-age=0, private, must-revalidate
335
+ Accept-Ranges:
336
+ - bytes
337
+ body:
338
+ encoding: UTF-8
339
+ string: '{"array":{"@total_resources":8,"@pages":1,"@page":1,"@per_page":20,"@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries","@type":"Array","resources":[{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000021","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-04-01T17:19:25Z","text":"Welcome
340
+ to our app. Try clicking around.","locale":"en","type":"announcement","link":null,"image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000022","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-04-01T17:19:25Z","text":"We
341
+ submitted a new version of our application, you will be able to download it
342
+ soon","locale":"en","type":"announcement","link":null,"image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000023","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":2,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-08-08T09:54:28Z","text":"Why
343
+ not follow us on twitter?","locale":"en","type":"announcement","link":"http://www.twitter.com/thriventures","image":{"@type":"File","@url":"http://files.storageroomapp.com/accounts/account_id/collection/4d96091dba0561733300001b/entries/4d96091dba05617333000023/fields/k4d96091dba05617333000020/file.png"}},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000024","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-04-01T17:19:25Z","text":"Did
344
+ you visit the website of our partner?","locale":"en","type":"announcement","link":"http://www.google.com/","image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000025","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":1,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-04-01T17:19:25Z","text":"Our
345
+ blog is currently down, please bear with us","locale":"en","type":"announcement","link":null,"image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000026","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":3,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-11-24T08:20:02Z","text":"Buy
346
+ our other app with a 30% discount today","locale":"en","type":"announcement","link":null,"image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000027","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":3,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-11-24T08:20:06Z","text":"Yey,
347
+ we have won an award for our application!","locale":"en","type":"announcement","link":"http://oscar.go.com/","image":null},{"@type":"Announcement","@url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b/entries/4d96091dba05617333000028","@collection_url":"http://api.storageroomapp.com/accounts/account_id/collections/4d96091dba0561733300001b","@version":3,"@trash":false,"@created_at":"2011-04-01T17:19:25Z","@updated_at":"2011-11-24T08:20:09Z","text":"Did
348
+ you know that you can change the interface language in the settings?","locale":"en","type":"announcement","link":null,"image":null}]}}'
349
+ http_version:
350
+ recorded_at: Wed, 17 Sep 2014 08:31:47 GMT
351
+ recorded_with: VCR 2.9.3