ruby_odata 0.1.6 → 0.2.0.beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/CHANGELOG.md +5 -0
  4. data/Gemfile +2 -0
  5. data/Guardfile +1 -1
  6. data/features/basic_auth.feature +13 -13
  7. data/features/cassettes/basic_auth_protected_resource.yml +22 -20
  8. data/features/cassettes/batch_request_additions.yml +26 -26
  9. data/features/cassettes/batch_request_deletes.yml +27 -27
  10. data/features/cassettes/batch_request_updates.yml +26 -26
  11. data/features/cassettes/clean_database_for_testing.yml +10 -10
  12. data/features/cassettes/cucumber_tags/basic_auth.yml +54 -163
  13. data/features/cassettes/cucumber_tags/batch_request.yml +229 -1118
  14. data/features/cassettes/cucumber_tags/complex_types.yml +81 -191
  15. data/features/cassettes/cucumber_tags/error_handling.yml +45 -33
  16. data/features/cassettes/cucumber_tags/query_builder.yml +555 -1248
  17. data/features/cassettes/cucumber_tags/service_manage.yml +216 -591
  18. data/features/cassettes/cucumber_tags/service_methods.yml +137 -412
  19. data/features/cassettes/cucumber_tags/ssl.yml +121 -117
  20. data/features/cassettes/cucumber_tags/type_conversion.yml +104 -170
  21. data/features/cassettes/service_manage_additions.yml +26 -28
  22. data/features/cassettes/service_manage_deletions.yml +21 -21
  23. data/features/cassettes/service_manage_deletions_2.yml +21 -21
  24. data/features/cassettes/unsecured_metadata.yml +14 -14
  25. data/features/service.feature +37 -37
  26. data/features/service_methods.feature +38 -38
  27. data/features/step_definitions/pickle_steps.rb +5 -5
  28. data/features/step_definitions/service_steps.rb +26 -26
  29. data/features/support/hooks.rb +3 -2
  30. data/features/support/vcr.rb +13 -13
  31. data/lib/ruby_odata.rb +4 -1
  32. data/lib/ruby_odata/association.rb +15 -8
  33. data/lib/ruby_odata/class_builder.rb +5 -1
  34. data/lib/ruby_odata/query_builder.rb +171 -173
  35. data/lib/ruby_odata/resource.rb +153 -0
  36. data/lib/ruby_odata/service.rb +30 -30
  37. data/lib/ruby_odata/version.rb +1 -1
  38. data/ruby_odata.gemspec +48 -43
  39. data/spec/association_spec.rb +15 -11
  40. data/spec/fixtures/decimal/metadata.xml +1 -0
  41. data/spec/fixtures/v4/edmx_metadata.xml +145 -0
  42. data/spec/fixtures/v4/result_categories.xml +0 -0
  43. data/spec/revised_service_spec.rb +16 -11
  44. data/spec/service_spec.rb +149 -114
  45. data/spec/service_v4_spec.rb +102 -0
  46. data/spec/spec_helper.rb +6 -1
  47. metadata +109 -32
  48. data/features/cassettes/cucumber_tags/service.yml +0 -234
@@ -1,137 +1,29 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
6
- body:
7
- encoding: ASCII-8BIT
8
- string: ! '--batch_3mb0-gw38-bn0g
9
-
10
- Content-Type: multipart/mixed;boundary=changeset_87nj-q7v2-p64i
11
-
12
-
13
- --changeset_87nj-q7v2-p64i
14
-
15
- Content-Type: application/http
16
-
17
- Content-Transfer-Encoding: binary
18
-
19
-
20
- POST http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)/$links/Products
21
- HTTP/1.1
22
-
23
- Accept-Charset: utf-8
24
-
25
- Content-Type: application/json;charset=utf-8
26
-
27
-
28
- {"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"}
29
-
30
- --changeset_87nj-q7v2-p64i
31
-
32
- Content-Type: application/http
33
-
34
- Content-Transfer-Encoding: binary
35
-
36
-
37
- POST http://win7dev:8989/SampleService/RubyOData.svc/Categories HTTP/1.1
38
-
39
- Accept-Charset: utf-8
40
-
41
- Content-Type: application/json;charset=utf-8
42
-
43
-
44
- {"Name":"Test Category","AuditFields":{"CreatedBy":"Machinist"}}
45
-
46
-
47
-
48
- --changeset_87nj-q7v2-p64i--
49
-
50
- --batch_3mb0-gw38-bn0g--'
51
- headers:
52
- Accept:
53
- - ! '*/*; q=0.5, application/xml'
54
- Accept-Encoding:
55
- - gzip, deflate
56
- Content-Type:
57
- - multipart/mixed; boundary=batch_3mb0-gw38-bn0g
58
- Content-Length:
59
- - '765'
60
- User-Agent:
61
- - Ruby
62
- response:
63
- status:
64
- code: 202
65
- message: Accepted
66
- headers:
67
- Cache-Control:
68
- - no-cache
69
- Content-Length:
70
- - '2130'
71
- Content-Type:
72
- - multipart/mixed; boundary=batchresponse_c6bcacc6-17c4-4f65-bb89-94ef24640dee
73
- Server:
74
- - Microsoft-IIS/7.5
75
- Set-Cookie:
76
- - ASP.NET_SessionId=dojfukdes1d1dv131v2epjev; path=/; HttpOnly
77
- X-Content-Type-Options:
78
- - nosniff
79
- Dataserviceversion:
80
- - 1.0;
81
- X-Aspnet-Version:
82
- - 4.0.30319
83
- X-Powered-By:
84
- - ASP.NET
85
- Date:
86
- - Tue, 07 Aug 2012 21:47:02 GMT
87
- body:
88
- encoding: US-ASCII
89
- string: ! "--batchresponse_c6bcacc6-17c4-4f65-bb89-94ef24640dee\r\nContent-Type:
90
- multipart/mixed; boundary=changesetresponse_90965503-473d-4fb7-bf68-beecd6b1a67d\r\n\r\n--changesetresponse_90965503-473d-4fb7-bf68-beecd6b1a67d\r\nContent-Type:
91
- application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
92
- No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
93
- 1.0;\r\n\r\n\r\n--changesetresponse_90965503-473d-4fb7-bf68-beecd6b1a67d\r\nContent-Type:
94
- application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
95
- Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
96
- nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Categories(3)\r\n\r\n<?xml
97
- version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
98
- xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
99
- xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
100
- xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(3)</id><category
101
- term=\"RubyODataService.Category\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
102
- /><link rel=\"edit\" title=\"Category\" href=\"Categories(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products\"
103
- type=\"application/atom+xml;type=feed\" title=\"Products\" href=\"Categories(3)/Products\"
104
- /><title /><updated>2012-08-07T21:47:02Z</updated><author><name /></author><content
105
- type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Test
106
- Category</d:Name><d:AuditFields m:type=\"RubyODataService.AuditFields\"><d:CreateDate
107
- m:type=\"Edm.DateTime\">2012-08-07T21:47:02.78125Z</d:CreateDate><d:ModifiedDate
108
- m:type=\"Edm.DateTime\">2012-08-07T21:47:02.78125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_90965503-473d-4fb7-bf68-beecd6b1a67d--\r\n--batchresponse_c6bcacc6-17c4-4f65-bb89-94ef24640dee--\r\n"
109
- http_version: !!null
110
- recorded_at: Tue, 07 Aug 2012 21:47:02 GMT
111
3
  - request:
