restforce-db 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/restforce/db/associations/base.rb +7 -7
- data/lib/restforce/db/associations/belongs_to.rb +6 -10
- data/lib/restforce/db/associations/foreign_key.rb +1 -2
- data/lib/restforce/db/associations/has_many.rb +2 -1
- data/lib/restforce/db/associations/has_one.rb +2 -1
- data/lib/restforce/db/cleaner.rb +25 -3
- data/lib/restforce/db/configuration.rb +7 -0
- data/lib/restforce/db/record_types/active_record.rb +5 -1
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db.rb +1 -0
- data/test/cassettes/Restforce_DB/accessing_Salesforce/uses_the_configured_credentials.yml +1 -1
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/and_the_underlying_association_is_one-to-many/still_returns_a_nil_lookup_value_in_the_hash.yml +119 -0
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/returns_a_nil_lookup_value_in_the_hash.yml +6 -6
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_alrady_been_persisted/constructs_the_association_from_the_existing_records.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +9 -9
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/and_a_nested_association_on_the_associated_mapping/recursively_builds_all_associations.yml +25 -25
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_Salesforce_association_is_out_of_date/updates_the_association_ID_in_Salesforce.yml +30 -30
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_database_association_is_out_of_date/updates_the_associated_record_in_the_database.yml +33 -33
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_mapping_has_no_conditions/does_not_drop_the_synchronized_database_record.yml +6 -6
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/but_meets_conditions_for_a_parallel_mapping/does_not_drop_the_synchronized_database_record.yml +238 -0
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/{for_a_non-Passive_strategy/drops_the_synchronized_database_record.yml → drops_the_synchronized_database_record.yml} +11 -11
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_meets_the_mapping_conditions/does_not_drop_the_synchronized_database_record.yml +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +3 -3
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +6 -6
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +10 -10
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +9 -9
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +9 -9
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +14 -14
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +17 -17
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +9 -9
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +12 -12
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +12 -12
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +9 -9
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_does_not_meet_the_conditions/does_not_find_the_record.yml +8 -8
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +9 -9
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +3 -3
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +9 -9
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/with_a_corresponding_database_record/does_not_want_to_build_a_new_record.yml +9 -9
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_an_existing_database_record/does_not_want_to_build_a_new_record.yml +14 -14
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_no_synchronized_association_record/does_not_want_to_build_a_new_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +14 -14
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +12 -12
- data/test/lib/restforce/db/associations/belongs_to_test.rb +17 -0
- data/test/lib/restforce/db/cleaner_test.rb +20 -4
- data/test/support/active_record.rb +3 -0
- data/test/support/vcr.rb +8 -0
- metadata +5 -3
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1430497997739","token_type":"Bearer","instance_url":"https://<host>","signature":"f4tQcugKKSE9kjNZgHUkr/ZXGP27pEKiZGfEskeGWgY=","access_token":"00D1a000000H3O9!AQ4AQDv3Hk9TRSKHVK.6TQHDjiXPpFDEH7AxoxdK.ytZcKr4gkBGokBh2ZhUcaf0_eFqhFa6YVCzmfP.bUKsz9xIJOy41iQD"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Fri, 01 May 2015 16:33:18 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Email":"somebody@example.com","LastName":"Somebody"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=11/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000002jr5oAAA"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"0031a000002jr5oAAA","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Fri, 01 May 2015 16:33:18 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: '{"Friend__c":"0031a000002jr5oAAA"}'
|
@@ -114,7 +114,7 @@ http_interactions:
|
|
114
114
|
Sforce-Limit-Info:
|
115
115
|
- api-usage=11/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001TuP2AAK"
|
118
118
|
Content-Type:
|
119
119
|
- application/json;charset=UTF-8
|
120
120
|
Transfer-Encoding:
|
@@ -122,11 +122,11 @@ http_interactions:
|
|
122
122
|
body:
|
123
123
|
encoding: ASCII-8BIT
|
124
124
|
string: '{"id":"a001a000001TuP2AAK","success":true,"errors":[]}'
|
125
|
-
http_version:
|
125
|
+
http_version:
|
126
126
|
recorded_at: Fri, 01 May 2015 16:33:18 GMT
|
127
127
|
- request:
|
128
128
|
method: get
|
129
|
-
uri: https://<host>/services/data
|
129
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000002jr5oAAA%27
|
130
130
|
body:
|
131
131
|
encoding: US-ASCII
|
132
132
|
string: ''
|
@@ -159,12 +159,12 @@ http_interactions:
|
|
159
159
|
- chunked
|
160
160
|
body:
|
161
161
|
encoding: ASCII-8BIT
|
162
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data
|
163
|
-
http_version:
|
162
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000002jr5oAAA"},"Id":"0031a000002jr5oAAA","SystemModstamp":"2015-05-01T16:33:18.000+0000","Email":"somebody@example.com"}]}'
|
163
|
+
http_version:
|
164
164
|
recorded_at: Fri, 01 May 2015 16:33:18 GMT
|
165
165
|
- request:
|
166
166
|
method: get
|
167
|
-
uri: https://<host>/services/data
|
167
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Friend__c%20=%20%270031a000002jr5oAAA%27
|
168
168
|
body:
|
169
169
|
encoding: US-ASCII
|
170
170
|
string: ''
|
@@ -197,12 +197,12 @@ http_interactions:
|
|
197
197
|
- chunked
|
198
198
|
body:
|
199
199
|
encoding: ASCII-8BIT
|
200
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
201
|
-
http_version:
|
200
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001TuP2AAK"},"Id":"a001a000001TuP2AAK","SystemModstamp":"2015-05-01T16:33:18.000+0000","Name":"a001a000001TuP2","Example_Field__c":null,"Friend__c":"0031a000002jr5oAAA"}]}'
|
201
|
+
http_version:
|
202
202
|
recorded_at: Fri, 01 May 2015 16:33:19 GMT
|
203
203
|
- request:
|
204
204
|
method: delete
|
205
|
-
uri: https://<host>/services/data
|
205
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000002jr5oAAA
|
206
206
|
body:
|
207
207
|
encoding: US-ASCII
|
208
208
|
string: ''
|
@@ -232,11 +232,11 @@ http_interactions:
|
|
232
232
|
body:
|
233
233
|
encoding: UTF-8
|
234
234
|
string: ''
|
235
|
-
http_version:
|
235
|
+
http_version:
|
236
236
|
recorded_at: Fri, 01 May 2015 16:33:19 GMT
|
237
237
|
- request:
|
238
238
|
method: delete
|
239
|
-
uri: https://<host>/services/data
|
239
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001TuP2AAK
|
240
240
|
body:
|
241
241
|
encoding: US-ASCII
|
242
242
|
string: ''
|
@@ -266,6 +266,6 @@ http_interactions:
|
|
266
266
|
body:
|
267
267
|
encoding: UTF-8
|
268
268
|
string: ''
|
269
|
-
http_version:
|
269
|
+
http_version:
|
270
270
|
recorded_at: Fri, 01 May 2015 16:33:19 GMT
|
271
271
|
recorded_with: VCR 2.9.3
|
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431460626374","token_type":"Bearer","instance_url":"https://<host>","signature":"1Zzf/BDRxmeaZ/+eIrifZJcG35w/MfK2z4CME5hYJa8=","access_token":"00D1a000000H3O9!AQ4AQCN.EK5q2GqYClj_rprS9iFZEfWNjLjAqM_ql5mTUm5HJcVjXHY5YGQjvRhrTa_S8zNQyoc122zuBhcNpC6YS7qVpYuM"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Tue, 12 May 2015 19:57:06 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Email":"somebody@example.com","LastName":"Somebody"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=1/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000003Gm5IAAS"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"0031a000003Gm5IAAS","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Tue, 12 May 2015 19:57:08 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: '{"Friend__c":"0031a000003Gm5IAAS"}'
|
@@ -114,7 +114,7 @@ http_interactions:
|
|
114
114
|
Sforce-Limit-Info:
|
115
115
|
- api-usage=2/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZKK8AAO"
|
118
118
|
Content-Type:
|
119
119
|
- application/json;charset=UTF-8
|
120
120
|
Transfer-Encoding:
|
@@ -122,11 +122,11 @@ http_interactions:
|
|
122
122
|
body:
|
123
123
|
encoding: ASCII-8BIT
|
124
124
|
string: '{"id":"a001a000001ZKK8AAO","success":true,"errors":[]}'
|
125
|
-
http_version:
|
125
|
+
http_version:
|
126
126
|
recorded_at: Tue, 12 May 2015 19:57:09 GMT
|
127
127
|
- request:
|
128
128
|
method: get
|
129
|
-
uri: https://<host>/services/data
|
129
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000003Gm5IAAS%27
|
130
130
|
body:
|
131
131
|
encoding: US-ASCII
|
132
132
|
string: ''
|
@@ -159,12 +159,12 @@ http_interactions:
|
|
159
159
|
- chunked
|
160
160
|
body:
|
161
161
|
encoding: ASCII-8BIT
|
162
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data
|
163
|
-
http_version:
|
162
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000003Gm5IAAS"},"Id":"0031a000003Gm5IAAS","SystemModstamp":"2015-05-12T19:57:07.000+0000","Email":"somebody@example.com"}]}'
|
163
|
+
http_version:
|
164
164
|
recorded_at: Tue, 12 May 2015 19:57:10 GMT
|
165
165
|
- request:
|
166
166
|
method: delete
|
167
|
-
uri: https://<host>/services/data
|
167
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000003Gm5IAAS
|
168
168
|
body:
|
169
169
|
encoding: US-ASCII
|
170
170
|
string: ''
|
@@ -194,11 +194,11 @@ http_interactions:
|
|
194
194
|
body:
|
195
195
|
encoding: UTF-8
|
196
196
|
string: ''
|
197
|
-
http_version:
|
197
|
+
http_version:
|
198
198
|
recorded_at: Tue, 12 May 2015 19:57:11 GMT
|
199
199
|
- request:
|
200
200
|
method: delete
|
201
|
-
uri: https://<host>/services/data
|
201
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZKK8AAO
|
202
202
|
body:
|
203
203
|
encoding: US-ASCII
|
204
204
|
string: ''
|
@@ -228,6 +228,6 @@ http_interactions:
|
|
228
228
|
body:
|
229
229
|
encoding: UTF-8
|
230
230
|
string: ''
|
231
|
-
http_version:
|
231
|
+
http_version:
|
232
232
|
recorded_at: Tue, 12 May 2015 19:57:12 GMT
|
233
233
|
recorded_with: VCR 2.9.3
|
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428715540708","token_type":"Bearer","instance_url":"https://<host>","signature":"br3UtG9nUBftzMR/OwfVXhT7UyMZMSzwe1iMucUTqME=","access_token":"00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Sat, 11 Apr 2015 01:25:41 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Email":"somebody@example.com","LastName":"Somebody"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=138/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000001yZNRAA2"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"0031a000001yZNRAA2","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Sat, 11 Apr 2015 01:25:43 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: '{"Friend__c":"0031a000001yZNRAA2"}'
|
@@ -114,7 +114,7 @@ http_interactions:
|
|
114
114
|
Sforce-Limit-Info:
|
115
115
|
- api-usage=138/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgjAAG"
|
118
118
|
Content-Type:
|
119
119
|
- application/json;charset=UTF-8
|
120
120
|
Transfer-Encoding:
|
@@ -122,11 +122,11 @@ http_interactions:
|
|
122
122
|
body:
|
123
123
|
encoding: ASCII-8BIT
|
124
124
|
string: '{"id":"a001a000001LXgjAAG","success":true,"errors":[]}'
|
125
|
-
http_version:
|
125
|
+
http_version:
|
126
126
|
recorded_at: Sat, 11 Apr 2015 01:25:44 GMT
|
127
127
|
- request:
|
128
128
|
method: get
|
129
|
-
uri: https://<host>/services/data
|
129
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000001yZNRAA2%27
|
130
130
|
body:
|
131
131
|
encoding: US-ASCII
|
132
132
|
string: ''
|
@@ -159,12 +159,12 @@ http_interactions:
|
|
159
159
|
- chunked
|
160
160
|
body:
|
161
161
|
encoding: ASCII-8BIT
|
162
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data
|
163
|
-
http_version:
|
162
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000001yZNRAA2"},"Id":"0031a000001yZNRAA2","SystemModstamp":"2015-04-11T01:25:41.000+0000","Email":"somebody@example.com"}]}'
|
163
|
+
http_version:
|
164
164
|
recorded_at: Sat, 11 Apr 2015 01:25:45 GMT
|
165
165
|
- request:
|
166
166
|
method: get
|
167
|
-
uri: https://<host>/services/data
|
167
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Friend__c%20=%20%270031a000001yZNRAA2%27
|
168
168
|
body:
|
169
169
|
encoding: US-ASCII
|
170
170
|
string: ''
|
@@ -197,12 +197,12 @@ http_interactions:
|
|
197
197
|
- chunked
|
198
198
|
body:
|
199
199
|
encoding: ASCII-8BIT
|
200
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
201
|
-
http_version:
|
200
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgjAAG"},"Id":"a001a000001LXgjAAG","SystemModstamp":"2015-04-11T01:25:44.000+0000","Name":"a001a000001LXgj","Example_Field__c":null,"Friend__c":"0031a000001yZNRAA2"}]}'
|
201
|
+
http_version:
|
202
202
|
recorded_at: Sat, 11 Apr 2015 01:25:46 GMT
|
203
203
|
- request:
|
204
204
|
method: delete
|
205
|
-
uri: https://<host>/services/data
|
205
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000001yZNRAA2
|
206
206
|
body:
|
207
207
|
encoding: US-ASCII
|
208
208
|
string: ''
|
@@ -232,11 +232,11 @@ http_interactions:
|
|
232
232
|
body:
|
233
233
|
encoding: UTF-8
|
234
234
|
string: ''
|
235
|
-
http_version:
|
235
|
+
http_version:
|
236
236
|
recorded_at: Sat, 11 Apr 2015 01:25:47 GMT
|
237
237
|
- request:
|
238
238
|
method: delete
|
239
|
-
uri: https://<host>/services/data
|
239
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgjAAG
|
240
240
|
body:
|
241
241
|
encoding: US-ASCII
|
242
242
|
string: ''
|
@@ -266,6 +266,6 @@ http_interactions:
|
|
266
266
|
body:
|
267
267
|
encoding: UTF-8
|
268
268
|
string: ''
|
269
|
-
http_version:
|
269
|
+
http_version:
|
270
270
|
recorded_at: Sat, 11 Apr 2015 01:25:48 GMT
|
271
271
|
recorded_with: VCR 2.9.3
|
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428715530373","token_type":"Bearer","instance_url":"https://<host>","signature":"fO3Z7pIm/ub1DYu2QTcZquDZczorZ6l9epcuSgkv39U=","access_token":"00D1a000000H3O9!AQ4AQKzh13pKuR2SlS.Cq04BnD.sliu.0jLuP2qUQvVfZBc5RaiRknImPjcZu5w_dvIzyN831OnqnR.o9XKdgX14n3l6dNnj"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Sat, 11 Apr 2015 01:25:30 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Email":"somebody@example.com","LastName":"Somebody"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=138/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000001yZNMAA2"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"0031a000001yZNMAA2","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Sat, 11 Apr 2015 01:25:31 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: '{"Friend__c":"0031a000001yZNMAA2"}'
|
@@ -114,7 +114,7 @@ http_interactions:
|
|
114
114
|
Sforce-Limit-Info:
|
115
115
|
- api-usage=138/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgBAAW"
|
118
118
|
Content-Type:
|
119
119
|
- application/json;charset=UTF-8
|
120
120
|
Transfer-Encoding:
|
@@ -122,11 +122,11 @@ http_interactions:
|
|
122
122
|
body:
|
123
123
|
encoding: ASCII-8BIT
|
124
124
|
string: '{"id":"a001a000001LXgBAAW","success":true,"errors":[]}'
|
125
|
-
http_version:
|
125
|
+
http_version:
|
126
126
|
recorded_at: Sat, 11 Apr 2015 01:25:33 GMT
|
127
127
|
- request:
|
128
128
|
method: get
|
129
|
-
uri: https://<host>/services/data
|
129
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000001yZNMAA2%27
|
130
130
|
body:
|
131
131
|
encoding: US-ASCII
|
132
132
|
string: ''
|
@@ -159,12 +159,12 @@ http_interactions:
|
|
159
159
|
- chunked
|
160
160
|
body:
|
161
161
|
encoding: ASCII-8BIT
|
162
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data
|
163
|
-
http_version:
|
162
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000001yZNMAA2"},"Id":"0031a000001yZNMAA2","SystemModstamp":"2015-04-11T01:25:31.000+0000","Email":"somebody@example.com"}]}'
|
163
|
+
http_version:
|
164
164
|
recorded_at: Sat, 11 Apr 2015 01:25:35 GMT
|
165
165
|
- request:
|
166
166
|
method: get
|
167
|
-
uri: https://<host>/services/data
|
167
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Friend__c%20=%20%270031a000001yZNMAA2%27
|
168
168
|
body:
|
169
169
|
encoding: US-ASCII
|
170
170
|
string: ''
|
@@ -197,12 +197,12 @@ http_interactions:
|
|
197
197
|
- chunked
|
198
198
|
body:
|
199
199
|
encoding: ASCII-8BIT
|
200
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
201
|
-
http_version:
|
200
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgBAAW"},"Id":"a001a000001LXgBAAW","SystemModstamp":"2015-04-11T01:25:32.000+0000","Name":"a001a000001LXgB","Example_Field__c":null,"Friend__c":"0031a000001yZNMAA2"}]}'
|
201
|
+
http_version:
|
202
202
|
recorded_at: Sat, 11 Apr 2015 01:25:36 GMT
|
203
203
|
- request:
|
204
204
|
method: delete
|
205
|
-
uri: https://<host>/services/data
|
205
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000001yZNMAA2
|
206
206
|
body:
|
207
207
|
encoding: US-ASCII
|
208
208
|
string: ''
|
@@ -232,11 +232,11 @@ http_interactions:
|
|
232
232
|
body:
|
233
233
|
encoding: UTF-8
|
234
234
|
string: ''
|
235
|
-
http_version:
|
235
|
+
http_version:
|
236
236
|
recorded_at: Sat, 11 Apr 2015 01:25:37 GMT
|
237
237
|
- request:
|
238
238
|
method: delete
|
239
|
-
uri: https://<host>/services/data
|
239
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXgBAAW
|
240
240
|
body:
|
241
241
|
encoding: US-ASCII
|
242
242
|
string: ''
|
@@ -266,6 +266,6 @@ http_interactions:
|
|
266
266
|
body:
|
267
267
|
encoding: UTF-8
|
268
268
|
string: ''
|
269
|
-
http_version:
|
269
|
+
http_version:
|
270
270
|
recorded_at: Sat, 11 Apr 2015 01:25:38 GMT
|
271
271
|
recorded_with: VCR 2.9.3
|