--- http_interactions: - request: method: get uri: http://api.storageroomapp.com/accounts/account_id/collections.json?auth_token=application_api_key body: encoding: US-ASCII string: '' headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Server: - nginx/1.1.19 Date: - Wed, 17 Sep 2014 08:29:01 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - '9474' Connection: - keep-alive Status: - 200 OK X-Ua-Compatible: - IE=Edge,chrome=1 Etag: - '"07493a7a638d7722da61013620286fd9"' Cache-Control: - max-age=0, private, must-revalidate Accept-Ranges: - bytes body: encoding: UTF-8 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 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 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 Visit","identifier":"last_visit","show_in_interface":true,"edit_in_interface":true,"input_type":"date_picker","include_blank_choice":false},{"@type":"IntegerField","name":"Price 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 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 Image","identifier":"preview_image","show_in_interface":true,"edit_in_interface":true,"input_type":"file","hint":"Upload 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}]}]}}' http_version: recorded_at: Wed, 17 Sep 2014 08:30:12 GMT recorded_with: VCR 2.9.3