112
4
  method: delete
113
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
5
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)
114
6
  body:
115
7
  encoding: US-ASCII
116
8
  string: ''
117
9
  headers:
118
- Accept:
119
- - ! '*/*; q=0.5, application/xml'
120
- Accept-Encoding:
121
- - gzip, deflate
122
10
  User-Agent:
123
11
  - Ruby
12
+ Accept:
13
+ - "*/*; q=0.5, application/xml"
14
+ Accept-Encoding:
15
+ - gzip,deflate
124
16
  response:
125
17
  status:
126
18
  code: 204
127
- message: No Content
19
+ message: ''
128
20
  headers:
129
21
  Cache-Control:
130
- - no-cache
22
+ - private
131
23
  Server:
132
- - Microsoft-IIS/7.5
24
+ - Microsoft-IIS/8.0
133
25
  Set-Cookie:
134
- - ASP.NET_SessionId=ddkn2kt3sorlrbounoqyzv5h; path=/; HttpOnly
26
+ - ASP.NET_SessionId=yaarsyzk2l0kv5amrjwfap5i; path=/; HttpOnly
135
27
  X-Content-Type-Options:
136
28
  - nosniff
137
29
  Dataserviceversion:
@@ -141,40 +33,40 @@ http_interactions:
141
33
  X-Powered-By:
142
34
  - ASP.NET
143
35
  Date:
144
- - Tue, 07 Aug 2012 21:47:36 GMT
36
+ - Sun, 26 Apr 2015 16:29:50 GMT
145
37
  body:
146
- encoding: US-ASCII
38
+ encoding: UTF-8
147
39
  string: ''
148
- http_version: !!null
149
- recorded_at: Tue, 07 Aug 2012 21:47:37 GMT
40
+ http_version:
41
+ recorded_at: Sun, 26 Apr 2015 16:29:50 GMT
150
42
  - request:
151
43
  method: get
152
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
44
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products
153
45
  body:
154
46
  encoding: US-ASCII
155
47
  string: ''
156
48
  headers:
157
- Accept:
158
- - ! '*/*; q=0.5, application/xml'
159
- Accept-Encoding:
160
- - gzip, deflate
161
49
  User-Agent:
162
50
  - Ruby
51
+ Accept:
52
+ - "*/*; q=0.5, application/xml"
53
+ Accept-Encoding:
54
+ - gzip,deflate
163
55
  response:
164
56
  status:
165
57
  code: 200
166
- message: OK
58
+ message: ''
167
59
  headers:
168
60
  Cache-Control:
169
- - no-cache
61
+ - private
170
62
  Content-Length:
171
- - '583'
63
+ - '589'
172
64
  Content-Type:
173
65
  - application/atom+xml;type=feed;charset=utf-8
174
66
  Server:
175
- - Microsoft-IIS/7.5
67
+ - Microsoft-IIS/8.0
176
68
  Set-Cookie:
177
- - ASP.NET_SessionId=r3lwlnsq4do5vzoe4gqqxv15; path=/; HttpOnly
69
+ - ASP.NET_SessionId=ncoxtw5rqtdoudl5ckfsn1mg; path=/; HttpOnly
178
70
  X-Content-Type-Options:
179
71
  - nosniff
180
72
  Dataserviceversion:
@@ -184,107 +76,43 @@ http_interactions:
184
76
  X-Powered-By:
185
77
  - ASP.NET
186
78
  Date:
187
- - Tue, 07 Aug 2012 21:47:36 GMT
79
+ - Sun, 26 Apr 2015 16:29:50 GMT
188
80
  body:
189
- encoding: US-ASCII
190
- string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
81
+ encoding: UTF-8
82
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
191
83
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
192
84
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
193
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
194
- type="text">Products</title><updated>2012-08-07T21:47:37Z</updated><link rel="self"
85
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products</id><title
86
+ type="text">Products</title><updated>2015-04-26T16:29:50Z</updated><link rel="self"
195
87
  title="Products" href="Products" /><author><name /></author></feed>
196
- http_version: !!null
197
- recorded_at: Tue, 07 Aug 2012 21:47:37 GMT
88
+ http_version:
89
+ recorded_at: Sun, 26 Apr 2015 16:29:50 GMT
198
90
  - request:
199
- method: post
200
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
91
+ method: put
92
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)
201
93
  body:
