ruby_odata 0.1.0 → 0.1.1

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 (62) hide show
  1. data/.gitignore +3 -2
  2. data/.travis.yml +2 -1
  3. data/.yardopts +6 -0
  4. data/CHANGELOG.md +102 -0
  5. data/Guardfile +14 -0
  6. data/README.md +285 -0
  7. data/Rakefile +0 -7
  8. data/features/basic_auth.feature +3 -2
  9. data/features/batch_request.feature +7 -6
  10. data/features/cassettes/basic_auth_protected_resource.yml +57 -0
  11. data/features/cassettes/batch_request_additions.yml +69 -0
  12. data/features/cassettes/batch_request_deletes.yml +69 -0
  13. data/features/cassettes/batch_request_updates.yml +69 -0
  14. data/features/cassettes/clean_database_for_testing.yml +46 -0
  15. data/features/cassettes/cucumber_tags/basic_auth.yml +297 -0
  16. data/features/cassettes/cucumber_tags/batch_request.yml +1459 -0
  17. data/features/cassettes/cucumber_tags/complex_types.yml +326 -0
  18. data/features/cassettes/cucumber_tags/error_handling.yml +64 -0
  19. data/features/cassettes/cucumber_tags/query_builder.yml +2025 -0
  20. data/features/cassettes/cucumber_tags/service.yml +234 -0
  21. data/features/cassettes/cucumber_tags/service_manage.yml +937 -0
  22. data/features/cassettes/cucumber_tags/service_methods.yml +647 -0
  23. data/features/cassettes/cucumber_tags/ssl.yml +203 -0
  24. data/features/cassettes/cucumber_tags/type_conversion.yml +337 -0
  25. data/features/cassettes/service_manage_additions.yml +65 -0
  26. data/features/cassettes/service_manage_deletions.yml +58 -0
  27. data/features/cassettes/service_manage_deletions_2.yml +58 -0
  28. data/features/cassettes/unsecured_metadata.yml +89 -0
  29. data/features/complex_types.feature +4 -3
  30. data/features/error_handling.feature +14 -0
  31. data/features/query_builder.feature +30 -9
  32. data/features/service.feature +4 -3
  33. data/features/service_manage.feature +6 -5
  34. data/features/service_methods.feature +3 -2
  35. data/features/ssl.feature +8 -8
  36. data/features/step_definitions/service_steps.rb +38 -24
  37. data/features/support/env.rb +1 -3
  38. data/features/support/hooks.rb +3 -2
  39. data/features/support/pickle.rb +29 -18
  40. data/features/support/vcr.rb +24 -0
  41. data/features/type_conversion.feature +16 -17
  42. data/lib/ruby_odata/association.rb +7 -6
  43. data/lib/ruby_odata/class_builder.rb +6 -7
  44. data/lib/ruby_odata/exceptions.rb +4 -0
  45. data/lib/ruby_odata/helpers.rb +11 -0
  46. data/lib/ruby_odata/operation.rb +5 -6
  47. data/lib/ruby_odata/property_metadata.rb +4 -5
  48. data/lib/ruby_odata/query_builder.rb +98 -63
  49. data/lib/ruby_odata/service.rb +118 -103
  50. data/lib/ruby_odata/version.rb +3 -1
  51. data/lib/ruby_odata.rb +20 -18
  52. data/ruby_odata.gemspec +16 -12
  53. data/spec/query_builder_spec.rb +78 -14
  54. data/spec/service_spec.rb +83 -83
  55. data/spec/support/sample_service_matcher.rb +15 -0
  56. data/test/RubyODataService/RubyODataService/App_Data/.gitkeep +0 -0
  57. data/test/blueprints.rb +15 -9
  58. data/test/usage_samples/querying.rb +5 -1
  59. data/test/usage_samples/sample_data.rb +1 -3
  60. metadata +213 -39
  61. data/CHANGELOG.rdoc +0 -88
  62. data/README.rdoc +0 -259