202
- encoding: ASCII-8BIT
203
- string: ! '{"Name":"Test Product","Description":"Test Widget","Price":"10.25","Category":{"Name":"Category
204
- 0004","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
94
+ encoding: UTF-8
95
+ string: '{"Name":"Changed Test Product","Description":"Test Widget","Price":"25.0","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2015-04-26T16:29:51.287","ModifiedDate":"2015-04-26T16:29:51.287"},"__metadata":{"uri":"http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}'
205
96
  headers:
206
- Accept:
207
- - ! '*/*; q=0.5, application/xml'
208
- Accept-Encoding:
209
- - gzip, deflate
210
- Content-Type:
211
- - application/json
212
- Content-Length:
213
- - '183'
214
97
  User-Agent:
215
98
  - Ruby
216
- response:
217
- status:
218
- code: 201
219
- message: Created
220
- headers:
221
- Cache-Control:
222
- - no-cache
223
- Content-Length:
224
- - '1437'
225
- Content-Type:
226
- - application/atom+xml;type=entry;charset=utf-8
227
- Location:
228
- - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
229
- Server:
230
- - Microsoft-IIS/7.5
231
- Set-Cookie:
232
- - ASP.NET_SessionId=vsvjv4a2z4mst4204d2cuwnn; path=/; HttpOnly
233
- X-Content-Type-Options:
234
- - nosniff
235
- Dataserviceversion:
236
- - 1.0;
237
- X-Aspnet-Version:
238
- - 4.0.30319
239
- X-Powered-By:
240
- - ASP.NET
241
- Date:
242
- - Tue, 07 Aug 2012 21:47:37 GMT
243
- body:
244
- encoding: US-ASCII
245
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
246
- xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
247
- xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
248
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
249
- term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
250
- /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
251
- type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
252
- /><title /><updated>2012-08-07T21:47:38Z</updated><author><name /></author><content
253
- type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
254
- Product</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
255
- m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
256
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:47:38.15625Z</d:CreateDate><d:ModifiedDate
257
- m:type="Edm.DateTime">2012-08-07T21:47:38.15625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
258
- http_version: !!null
259
- recorded_at: Tue, 07 Aug 2012 21:47:38 GMT
260
- - request:
261
- method: put
262
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
263
- body:
264
- encoding: ASCII-8BIT
265
- string: ! '{"Name":"Changed Test Product","Description":"Test Widget","Price":"10.25","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:47:38.157","ModifiedDate":"2012-08-07T21:47:38.157"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}'
266
- headers:
267
99
  Accept:
268
- - ! '*/*; q=0.5, application/xml'
269
- Accept-Encoding:
270
- - gzip, deflate
100
+ - "*/*; q=0.5, application/xml"
271
101
  Content-Type:
272
102
  - application/json
273
- Content-Length:
274
- - '324'
275
- User-Agent:
276
- - Ruby
103
+ Accept-Encoding:
104
+ - gzip,deflate
277
105
  response:
278
106
  status:
279
107
  code: 204
280
- message: No Content
108
+ message: ''
281
109
  headers:
282
110
  Cache-Control:
283
- - no-cache
111
+ - private
284
112
  Server:
285
- - Microsoft-IIS/7.5
113
+ - Microsoft-IIS/8.0
286
114
  Set-Cookie:
287
- - ASP.NET_SessionId=rfauncwxjdax30dltexzu35y; path=/; HttpOnly
115
+ - ASP.NET_SessionId=abskzjs3wkgzxxjv0yz0olc1; path=/; HttpOnly
288
116
  X-Content-Type-Options:
289
117
  - nosniff
290
118
  Dataserviceversion:
@@ -294,101 +122,40 @@ http_interactions:
294
122
  X-Powered-By:
295
123
  - ASP.NET
296
124
  Date:
297
- - Tue, 07 Aug 2012 21:47:37 GMT
125
+ - Sun, 26 Apr 2015 16:29:51 GMT
298
126
  body:
299
- encoding: US-ASCII
127
+ encoding: UTF-8
300
128
  string: ''
301
- http_version: !!null
302
- recorded_at: Tue, 07 Aug 2012 21:47:38 GMT
303
- - request:
304
- method: post
305
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
306
- body:
307
- encoding: ASCII-8BIT
308
- string: ! '{"Name":"Widget 0006","Description":"Test Widget","Price":"10.25","Category":{"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)"}},"AuditFields":{"CreatedBy":"Machinist"}}'
309
- headers:
310
- Accept:
311
- - ! '*/*; q=0.5, application/xml'
312
- Accept-Encoding:
313
- - gzip, deflate
314
- Content-Type:
315
- - application/json
316
- Content-Length:
317
- - '204'
318
- User-Agent:
319
- - Ruby
320
- response:
321
- status:
322
- code: 201
323
- message: Created
324
- headers:
325
- Cache-Control:
326
- - no-cache
327
- Content-Length:
328
- - '1436'
329
- Content-Type:
330
- - application/atom+xml;type=entry;charset=utf-8
331
- Location:
332
- - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
333
- Server:
334
- - Microsoft-IIS/7.5
335
- Set-Cookie:
336
- - ASP.NET_SessionId=tdqura0r2wt11cier4w5z5uo; path=/; HttpOnly
337
- X-Content-Type-Options:
338
- - nosniff
339
- Dataserviceversion:
340
- - 1.0;
341
- X-Aspnet-Version:
342
- - 4.0.30319
343
- X-Powered-By:
344
- - ASP.NET
345
- Date:
346
- - Tue, 07 Aug 2012 21:47:38 GMT
347
- body:
348
- encoding: US-ASCII
349
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
350
- xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
351
- xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
352
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
353
- term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
354
- /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
355
- type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
356
- /><title /><updated>2012-08-07T21:47:39Z</updated><author><name /></author><content
357
- type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
358
- 0006</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
359
- m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
360
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:47:39.34375Z</d:CreateDate><d:ModifiedDate
361
- m:type="Edm.DateTime">2012-08-07T21:47:39.34375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
362
- http_version: !!null
363
- recorded_at: Tue, 07 Aug 2012 21:47:39 GMT
129
+ http_version:
130
+ recorded_at: Sun, 26 Apr 2015 16:29:51 GMT
364
131
  - request:
365
132
  method: get
366
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)?$expand=Category
133
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)?$expand=Category
367
134
  body:
368
135
  encoding: US-ASCII
369
136
  string: ''
370
137
  headers:
371
- Accept:
372
- - ! '*/*; q=0.5, application/xml'
373
- Accept-Encoding:
374
- - gzip, deflate
375
138
  User-Agent:
376
139
  - Ruby
140
+ Accept:
141
+ - "*/*; q=0.5, application/xml"
142
+ Accept-Encoding:
143
+ - gzip,deflate
377
144
  response:
378
145
  status:
379
146
  code: 200
380
- message: OK
147
+ message: ''
381
148
  headers:
382
149
  Cache-Control:
383
- - no-cache
150
+ - private
384
151
  Content-Length:
385
- - '2347'
152
+ - '2357'
386
153
  Content-Type:
387
154
  - application/atom+xml;type=entry;charset=utf-8
388
155
  Server:
389
- - Microsoft-IIS/7.5
156
+ - Microsoft-IIS/8.0
390
157
  Set-Cookie:
391
- - ASP.NET_SessionId=nrtfaqvyaaxekhkss5abe4bk; path=/; HttpOnly
158
+ - ASP.NET_SessionId=tubhxfco1sg0u2tjaw4ohg0g; path=/; HttpOnly
392
159
  X-Content-Type-Options:
393
160
  - nosniff
394
161
  Dataserviceversion:
@@ -398,122 +165,58 @@ http_interactions:
398
165
  X-Powered-By:
399
166
  - ASP.NET
400
167
  Date:
401
- - Tue, 07 Aug 2012 21:47:38 GMT
168
+ - Sun, 26 Apr 2015 16:29:52 GMT
402
169
  body:
403
- encoding: US-ASCII
404
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
170
+ encoding: UTF-8
171
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
405
172
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
406
173
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
407
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
174
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
408
175
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
409
176
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
410
- type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"><m:inline><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)</id><category
177
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"><m:inline><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(1)</id><category
411
178
  term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
412
179
  /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
413
180
  type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
414
- /><title /><updated>2012-08-07T21:47:39Z</updated><author><name /></author><content
181
+ /><title /><updated>2015-04-26T16:29:52Z</updated><author><name /></author><content
415
182
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
416
183
  Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
417
- m:type="Edm.DateTime">2012-08-07T21:47:39.047</d:CreateDate><d:ModifiedDate
418
- m:type="Edm.DateTime">2012-08-07T21:47:39.047</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></m:inline></link><title
419
- /><updated>2012-08-07T21:47:39Z</updated><author><name /></author><content
184
+ m:type="Edm.DateTime">2015-04-26T16:29:52.397</d:CreateDate><d:ModifiedDate
185
+ m:type="Edm.DateTime">2015-04-26T16:29:52.397</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></m:inline></link><title
186
+ /><updated>2015-04-26T16:29:52Z</updated><author><name /></author><content
420
187
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
421
- 0006</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
188
+ 0065</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
422
189
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
423
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:47:39.343</d:CreateDate><d:ModifiedDate
424
- m:type="Edm.DateTime">2012-08-07T21:47:39.343</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
425
- http_version: !!null
426
- recorded_at: Tue, 07 Aug 2012 21:47:39 GMT
190
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:52.693</d:CreateDate><d:ModifiedDate
191
+ m:type="Edm.DateTime">2015-04-26T16:29:52.693</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
192
+ http_version:
193
+ recorded_at: Sun, 26 Apr 2015 16:29:52 GMT
427
194
  - request:
428
195
  method: post
429
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
196
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(1)/$links/Products
430
197
  body:
431
- encoding: ASCII-8BIT
432
- string: ! '{"Name":"Widget 0007","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
433
- 0008","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
198
+ encoding: UTF-8
199
+ string: '{"uri":"http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)"}'
434
200
  headers:
435
- Accept:
436
- - ! '*/*; q=0.5, application/xml'
437
- Accept-Encoding:
438
- - gzip, deflate
439
- Content-Type:
440
- - application/json
441
- Content-Length:
442
- - '182'
443
201
  User-Agent:
444
202
  - Ruby
445
- response:
446
- status:
447
- code: 201
448
- message: Created
449
- headers:
450
- Cache-Control:
451
- - no-cache
452
- Content-Length:
453
- - '1436'
454
- Content-Type:
455
- - application/atom+xml;type=entry;charset=utf-8
456
- Location:
457
- - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
458
- Server:
459
- - Microsoft-IIS/7.5
460
- Set-Cookie:
461
- - ASP.NET_SessionId=adrthcnqnla5y5ota5obfqfq; path=/; HttpOnly
462
- X-Content-Type-Options:
463
- - nosniff
464
- Dataserviceversion:
465
- - 1.0;
466
- X-Aspnet-Version:
467
- - 4.0.30319
468
- X-Powered-By:
469
- - ASP.NET
470
- Date:
471
- - Tue, 07 Aug 2012 21:47:39 GMT
472
- body:
473
- encoding: US-ASCII
474
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
475
- xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
476
- xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
477
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
478
- term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
479
- /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
480
- type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
481
- /><title /><updated>2012-08-07T21:47:40Z</updated><author><name /></author><content
482
- type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
483
- 0007</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
484
- m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
485
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:47:40.15625Z</d:CreateDate><d:ModifiedDate
486
- m:type="Edm.DateTime">2012-08-07T21:47:40.15625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
487
- http_version: !!null
488
- recorded_at: Tue, 07 Aug 2012 21:47:40 GMT
489
- - request:
490
- method: post
491
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)/$links/Products
492
- body:
493
- encoding: ASCII-8BIT
494
- string: ! '{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"}'
495
- headers:
496
203
  Accept:
497
- - ! '*/*; q=0.5, application/xml'
498
- Accept-Encoding:
499
- - gzip, deflate
204
+ - "*/*; q=0.5, application/xml"
500
205
  Content-Type:
501
206
  - application/json
502
- Content-Length:
503
- - '69'
504
- User-Agent:
505
- - Ruby
207
+ Accept-Encoding:
208
+ - gzip,deflate
506
209
  response:
507
210
  status:
508
211
  code: 204
509
- message: No Content
212
+ message: ''
510
213
  headers:
511
214
  Cache-Control:
512
- - no-cache
215
+ - private
513
216
  Server:
514
- - Microsoft-IIS/7.5
217
+ - Microsoft-IIS/8.0
515
218
  Set-Cookie:
516
- - ASP.NET_SessionId=ju12rtsznmkyyhrokn2sfwcj; path=/; HttpOnly
219
+ - ASP.NET_SessionId=v2qpcezvlihjskabfzx2eulk; path=/; HttpOnly
517
220
  X-Content-Type-Options:
518
221
  - nosniff
519
222
  Dataserviceversion:
@@ -523,101 +226,44 @@ http_interactions:
523
226
  X-Powered-By:
524
227
  - ASP.NET
525
228
  Date:
526
- - Tue, 07 Aug 2012 21:47:39 GMT
229
+ - Sun, 26 Apr 2015 16:29:54 GMT
527
230
  body:
528
- encoding: US-ASCII
231
+ encoding: UTF-8
529
232
  string: ''
530
- http_version: !!null
531
- recorded_at: Tue, 07 Aug 2012 21:47:40 GMT
233
+ http_version:
234
+ recorded_at: Sun, 26 Apr 2015 16:29:54 GMT
532
235
  - request:
533
- method: get
534
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
236
+ method: post
237
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories
535
238
  body:
536
- encoding: US-ASCII
537
- string: ''
239
+ encoding: UTF-8
240
+ string: '{"Name":"Category 0067","AuditFields":{"CreatedBy":"Machinist"}}'
538
241
  headers:
539
- Accept:
540
- - ! '*/*; q=0.5, application/xml'
541
- Accept-Encoding:
542
- - gzip, deflate
543
242
  User-Agent:
544
243
  - Ruby
545
- response:
546
- status:
547
- code: 200
548
- message: OK
549
- headers:
550
- Cache-Control:
551
- - no-cache
552
- Content-Length:
553
- - '1430'
554
- Content-Type:
555
- - application/atom+xml;type=entry;charset=utf-8
556
- Server:
557
- - Microsoft-IIS/7.5
558
- Set-Cookie:
559
- - ASP.NET_SessionId=ezpjpmjx2bgjg04ip5euviib; path=/; HttpOnly
560
- X-Content-Type-Options:
561
- - nosniff
562
- Dataserviceversion:
563
- - 1.0;
564
- X-Aspnet-Version:
565
- - 4.0.30319
566
- X-Powered-By:
567
- - ASP.NET
568
- Date:
569
- - Tue, 07 Aug 2012 21:47:39 GMT
570
- body:
571
- encoding: US-ASCII
572
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
573
- xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
574
- xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
575
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
576
- term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
577
- /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
578
- type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
579
- /><title /><updated>2012-08-07T21:47:40Z</updated><author><name /></author><content
580
- type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
581
- 0007</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
582
- m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
583
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:47:40.157</d:CreateDate><d:ModifiedDate
584
- m:type="Edm.DateTime">2012-08-07T21:47:40.157</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
585
- http_version: !!null
586
- recorded_at: Tue, 07 Aug 2012 21:47:40 GMT
587
- - request:
588
- method: post
589
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories
590
- body:
591
- encoding: ASCII-8BIT
592
- string: ! '{"Name":"Category 0009","AuditFields":{"CreatedBy":"Machinist"}}'
593
- headers:
594
244
  Accept:
595
- - ! '*/*; q=0.5, application/xml'
596
- Accept-Encoding:
597
- - gzip, deflate
245
+ - "*/*; q=0.5, application/xml"
598
246
  Content-Type:
599
247
  - application/json
600
- Content-Length:
601
- - '64'
602
- User-Agent:
603
- - Ruby
248
+ Accept-Encoding:
249
+ - gzip,deflate
604
250
  response:
605
251
  status:
606
252
  code: 201
607
- message: Created
253
+ message: ''
608
254
  headers:
609
255
  Cache-Control:
610
- - no-cache
256
+ - private
611
257
  Content-Length:
612
- - '1251'
258
+ - '1259'
613
259
  Content-Type:
614
260
  - application/atom+xml;type=entry;charset=utf-8
615
261
  Location:
616
- - http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)
262
+ - http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(1)
617
263
  Server:
618
- - Microsoft-IIS/7.5
264
+ - Microsoft-IIS/8.0
619
265
  Set-Cookie:
620
- - ASP.NET_SessionId=0uovbkx3sxrkavtuisgbf0c1; path=/; HttpOnly
266
+ - ASP.NET_SessionId=uhwoaszbxj2bi0gpslka4yoc; path=/; HttpOnly
621
267
  X-Content-Type-Options:
622
268
  - nosniff
623
269
  Dataserviceversion:
@@ -627,58 +273,56 @@ http_interactions:
627
273
  X-Powered-By:
628
274
  - ASP.NET
629
275
  Date:
630
- - Tue, 07 Aug 2012 21:47:40 GMT
276
+ - Sun, 26 Apr 2015 16:29:55 GMT
631
277
  body:
632
- encoding: US-ASCII
633
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
278
+ encoding: UTF-8
279
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
634
280
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
635
281
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
636
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)</id><category
282
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(1)</id><category
637
283
  term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
638
284
  /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
639
285
  type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