@@ -0,0 +1,937 @@
1
+ ---
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
+ - request:
112
+ method: delete
113
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
114
+ body:
115
+ encoding: US-ASCII
116
+ string: ''
117
+ headers:
118
+ Accept:
119
+ - ! '*/*; q=0.5, application/xml'
120
+ Accept-Encoding:
121
+ - gzip, deflate
122
+ User-Agent:
123
+ - Ruby
124
+ response:
125
+ status:
126
+ code: 204
127
+ message: No Content
128
+ headers:
129
+ Cache-Control:
130
+ - no-cache
131
+ Server:
132
+ - Microsoft-IIS/7.5
133
+ Set-Cookie:
134
+ - ASP.NET_SessionId=ddkn2kt3sorlrbounoqyzv5h; path=/; HttpOnly
135
+ X-Content-Type-Options:
136
+ - nosniff
137
+ Dataserviceversion:
138
+ - 1.0;
139
+ X-Aspnet-Version:
140
+ - 4.0.30319
141
+ X-Powered-By:
142
+ - ASP.NET
143
+ Date:
144
+ - Tue, 07 Aug 2012 21:47:36 GMT
145
+ body:
146
+ encoding: US-ASCII
147
+ string: ''
148
+ http_version: !!null
149
+ recorded_at: Tue, 07 Aug 2012 21:47:37 GMT
150
+ - request:
151
+ method: get
152
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
153
+ body:
154
+ encoding: US-ASCII
155
+ string: ''
156
+ headers:
157
+ Accept:
158
+ - ! '*/*; q=0.5, application/xml'
159
+ Accept-Encoding:
160
+ - gzip, deflate
161
+ User-Agent:
162
+ - Ruby
163
+ response:
164
+ status:
165
+ code: 200
166
+ message: OK
167
+ headers:
168
+ Cache-Control:
169
+ - no-cache
170
+ Content-Length:
171
+ - '583'
172
+ Content-Type:
173
+ - application/atom+xml;type=feed;charset=utf-8
174
+ Server:
175
+ - Microsoft-IIS/7.5
176
+ Set-Cookie:
177
+ - ASP.NET_SessionId=r3lwlnsq4do5vzoe4gqqxv15; path=/; HttpOnly
178
+ X-Content-Type-Options:
179
+ - nosniff
180
+ Dataserviceversion:
181
+ - 1.0;
182
+ X-Aspnet-Version:
183
+ - 4.0.30319
184
+ X-Powered-By:
185
+ - ASP.NET
186
+ Date:
187
+ - Tue, 07 Aug 2012 21:47:36 GMT
188
+ body:
189
+ encoding: US-ASCII
190
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
191
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
192
+ 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"
195
+ title="Products" href="Products" /><author><name /></author></feed>
196
+ http_version: !!null
197
+ recorded_at: Tue, 07 Aug 2012 21:47:37 GMT
198
+ - request:
199
+ method: post
200
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
201
+ 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"}}'
205
+ 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
+ User-Agent:
215
+ - 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
+ Accept:
268
+ - ! '*/*; q=0.5, application/xml'
269
+ Accept-Encoding:
270
+ - gzip, deflate
271
+ Content-Type:
272
+ - application/json
273
+ Content-Length:
274
+ - '324'
275
+ User-Agent:
276
+ - Ruby
277
+ response:
278
+ status:
279
+ code: 204
280
+ message: No Content
281
+ headers:
282
+ Cache-Control:
283
+ - no-cache
284
+ Server:
285
+ - Microsoft-IIS/7.5
286
+ Set-Cookie:
287
+ - ASP.NET_SessionId=rfauncwxjdax30dltexzu35y; path=/; HttpOnly
288
+ X-Content-Type-Options:
289
+ - nosniff
290
+ Dataserviceversion:
291
+ - 1.0;
292
+ X-Aspnet-Version:
293
+ - 4.0.30319
294
+ X-Powered-By:
295
+ - ASP.NET
296
+ Date:
297
+ - Tue, 07 Aug 2012 21:47:37 GMT
298
+ body:
299
+ encoding: US-ASCII
300
+ 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
364
+ - request:
365
+ method: get
366
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)?$expand=Category
367
+ body:
368
+ encoding: US-ASCII
369
+ string: ''
370
+ headers:
371
+ Accept:
372
+ - ! '*/*; q=0.5, application/xml'
373
+ Accept-Encoding:
374
+ - gzip, deflate
375
+ User-Agent:
376
+ - Ruby
377
+ response:
378
+ status:
379
+ code: 200
380
+ message: OK
381
+ headers:
382
+ Cache-Control:
383
+ - no-cache
384
+ Content-Length:
385
+ - '2347'
386
+ Content-Type:
387
+ - application/atom+xml;type=entry;charset=utf-8
388
+ Server:
389
+ - Microsoft-IIS/7.5
390
+ Set-Cookie:
391
+ - ASP.NET_SessionId=nrtfaqvyaaxekhkss5abe4bk; path=/; HttpOnly
392
+ X-Content-Type-Options:
393
+ - nosniff
394
+ Dataserviceversion:
395
+ - 1.0;
396
+ X-Aspnet-Version:
397
+ - 4.0.30319
398
+ X-Powered-By:
399
+ - ASP.NET
400
+ Date:
401
+ - Tue, 07 Aug 2012 21:47:38 GMT
402
+ body:
403
+ encoding: US-ASCII
404
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
405
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
406
+ 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
408
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
409
+ /><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
411
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
412
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
413
+ 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
415
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
416
+ 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
420
+ 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
422
+ 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
427
+ - request:
428
+ method: post
429
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
430
+ 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"}}'
434
+ 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
+ User-Agent:
444
+ - 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
+ Accept:
497
+ - ! '*/*; q=0.5, application/xml'
498
+ Accept-Encoding:
499
+ - gzip, deflate
500
+ Content-Type:
501
+ - application/json
502
+ Content-Length:
503
+ - '69'
504
+ User-Agent:
505
+ - Ruby
506
+ response:
507
+ status:
508
+ code: 204
509
+ message: No Content
510
+ headers:
511
+ Cache-Control:
512
+ - no-cache
513
+ Server:
514
+ - Microsoft-IIS/7.5
515
+ Set-Cookie:
516
+ - ASP.NET_SessionId=ju12rtsznmkyyhrokn2sfwcj; path=/; HttpOnly
517
+ X-Content-Type-Options:
518
+ - nosniff
519
+ Dataserviceversion:
520
+ - 1.0;
521
+ X-Aspnet-Version:
522
+ - 4.0.30319
523
+ X-Powered-By:
524
+ - ASP.NET
525
+ Date:
526
+ - Tue, 07 Aug 2012 21:47:39 GMT
527
+ body:
528
+ encoding: US-ASCII
529
+ string: ''
530
+ http_version: !!null
531
+ recorded_at: Tue, 07 Aug 2012 21:47:40 GMT
532
+ - request:
533
+ method: get
534
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
535
+ body:
536
+ encoding: US-ASCII
537
+ string: ''
538
+ headers:
539
+ Accept:
540
+ - ! '*/*; q=0.5, application/xml'
541
+ Accept-Encoding:
542
+ - gzip, deflate
543
+ User-Agent:
544
+ - 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
+ Accept:
595
+ - ! '*/*; q=0.5, application/xml'
596
+ Accept-Encoding:
597
+ - gzip, deflate
598
+ Content-Type:
599
+ - application/json
600
+ Content-Length:
601
+ - '64'
602
+ User-Agent:
603
+ - Ruby
604
+ response:
605
+ status:
606
+ code: 201
607
+ message: Created
608
+ headers:
609
+ Cache-Control:
610
+ - no-cache
611
+ Content-Length:
612
+ - '1251'
613
+ Content-Type:
614
+ - application/atom+xml;type=entry;charset=utf-8
615
+ Location:
616
+ - http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)
617
+ Server:
618
+ - Microsoft-IIS/7.5
619
+ Set-Cookie:
620
+ - ASP.NET_SessionId=0uovbkx3sxrkavtuisgbf0c1; path=/; HttpOnly
621
+ X-Content-Type-Options:
622
+ - nosniff
623
+ Dataserviceversion:
624
+ - 1.0;
625
+ X-Aspnet-Version:
626
+ - 4.0.30319
627
+ X-Powered-By:
628
+ - ASP.NET
629
+ Date:
630
+ - Tue, 07 Aug 2012 21:47:40 GMT
631
+ body:
632
+ encoding: US-ASCII
633
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
634
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
635
+ 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
637
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
638
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
639
+ 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
641
+ 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
647
+ - request:
648
+ method: post
649
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
650
+ 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"}}'
654
+ headers:
655
+ Accept:
656
+ - ! '*/*; q=0.5, application/xml'
657
+ Accept-Encoding:
658
+ - gzip, deflate
659
+ Content-Type:
660
+ - application/json
661
+ Content-Length:
662
+ - '182'
663
+ User-Agent:
664
+ - Ruby
665
+ response:
666
+ status:
667
+ code: 201
668
+ message: Created
669
+ headers:
670
+ Cache-Control:
671
+ - no-cache
672
+ Content-Length:
673
+ - '1436'
674
+ Content-Type:
675
+ - application/atom+xml;type=entry;charset=utf-8
676
+ Location:
677
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
678
+ Server:
679
+ - Microsoft-IIS/7.5
680
+ Set-Cookie:
681
+ - ASP.NET_SessionId=yw32ywvkfe3ukwyjxikpmscf; path=/; HttpOnly
682
+ X-Content-Type-Options:
683
+ - nosniff
684
+ Dataserviceversion:
685
+ - 1.0;
686
+ X-Aspnet-Version:
687
+ - 4.0.30319
688
+ X-Powered-By:
689
+ - ASP.NET
690
+ Date:
691
+ - Tue, 07 Aug 2012 21:47:40 GMT
692
+ body:
693
+ encoding: US-ASCII
694
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
695
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
696
+ 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
698
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
699
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
700
+ 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
702
+ 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
704
+ 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
709
+ - request:
710
+ method: post
711
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
712
+ 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
720
+
721
+ Content-Type: application/http
722
+
723
+ Content-Transfer-Encoding: binary
724
+
725
+
726
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)/$links/Products
727
+ HTTP/1.1
728
+
729
+ Accept-Charset: utf-8
730
+
731
+ Content-Type: application/json;charset=utf-8
732
+
733
+
734
+ {"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"}
735
+
736
+ --changeset_1fh8-th8f-yzvy
737
+
738
+ Content-Type: application/http
739
+
740
+ Content-Transfer-Encoding: binary
741
+
742
+
743
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Categories HTTP/1.1
744
+
745
+ Accept-Charset: utf-8
746
+
747
+ Content-Type: application/json;charset=utf-8
748
+
749
+
750
+ {"Name":"Test Category","AuditFields":{"CreatedBy":"Machinist"}}
751
+
752
+
753
+
754
+ --changeset_1fh8-th8f-yzvy--
755
+
756
+ --batch_6qrp-zu6k-mzr2--'
757
+ 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
+ User-Agent:
767
+ - Ruby
768
+ response:
769
+ status:
770
+ code: 202
771
+ message: Accepted
772
+ headers:
773
+ Cache-Control:
774
+ - no-cache
775
+ Content-Length:
776
+ - '2130'
777
+ Content-Type:
778
+ - multipart/mixed; boundary=batchresponse_ca25df75-9c20-4a90-b1bd-c870f3d0d669
779
+ Server:
780
+ - Microsoft-IIS/7.5
781
+ Set-Cookie:
782
+ - ASP.NET_SessionId=4m1xgvdciiub2x4rxigvov2d; path=/; HttpOnly
783
+ X-Content-Type-Options:
784
+ - nosniff
785
+ Dataserviceversion:
786
+ - 1.0;
787
+ X-Aspnet-Version:
788
+ - 4.0.30319
789
+ X-Powered-By:
790
+ - ASP.NET
791
+ Date:
792
+ - Tue, 07 Aug 2012 21:47:40 GMT
793
+ 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:
797
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
798
+ 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:
800
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
801
+ 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/\"
804
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
805
+ 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
807
+ term=\"RubyODataService.Category\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
808
+ /><link rel=\"edit\" title=\"Category\" href=\"Categories(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products\"
809
+ 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
811
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Test
812
+ 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
817
+ - request:
818
+ method: get
819
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)?$expand=Products
820
+ body:
821
+ encoding: US-ASCII
822
+ string: ''
823
+ headers:
824
+ Accept:
825
+ - ! '*/*; q=0.5, application/xml'
826
+ Accept-Encoding:
827
+ - gzip, deflate
828
+ User-Agent:
829
+ - Ruby
830
+ response:
831
+ status:
832
+ code: 200
833
+ message: OK
834
+ headers:
835
+ Cache-Control:
836
+ - no-cache
837
+ Content-Length:
838
+ - '2577'
839
+ Content-Type:
840
+ - application/atom+xml;type=entry;charset=utf-8
841
+ Server:
842
+ - Microsoft-IIS/7.5
843
+ Set-Cookie:
844
+ - ASP.NET_SessionId=0j3rpxa2nynbhdpwa1eyr40d; path=/; HttpOnly
845
+ X-Content-Type-Options:
846
+ - nosniff
847
+ Dataserviceversion:
848
+ - 1.0;
849
+ X-Aspnet-Version:
850
+ - 4.0.30319
851
+ X-Powered-By:
852
+ - ASP.NET
853
+ Date:
854
+ - Tue, 07 Aug 2012 21:47:40 GMT
855
+ body:
856
+ encoding: US-ASCII
857
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
858
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
859
+ 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
861
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
862
+ /><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
866
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
867
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
868
+ 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
870
+ 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
872
+ 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
876
+ 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
882
+ - request:
883
+ method: get
884
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
885
+ body:
886
+ encoding: US-ASCII
887
+ string: ''
888
+ headers:
889
+ Accept:
890
+ - ! '*/*; q=0.5, application/xml'
891
+ Accept-Encoding:
892
+ - gzip, deflate
893
+ User-Agent:
894
+ - Ruby
895
+ response:
896
+ status:
897
+ code: 200
898
+ message: OK
899
+ headers:
900
+ Cache-Control:
901
+ - no-cache
902
+ Content-Length:
903
+ - '1428'
904
+ Content-Type:
905
+ - application/atom+xml;type=entry;charset=utf-8
906
+ Server:
907
+ - Microsoft-IIS/7.5
908
+ Set-Cookie:
909
+ - ASP.NET_SessionId=y4vuijxvy4wycr3rqvcrc3ig; path=/; HttpOnly
910
+ X-Content-Type-Options:
911
+ - nosniff
912
+ Dataserviceversion:
913
+ - 1.0;
914
+ X-Aspnet-Version:
915
+ - 4.0.30319
916
+ X-Powered-By:
917
+ - ASP.NET
918
+ Date:
919
+ - Tue, 07 Aug 2012 21:47:40 GMT
920
+ body:
921
+ encoding: US-ASCII
922
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
923
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
924
+ 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
926
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
927
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
928
+ 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
930
+ 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
932
+ 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