640
- /><title /><updated>2012-08-07T21:47:40Z</updated><author><name /></author><content
286
+ /><title /><updated>2015-04-26T16:29:55Z</updated><author><name /></author><content
641
287
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Category
642
- 0009</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
643
- m:type="Edm.DateTime">2012-08-07T21:47:40.96875Z</d:CreateDate><d:ModifiedDate
644
- m:type="Edm.DateTime">2012-08-07T21:47:40.96875Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
645
- http_version: !!null
646
- recorded_at: Tue, 07 Aug 2012 21:47:40 GMT
288
+ 0067</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
289
+ m:type="Edm.DateTime">2015-04-26T16:29:55.067407Z</d:CreateDate><d:ModifiedDate
290
+ m:type="Edm.DateTime">2015-04-26T16:29:55.067407Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
291
+ http_version:
292
+ recorded_at: Sun, 26 Apr 2015 16:29:55 GMT
647
293
  - request:
648
294
  method: post
649
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
295
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products
650
296
  body:
651
- encoding: ASCII-8BIT
652
- string: ! '{"Name":"Widget 0008","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
653
- 0010","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
297
+ encoding: UTF-8
298
+ string: '{"Name":"Widget 0067","Description":"Test Widget","Price":"10.25","Category":{"Name":"Category
299
+ 0068","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
654
300
  headers:
301
+ User-Agent:
302
+ - Ruby
655
303
  Accept:
656
- - ! '*/*; q=0.5, application/xml'
657
- Accept-Encoding:
658
- - gzip, deflate
304
+ - "*/*; q=0.5, application/xml"
659
305
  Content-Type:
660
306
  - application/json
661
- Content-Length:
662
- - '182'
663
- User-Agent:
664
- - Ruby
307
+ Accept-Encoding:
308
+ - gzip,deflate
665
309
  response:
666
310
  status:
667
311
  code: 201
668
- message: Created
312
+ message: ''
669
313
  headers:
670
314
  Cache-Control:
671
- - no-cache
315
+ - private
672
316
  Content-Length:
673
- - '1436'
317
+ - '1444'
674
318
  Content-Type:
675
319
  - application/atom+xml;type=entry;charset=utf-8
676
320
  Location:
677
- - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
321
+ - http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)
678
322
  Server:
679
- - Microsoft-IIS/7.5
323
+ - Microsoft-IIS/8.0
680
324
  Set-Cookie:
681
- - ASP.NET_SessionId=yw32ywvkfe3ukwyjxikpmscf; path=/; HttpOnly
325
+ - ASP.NET_SessionId=0lysk2yvxosjqeoyuhecdwf1; path=/; HttpOnly
682
326
  X-Content-Type-Options:
683
327
  - nosniff
684
328
  Dataserviceversion:
@@ -688,98 +332,79 @@ http_interactions:
688
332
  X-Powered-By:
689
333
  - ASP.NET
690
334
  Date:
691
- - Tue, 07 Aug 2012 21:47:40 GMT
335
+ - Sun, 26 Apr 2015 16:29:55 GMT
692
336
  body:
693
- encoding: US-ASCII
694
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
337
+ encoding: UTF-8
338
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
695
339
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
696
340
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
697
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
341
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
698
342
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
699
343
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
700
344
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
701
- /><title /><updated>2012-08-07T21:47:41Z</updated><author><name /></author><content
345
+ /><title /><updated>2015-04-26T16:29:55Z</updated><author><name /></author><content
702
346
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
703
- 0008</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
347
+ 0067</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
704
348
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
705
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:47:41.28125Z</d:CreateDate><d:ModifiedDate
706
- m:type="Edm.DateTime">2012-08-07T21:47:41.28125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
707
- http_version: !!null
708
- recorded_at: Tue, 07 Aug 2012 21:47:41 GMT
349
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:55.364282Z</d:CreateDate><d:ModifiedDate
350
+ m:type="Edm.DateTime">2015-04-26T16:29:55.364282Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
351
+ http_version:
352
+ recorded_at: Sun, 26 Apr 2015 16:29:55 GMT
709
353
  - request:
710
354
  method: post
711
- uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
355
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/$batch
712
356
  body:
713
- encoding: ASCII-8BIT
714
- string: ! '--batch_6qrp-zu6k-mzr2
715
-
716
- Content-Type: multipart/mixed;boundary=changeset_1fh8-th8f-yzvy
717
-
718
-
719
- --changeset_1fh8-th8f-yzvy
357
+ encoding: UTF-8
358
+ string: |-
359
+ --batch_k59w-7jas-4vol
360
+ Content-Type: multipart/mixed;boundary=changeset_onxb-hi2h-te21
720
361
 
362
+ --changeset_onxb-hi2h-te21
721
363
  Content-Type: application/http
722
-
723
364
  Content-Transfer-Encoding: binary
724
365
 
725
-
726
- POST http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)/$links/Products
727
- HTTP/1.1
728
-
366
+ POST http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(1)/$links/Products HTTP/1.1
729
367
  Accept-Charset: utf-8
730
-
731
368
  Content-Type: application/json;charset=utf-8
732
369
 
733
-
734
- {"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"}
735
-
736
- --changeset_1fh8-th8f-yzvy
737
-
370
+ {"uri":"http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)"}
371
+ --changeset_onxb-hi2h-te21
738
372
  Content-Type: application/http
739
-
740
373
  Content-Transfer-Encoding: binary
741
374
 
742
-
743
- POST http://win7dev:8989/SampleService/RubyOData.svc/Categories HTTP/1.1
744
-
375
+ POST http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories HTTP/1.1
745
376
  Accept-Charset: utf-8
746
-
747
377
  Content-Type: application/json;charset=utf-8
748
378
 
749
-
750
379
  {"Name":"Test Category","AuditFields":{"CreatedBy":"Machinist"}}
751
380
 
752
381
 
753
-
754
- --changeset_1fh8-th8f-yzvy--
755
-
756
- --batch_6qrp-zu6k-mzr2--'
382
+ --changeset_onxb-hi2h-te21--
383
+ --batch_k59w-7jas-4vol--
757
384
  headers:
758
- Accept:
759
- - ! '*/*; q=0.5, application/xml'
760
- Accept-Encoding:
761
- - gzip, deflate
762
- Content-Type:
763
- - multipart/mixed; boundary=batch_6qrp-zu6k-mzr2
764
- Content-Length:
765
- - '765'
766
385
  User-Agent:
767
386
  - Ruby
387
+ Accept:
388
+ - "*/*; q=0.5, application/xml"
389
+ Content-Type:
390
+ - multipart/mixed; boundary=batch_k59w-7jas-4vol
391
+ Accept-Encoding:
392
+ - gzip,deflate
768
393
  response:
769
394
  status:
770
395
  code: 202
771
- message: Accepted
396
+ message: ''
772
397
  headers:
773
398
  Cache-Control:
774
- - no-cache
399
+ - private
775
400
  Content-Length:
776
- - '2130'
401
+ - '2141'
777
402
  Content-Type:
778
- - multipart/mixed; boundary=batchresponse_ca25df75-9c20-4a90-b1bd-c870f3d0d669
403
+ - multipart/mixed; boundary=batchresponse_5ce7eb6b-b3c2-4d93-91cd-f2b99b21aad7
779
404
  Server:
780
- - Microsoft-IIS/7.5
405
+ - Microsoft-IIS/8.0
781
406
  Set-Cookie:
782
- - ASP.NET_SessionId=4m1xgvdciiub2x4rxigvov2d; path=/; HttpOnly
407
+ - ASP.NET_SessionId=1o3pwq3vsnovoygwx4m0rpk1; path=/; HttpOnly
783
408
  X-Content-Type-Options:
784
409
  - nosniff
785
410
  Dataserviceversion:
@@ -789,59 +414,59 @@ http_interactions:
789
414
  X-Powered-By:
790
415
  - ASP.NET
791
416
  Date:
792
- - Tue, 07 Aug 2012 21:47:40 GMT
417
+ - Sun, 26 Apr 2015 16:29:55 GMT
793
418
  body:
794
- encoding: US-ASCII
795
- string: ! "--batchresponse_ca25df75-9c20-4a90-b1bd-c870f3d0d669\r\nContent-Type:
796
- multipart/mixed; boundary=changesetresponse_69c1cfcb-1e73-4a03-b3ed-06a64170400b\r\n\r\n--changesetresponse_69c1cfcb-1e73-4a03-b3ed-06a64170400b\r\nContent-Type:
419
+ encoding: UTF-8
420
+ string: "--batchresponse_5ce7eb6b-b3c2-4d93-91cd-f2b99b21aad7\r\nContent-Type:
421
+ multipart/mixed; boundary=changesetresponse_7585b07f-f74c-48c4-b50c-9a078bd68714\r\n\r\n--changesetresponse_7585b07f-f74c-48c4-b50c-9a078bd68714\r\nContent-Type:
797
422
  application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
798
423
  No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
799
- 1.0;\r\n\r\n\r\n--changesetresponse_69c1cfcb-1e73-4a03-b3ed-06a64170400b\r\nContent-Type:
424
+ 1.0;\r\n\r\n\r\n--changesetresponse_7585b07f-f74c-48c4-b50c-9a078bd68714\r\nContent-Type:
800
425
  application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
801
426
  Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
802
- nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Categories(3)\r\n\r\n<?xml
803
- version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
427
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(3)\r\n\r\n<?xml
428
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://10.10.0.17:8989/SampleService/RubyOData.svc/\"
804
429
  xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
805
430
  xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
806
- xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(3)</id><category
431
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(3)</id><category
807
432
  term=\"RubyODataService.Category\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
808
433
  /><link rel=\"edit\" title=\"Category\" href=\"Categories(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products\"
809
434
  type=\"application/atom+xml;type=feed\" title=\"Products\" href=\"Categories(3)/Products\"
810
- /><title /><updated>2012-08-07T21:47:41Z</updated><author><name /></author><content
435
+ /><title /><updated>2015-04-26T16:29:55Z</updated><author><name /></author><content
811
436
  type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Test
812
437
  Category</d:Name><d:AuditFields m:type=\"RubyODataService.AuditFields\"><d:CreateDate
813
- m:type=\"Edm.DateTime\">2012-08-07T21:47:41.59375Z</d:CreateDate><d:ModifiedDate
814
- m:type=\"Edm.DateTime\">2012-08-07T21:47:41.59375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_69c1cfcb-1e73-4a03-b3ed-06a64170400b--\r\n--batchresponse_ca25df75-9c20-4a90-b1bd-c870f3d0d669--\r\n"
815
- http_version: !!null
816
- recorded_at: Tue, 07 Aug 2012 21:47:41 GMT
438
+ m:type=\"Edm.DateTime\">2015-04-26T16:29:55.676782Z</d:CreateDate><d:ModifiedDate
439
+ m:type=\"Edm.DateTime\">2015-04-26T16:29:55.676782Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_7585b07f-f74c-48c4-b50c-9a078bd68714--\r\n--batchresponse_5ce7eb6b-b3c2-4d93-91cd-f2b99b21aad7--\r\n"
440
+ http_version:
441
+ recorded_at: Sun, 26 Apr 2015 16:29:55 GMT
817
442
  - request:
818
443
  method: get
819
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)?$expand=Products
444
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(1)?$expand=Products
820
445
  body:
821
446
  encoding: US-ASCII
822
447
  string: ''
823
448
  headers:
824
- Accept:
825
- - ! '*/*; q=0.5, application/xml'
826
- Accept-Encoding:
827
- - gzip, deflate
828
449
  User-Agent:
829
450
  - Ruby
451
+ Accept:
452
+ - "*/*; q=0.5, application/xml"
453
+ Accept-Encoding:
454
+ - gzip,deflate
830
455
  response:
831
456
  status:
832
457
  code: 200
833
- message: OK
458
+ message: ''
834
459
  headers:
835
460
  Cache-Control:
836
- - no-cache
461
+ - private
837
462
  Content-Length:
838
- - '2577'
463
+ - '2591'
839
464
  Content-Type:
840
465
  - application/atom+xml;type=entry;charset=utf-8
841
466
  Server:
842
- - Microsoft-IIS/7.5
467
+ - Microsoft-IIS/8.0
843
468
  Set-Cookie:
844
- - ASP.NET_SessionId=0j3rpxa2nynbhdpwa1eyr40d; path=/; HttpOnly
469
+ - ASP.NET_SessionId=zjt1umq5tygvt0busdtktanj; path=/; HttpOnly
845
470
  X-Content-Type-Options:
846
471
  - nosniff
847
472
  Dataserviceversion:
@@ -851,62 +476,62 @@ http_interactions:
851
476
  X-Powered-By:
852
477
  - ASP.NET
853
478
  Date:
854
- - Tue, 07 Aug 2012 21:47:40 GMT
479
+ - Sun, 26 Apr 2015 16:29:55 GMT
855
480
  body:
856
- encoding: US-ASCII
857
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
481
+ encoding: UTF-8
482
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
858
483
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
859
484
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
860
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)</id><category
485
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(1)</id><category
861
486
  term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
862
487
  /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
863
- type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"><m:inline><feed><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)/Products</id><title
864
- type="text">Products</title><updated>2012-08-07T21:47:41Z</updated><link rel="self"
865
- title="Products" href="Categories(1)/Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
488
+ type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"><m:inline><feed><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Categories(1)/Products</id><title
489
+ type="text">Products</title><updated>2015-04-26T16:29:55Z</updated><link rel="self"
490
+ title="Products" href="Categories(1)/Products" /><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
866
491
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
867
492
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
868
493
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
869
- /><title /><updated>2012-08-07T21:47:41Z</updated><author><name /></author><content
494
+ /><title /><updated>2015-04-26T16:29:55Z</updated><author><name /></author><content
870
495
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
871
- 0008</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
496
+ 0067</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
872
497
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
873
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:47:41.28</d:CreateDate><d:ModifiedDate
874
- m:type="Edm.DateTime">2012-08-07T21:47:41.28</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed></m:inline></link><title
875
- /><updated>2012-08-07T21:47:41Z</updated><author><name /></author><content
498
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:55.363</d:CreateDate><d:ModifiedDate
499
+ m:type="Edm.DateTime">2015-04-26T16:29:55.363</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed></m:inline></link><title
500
+ /><updated>2015-04-26T16:29:55Z</updated><author><name /></author><content
876
501
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Category
877
- 0009</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
878
- m:type="Edm.DateTime">2012-08-07T21:47:40.967</d:CreateDate><d:ModifiedDate
879
- m:type="Edm.DateTime">2012-08-07T21:47:40.967</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
880
- http_version: !!null
881
- recorded_at: Tue, 07 Aug 2012 21:47:41 GMT
502
+ 0067</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
503
+ m:type="Edm.DateTime">2015-04-26T16:29:55.067</d:CreateDate><d:ModifiedDate
504
+ m:type="Edm.DateTime">2015-04-26T16:29:55.067</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
505
+ http_version:
506
+ recorded_at: Sun, 26 Apr 2015 16:29:55 GMT
882
507
  - request:
883
508
  method: get
884
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
509
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)
885
510
  body:
886
511
  encoding: US-ASCII
887
512
  string: ''
888
513
  headers:
889
- Accept:
890
- - ! '*/*; q=0.5, application/xml'
891
- Accept-Encoding:
892
- - gzip, deflate
893
514
  User-Agent:
894
515
  - Ruby
516
+ Accept:
517
+ - "*/*; q=0.5, application/xml"
518
+ Accept-Encoding:
519
+ - gzip,deflate
895
520
  response:
896
521
  status:
897
522
  code: 200
898
- message: OK
523
+ message: ''
899
524
  headers:
900
525
  Cache-Control:
901
- - no-cache
526
+ - private
902
527
  Content-Length:
903
- - '1428'
528
+ - '1436'
904
529
  Content-Type:
905
530
  - application/atom+xml;type=entry;charset=utf-8
906
531
  Server:
907
- - Microsoft-IIS/7.5
532
+ - Microsoft-IIS/8.0
908
533
  Set-Cookie:
909
- - ASP.NET_SessionId=y4vuijxvy4wycr3rqvcrc3ig; path=/; HttpOnly
534
+ - ASP.NET_SessionId=xho03dacon02ewndbxjuq5bp; path=/; HttpOnly
910
535
  X-Content-Type-Options:
911
536
  - nosniff
912
537
  Dataserviceversion:
@@ -916,22 +541,22 @@ http_interactions:
916
541
  X-Powered-By:
917
542
  - ASP.NET
918
543
  Date:
919
- - Tue, 07 Aug 2012 21:47:40 GMT
544
+ - Sun, 26 Apr 2015 16:29:55 GMT
920
545
  body:
921
- encoding: US-ASCII
922
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
546
+ encoding: UTF-8
547
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
923
548
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
924
549
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
925
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
550
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
926
551
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
927
552
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
928
553
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
929
- /><title /><updated>2012-08-07T21:47:41Z</updated><author><name /></author><content
554
+ /><title /><updated>2015-04-26T16:29:55Z</updated><author><name /></author><content
930
555
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
931
- 0008</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
556
+ 0067</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
932
557
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
933
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:47:41.28</d:CreateDate><d:ModifiedDate
934
- m:type="Edm.DateTime">2012-08-07T21:47:41.28</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
935
- http_version: !!null
936
- recorded_at: Tue, 07 Aug 2012 21:47:41 GMT
937
- recorded_with: VCR 2.2.4
558
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:55.363</d:CreateDate><d:ModifiedDate
559
+ m:type="Edm.DateTime">2015-04-26T16:29:55.363</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
560
+ http_version:
561
+ recorded_at: Sun, 26 Apr 2015 16:29:55 GMT
562
+ recorded_with: VCR 2.5.0