ruby_odata 0.1.0 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +7 -2
- data/.simplecov +10 -0
- data/.travis.yml +10 -4
- data/.yardopts +6 -0
- data/CHANGELOG.md +157 -0
- data/Guardfile +14 -0
- data/LICENSE +20 -22
- data/README.md +289 -0
- data/Rakefile +19 -9
- data/features/basic_auth.feature +3 -2
- data/features/batch_request.feature +7 -6
- data/features/cassettes/basic_auth_protected_resource.yml +57 -0
- data/features/cassettes/batch_request_additions.yml +69 -0
- data/features/cassettes/batch_request_deletes.yml +69 -0
- data/features/cassettes/batch_request_updates.yml +69 -0
- data/features/cassettes/clean_database_for_testing.yml +46 -0
- data/features/cassettes/cucumber_tags/basic_auth.yml +297 -0
- data/features/cassettes/cucumber_tags/batch_request.yml +1459 -0
- data/features/cassettes/cucumber_tags/complex_types.yml +326 -0
- data/features/cassettes/cucumber_tags/error_handling.yml +64 -0
- data/features/cassettes/cucumber_tags/query_builder.yml +2025 -0
- data/features/cassettes/cucumber_tags/service.yml +234 -0
- data/features/cassettes/cucumber_tags/service_manage.yml +937 -0
- data/features/cassettes/cucumber_tags/service_methods.yml +647 -0
- data/features/cassettes/cucumber_tags/ssl.yml +203 -0
- data/features/cassettes/cucumber_tags/type_conversion.yml +337 -0
- data/features/cassettes/service_manage_additions.yml +65 -0
- data/features/cassettes/service_manage_deletions.yml +58 -0
- data/features/cassettes/service_manage_deletions_2.yml +58 -0
- data/features/cassettes/unsecured_metadata.yml +89 -0
- data/features/complex_types.feature +4 -3
- data/features/error_handling.feature +13 -0
- data/features/query_builder.feature +30 -9
- data/features/service.feature +4 -3
- data/features/service_manage.feature +6 -5
- data/features/service_methods.feature +3 -2
- data/features/ssl.feature +8 -8
- data/features/step_definitions/service_steps.rb +32 -74
- data/features/support/env.rb +6 -3
- data/features/support/hooks.rb +3 -2
- data/features/support/pickle.rb +29 -18
- data/features/support/vcr.rb +24 -0
- data/features/type_conversion.feature +16 -17
- data/gemfiles/Gemfile.ruby187 +6 -0
- data/lib/ruby_odata.rb +20 -18
- data/lib/ruby_odata/association.rb +7 -6
- data/lib/ruby_odata/class_builder.rb +31 -14
- data/lib/ruby_odata/exceptions.rb +11 -0
- data/lib/ruby_odata/helpers.rb +17 -0
- data/lib/ruby_odata/operation.rb +5 -6
- data/lib/ruby_odata/property_metadata.rb +9 -7
- data/lib/ruby_odata/query_builder.rb +127 -63
- data/lib/ruby_odata/service.rb +265 -147
- data/lib/ruby_odata/version.rb +3 -1
- data/ruby_odata.gemspec +22 -13
- data/spec/fixtures/error_without_message.xml +5 -0
- data/spec/fixtures/int64_ids/edmx_boat_service.xml +19 -0
- data/spec/fixtures/int64_ids/edmx_car_service.xml +21 -0
- data/spec/fixtures/int64_ids/result_boats.xml +26 -0
- data/spec/fixtures/int64_ids/result_cars.xml +28 -0
- data/spec/fixtures/ms_system_center/edmx_ms_system_center.xml +1645 -0
- data/spec/fixtures/ms_system_center/edmx_ms_system_center_v2.xml +2120 -0
- data/spec/fixtures/ms_system_center/hardware_profiles.xml +61 -0
- data/spec/fixtures/ms_system_center/virtual_machines.xml +175 -0
- data/spec/fixtures/ms_system_center/vm_templates.xml +1193 -0
- data/spec/fixtures/nested_expands/edmx_northwind.xml +557 -0
- data/spec/fixtures/nested_expands/northwind_products_category_expands.xml +774 -0
- data/spec/fixtures/sample_service/result_select_categories_expand.xml +268 -0
- data/spec/fixtures/sample_service/result_select_categories_no_property.xml +6 -0
- data/spec/fixtures/sample_service/result_select_categories_travsing_no_expand.xml +6 -0
- data/spec/fixtures/sample_service/result_select_products_name_price.xml +92 -0
- data/spec/property_metadata_spec.rb +10 -10
- data/spec/query_builder_spec.rb +153 -14
- data/spec/revised_service_spec.rb +111 -6
- data/spec/service_spec.rb +389 -85
- data/spec/spec_helper.rb +3 -0
- data/spec/support/sample_service_matcher.rb +15 -0
- data/test/RubyODataService/RubyODataService/App_Data/.gitkeep +0 -0
- data/test/blueprints.rb +15 -9
- data/test/usage_samples/querying.rb +5 -1
- data/test/usage_samples/sample_data.rb +1 -3
- metadata +276 -76
- data/CHANGELOG.rdoc +0 -88
- data/README.rdoc +0 -259
@@ -0,0 +1,1459 @@
|
|
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_wrza-bjm5-truu
|
9
|
+
|
10
|
+
Content-Type: multipart/mixed;boundary=changeset_oe8a-51ec-8853
|
11
|
+
|
12
|
+
|
13
|
+
--changeset_oe8a-51ec-8853
|
14
|
+
|
15
|
+
Content-Type: application/http
|
16
|
+
|
17
|
+
Content-Transfer-Encoding: binary
|
18
|
+
|
19
|
+
|
20
|
+
DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
|
21
|
+
|
22
|
+
Accept-Charset: utf-8
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
--changeset_oe8a-51ec-8853
|
27
|
+
|
28
|
+
Content-Type: application/http
|
29
|
+
|
30
|
+
Content-Transfer-Encoding: binary
|
31
|
+
|
32
|
+
|
33
|
+
DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(3) HTTP/1.1
|
34
|
+
|
35
|
+
Accept-Charset: utf-8
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
--changeset_oe8a-51ec-8853--
|
42
|
+
|
43
|
+
--batch_wrza-bjm5-truu--'
|
44
|
+
headers:
|
45
|
+
Accept:
|
46
|
+
- ! '*/*; q=0.5, application/xml'
|
47
|
+
Accept-Encoding:
|
48
|
+
- gzip, deflate
|
49
|
+
Content-Type:
|
50
|
+
- multipart/mixed; boundary=batch_wrza-bjm5-truu
|
51
|
+
Content-Length:
|
52
|
+
- '529'
|
53
|
+
User-Agent:
|
54
|
+
- Ruby
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 202
|
58
|
+
message: Accepted
|
59
|
+
headers:
|
60
|
+
Cache-Control:
|
61
|
+
- no-cache
|
62
|
+
Content-Length:
|
63
|
+
- '748'
|
64
|
+
Content-Type:
|
65
|
+
- multipart/mixed; boundary=batchresponse_e0aea672-4b22-4da9-a589-1d64bf392d6a
|
66
|
+
Server:
|
67
|
+
- Microsoft-IIS/7.5
|
68
|
+
Set-Cookie:
|
69
|
+
- ASP.NET_SessionId=csvfe1gmgawhmrnockgo2iai; path=/; HttpOnly
|
70
|
+
X-Content-Type-Options:
|
71
|
+
- nosniff
|
72
|
+
Dataserviceversion:
|
73
|
+
- 1.0;
|
74
|
+
X-Aspnet-Version:
|
75
|
+
- 4.0.30319
|
76
|
+
X-Powered-By:
|
77
|
+
- ASP.NET
|
78
|
+
Date:
|
79
|
+
- Tue, 07 Aug 2012 21:41:54 GMT
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! "--batchresponse_e0aea672-4b22-4da9-a589-1d64bf392d6a\r\nContent-Type:
|
83
|
+
multipart/mixed; boundary=changesetresponse_5c9a708a-ddc5-480a-a8bd-48c3ab8da54c\r\n\r\n--changesetresponse_5c9a708a-ddc5-480a-a8bd-48c3ab8da54c\r\nContent-Type:
|
84
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
85
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
86
|
+
1.0;\r\n\r\n\r\n--changesetresponse_5c9a708a-ddc5-480a-a8bd-48c3ab8da54c\r\nContent-Type:
|
87
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
88
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
89
|
+
1.0;\r\n\r\n\r\n--changesetresponse_5c9a708a-ddc5-480a-a8bd-48c3ab8da54c--\r\n--batchresponse_e0aea672-4b22-4da9-a589-1d64bf392d6a--\r\n"
|
90
|
+
http_version: !!null
|
91
|
+
recorded_at: Tue, 07 Aug 2012 21:41:54 GMT
|
92
|
+
- request:
|
93
|
+
method: post
|
94
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
|
95
|
+
body:
|
96
|
+
encoding: ASCII-8BIT
|
97
|
+
string: ! '{"Name":"Product 2","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
|
98
|
+
0010","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
|
99
|
+
headers:
|
100
|
+
Accept:
|
101
|
+
- ! '*/*; q=0.5, application/xml'
|
102
|
+
Accept-Encoding:
|
103
|
+
- gzip, deflate
|
104
|
+
Content-Type:
|
105
|
+
- application/json
|
106
|
+
Content-Length:
|
107
|
+
- '180'
|
108
|
+
User-Agent:
|
109
|
+
- Ruby
|
110
|
+
response:
|
111
|
+
status:
|
112
|
+
code: 201
|
113
|
+
message: Created
|
114
|
+
headers:
|
115
|
+
Cache-Control:
|
116
|
+
- no-cache
|
117
|
+
Content-Length:
|
118
|
+
- '1436'
|
119
|
+
Content-Type:
|
120
|
+
- application/atom+xml;type=entry;charset=utf-8
|
121
|
+
Location:
|
122
|
+
- http://win7dev:8989/SampleService/RubyOData.svc/Products(2)
|
123
|
+
Server:
|
124
|
+
- Microsoft-IIS/7.5
|
125
|
+
Set-Cookie:
|
126
|
+
- ASP.NET_SessionId=iufirzwsimdkjtcuez2ipifn; path=/; HttpOnly
|
127
|
+
X-Content-Type-Options:
|
128
|
+
- nosniff
|
129
|
+
Dataserviceversion:
|
130
|
+
- 1.0;
|
131
|
+
X-Aspnet-Version:
|
132
|
+
- 4.0.30319
|
133
|
+
X-Powered-By:
|
134
|
+
- ASP.NET
|
135
|
+
Date:
|
136
|
+
- Tue, 07 Aug 2012 21:41:54 GMT
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
|
140
|
+
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
141
|
+
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
142
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
|
143
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
144
|
+
/><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
145
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
|
146
|
+
/><title /><updated>2012-08-07T21:41:54Z</updated><author><name /></author><content
|
147
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
|
148
|
+
2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
|
149
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
|
150
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:41:54.953125Z</d:CreateDate><d:ModifiedDate
|
151
|
+
m:type="Edm.DateTime">2012-08-07T21:41:54.953125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
|
152
|
+
http_version: !!null
|
153
|
+
recorded_at: Tue, 07 Aug 2012 21:41:54 GMT
|
154
|
+
- request:
|
155
|
+
method: post
|
156
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
|
157
|
+
body:
|
158
|
+
encoding: ASCII-8BIT
|
159
|
+
string: ! '--batch_3okz-2mtj-qkjy
|
160
|
+
|
161
|
+
Content-Type: multipart/mixed;boundary=changeset_ffs2-0y82-ap0e
|
162
|
+
|
163
|
+
|
164
|
+
--changeset_ffs2-0y82-ap0e
|
165
|
+
|
166
|
+
Content-Type: application/http
|
167
|
+
|
168
|
+
Content-Transfer-Encoding: binary
|
169
|
+
|
170
|
+
|
171
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
172
|
+
|
173
|
+
Accept-Charset: utf-8
|
174
|
+
|
175
|
+
Content-Type: application/json;charset=utf-8
|
176
|
+
|
177
|
+
|
178
|
+
{"Name":"Product 3","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
|
179
|
+
0011","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
180
|
+
|
181
|
+
--changeset_ffs2-0y82-ap0e
|
182
|
+
|
183
|
+
Content-Type: application/http
|
184
|
+
|
185
|
+
Content-Transfer-Encoding: binary
|
186
|
+
|
187
|
+
|
188
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
189
|
+
|
190
|
+
Accept-Charset: utf-8
|
191
|
+
|
192
|
+
Content-Type: application/json;charset=utf-8
|
193
|
+
|
194
|
+
|
195
|
+
{"Name":"Product 4","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
|
196
|
+
0012","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
197
|
+
|
198
|
+
--changeset_ffs2-0y82-ap0e
|
199
|
+
|
200
|
+
Content-Type: application/http
|
201
|
+
|
202
|
+
Content-Transfer-Encoding: binary
|
203
|
+
|
204
|
+
|
205
|
+
PUT http://win7dev:8989/SampleService/RubyOData.svc/Products(1) HTTP/1.1
|
206
|
+
|
207
|
+
Accept-Charset: utf-8
|
208
|
+
|
209
|
+
Content-Type: application/json;charset=utf-8
|
210
|
+
|
211
|
+
|
212
|
+
{"Name":"Product 1 - Updated","Description":"Test Widget","Price":"75.5","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:41:54.657","ModifiedDate":"2012-08-07T21:41:54.657"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}
|
213
|
+
|
214
|
+
--changeset_ffs2-0y82-ap0e
|
215
|
+
|
216
|
+
Content-Type: application/http
|
217
|
+
|
218
|
+
Content-Transfer-Encoding: binary
|
219
|
+
|
220
|
+
|
221
|
+
DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
|
222
|
+
|
223
|
+
Accept-Charset: utf-8
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
--changeset_ffs2-0y82-ap0e--
|
230
|
+
|
231
|
+
--batch_3okz-2mtj-qkjy--'
|
232
|
+
headers:
|
233
|
+
Accept:
|
234
|
+
- ! '*/*; q=0.5, application/xml'
|
235
|
+
Accept-Encoding:
|
236
|
+
- gzip, deflate
|
237
|
+
Content-Type:
|
238
|
+
- multipart/mixed; boundary=batch_3okz-2mtj-qkjy
|
239
|
+
Content-Length:
|
240
|
+
- '1719'
|
241
|
+
User-Agent:
|
242
|
+
- Ruby
|
243
|
+
response:
|
244
|
+
status:
|
245
|
+
code: 202
|
246
|
+
message: Accepted
|
247
|
+
headers:
|
248
|
+
Cache-Control:
|
249
|
+
- no-cache
|
250
|
+
Content-Length:
|
251
|
+
- '4350'
|
252
|
+
Content-Type:
|
253
|
+
- multipart/mixed; boundary=batchresponse_50333c91-0a4f-42c5-9890-fb1a7d529723
|
254
|
+
Server:
|
255
|
+
- Microsoft-IIS/7.5
|
256
|
+
Set-Cookie:
|
257
|
+
- ASP.NET_SessionId=uixf0em1pxmgxzyw0j3qmb4e; path=/; HttpOnly
|
258
|
+
X-Content-Type-Options:
|
259
|
+
- nosniff
|
260
|
+
Dataserviceversion:
|
261
|
+
- 1.0;
|
262
|
+
X-Aspnet-Version:
|
263
|
+
- 4.0.30319
|
264
|
+
X-Powered-By:
|
265
|
+
- ASP.NET
|
266
|
+
Date:
|
267
|
+
- Tue, 07 Aug 2012 21:41:54 GMT
|
268
|
+
body:
|
269
|
+
encoding: US-ASCII
|
270
|
+
string: ! "--batchresponse_50333c91-0a4f-42c5-9890-fb1a7d529723\r\nContent-Type:
|
271
|
+
multipart/mixed; boundary=changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\n\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\nContent-Type:
|
272
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
273
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
274
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(3)\r\n\r\n<?xml
|
275
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
276
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
277
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
278
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
|
279
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
280
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
281
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(3)/Category\"
|
282
|
+
/><title /><updated>2012-08-07T21:41:55Z</updated><author><name /></author><content
|
283
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Product
|
284
|
+
3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">25.00</d:Price><d:DiscontinuedDate
|
285
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">3</d:CategoryId><d:AuditFields
|
286
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:41:55.0625Z</d:CreateDate><d:ModifiedDate
|
287
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:41:55.0625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\nContent-Type:
|
288
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
289
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
290
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(4)\r\n\r\n<?xml
|
291
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
292
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
293
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
294
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
|
295
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
296
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(4)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
297
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(4)/Category\"
|
298
|
+
/><title /><updated>2012-08-07T21:41:55Z</updated><author><name /></author><content
|
299
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">4</d:Id><d:Name>Product
|
300
|
+
4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">50.00</d:Price><d:DiscontinuedDate
|
301
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">4</d:CategoryId><d:AuditFields
|
302
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:41:55.0625Z</d:CreateDate><d:ModifiedDate
|
303
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:41:55.0625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\nContent-Type:
|
304
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
305
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
306
|
+
1.0;\r\n\r\n\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\nContent-Type:
|
307
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
308
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
309
|
+
1.0;\r\n\r\n\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5--\r\n--batchresponse_50333c91-0a4f-42c5-9890-fb1a7d529723--\r\n"
|
310
|
+
http_version: !!null
|
311
|
+
recorded_at: Tue, 07 Aug 2012 21:41:54 GMT
|
312
|
+
- request:
|
313
|
+
method: post
|
314
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
|
315
|
+
body:
|
316
|
+
encoding: ASCII-8BIT
|
317
|
+
string: ! '--batch_48oh-g969-yxqy
|
318
|
+
|
319
|
+
Content-Type: multipart/mixed;boundary=changeset_kjgs-xssh-rjpp
|
320
|
+
|
321
|
+
|
322
|
+
--changeset_kjgs-xssh-rjpp
|
323
|
+
|
324
|
+
Content-Type: application/http
|
325
|
+
|
326
|
+
Content-Transfer-Encoding: binary
|
327
|
+
|
328
|
+
|
329
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
330
|
+
|
331
|
+
Accept-Charset: utf-8
|
332
|
+
|
333
|
+
Content-Type: application/json;charset=utf-8
|
334
|
+
|
335
|
+
|
336
|
+
{"Name":"Product 1","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
|
337
|
+
0001","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
338
|
+
|
339
|
+
--changeset_kjgs-xssh-rjpp
|
340
|
+
|
341
|
+
Content-Type: application/http
|
342
|
+
|
343
|
+
Content-Transfer-Encoding: binary
|
344
|
+
|
345
|
+
|
346
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
347
|
+
|
348
|
+
Accept-Charset: utf-8
|
349
|
+
|
350
|
+
Content-Type: application/json;charset=utf-8
|
351
|
+
|
352
|
+
|
353
|
+
{"Name":"Product 2","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
|
354
|
+
0002","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
--changeset_kjgs-xssh-rjpp--
|
359
|
+
|
360
|
+
--batch_48oh-g969-yxqy--'
|
361
|
+
headers:
|
362
|
+
Accept:
|
363
|
+
- ! '*/*; q=0.5, application/xml'
|
364
|
+
Accept-Encoding:
|
365
|
+
- gzip, deflate
|
366
|
+
Content-Type:
|
367
|
+
- multipart/mixed; boundary=batch_48oh-g969-yxqy
|
368
|
+
Content-Length:
|
369
|
+
- '969'
|
370
|
+
User-Agent:
|
371
|
+
- Ruby
|
372
|
+
response:
|
373
|
+
status:
|
374
|
+
code: 202
|
375
|
+
message: Accepted
|
376
|
+
headers:
|
377
|
+
Cache-Control:
|
378
|
+
- no-cache
|
379
|
+
Content-Length:
|
380
|
+
- '3878'
|
381
|
+
Content-Type:
|
382
|
+
- multipart/mixed; boundary=batchresponse_127734df-0d45-48a2-bb5d-aef7a738c28e
|
383
|
+
Server:
|
384
|
+
- Microsoft-IIS/7.5
|
385
|
+
Set-Cookie:
|
386
|
+
- ASP.NET_SessionId=sxgxpcqlok2m1xbq2wb1mfe2; path=/; HttpOnly
|
387
|
+
X-Content-Type-Options:
|
388
|
+
- nosniff
|
389
|
+
Dataserviceversion:
|
390
|
+
- 1.0;
|
391
|
+
X-Aspnet-Version:
|
392
|
+
- 4.0.30319
|
393
|
+
X-Powered-By:
|
394
|
+
- ASP.NET
|
395
|
+
Date:
|
396
|
+
- Tue, 07 Aug 2012 21:43:14 GMT
|
397
|
+
body:
|
398
|
+
encoding: US-ASCII
|
399
|
+
string: ! "--batchresponse_127734df-0d45-48a2-bb5d-aef7a738c28e\r\nContent-Type:
|
400
|
+
multipart/mixed; boundary=changesetresponse_217833d8-def6-4659-bd89-9606566ee605\r\n\r\n--changesetresponse_217833d8-def6-4659-bd89-9606566ee605\r\nContent-Type:
|
401
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
402
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
403
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)\r\n\r\n<?xml
|
404
|
+
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\"
|
407
|
+
xmlns:georss=\"http://www.georss.org/georss\" 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\"
|
411
|
+
/><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
|
412
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">1</d:Id><d:Name>Product
|
413
|
+
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">50.00</d:Price><d:DiscontinuedDate
|
414
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">1</d:CategoryId><d:AuditFields
|
415
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:14.984375Z</d:CreateDate><d:ModifiedDate
|
416
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:14.984375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_217833d8-def6-4659-bd89-9606566ee605\r\nContent-Type:
|
417
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
418
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
419
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(2)\r\n\r\n<?xml
|
420
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
421
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
422
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
423
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
|
424
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
425
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(2)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
426
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(2)/Category\"
|
427
|
+
/><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
|
428
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">2</d:Id><d:Name>Product
|
429
|
+
2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">25.00</d:Price><d:DiscontinuedDate
|
430
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">2</d:CategoryId><d:AuditFields
|
431
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:14.984375Z</d:CreateDate><d:ModifiedDate
|
432
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:14.984375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_217833d8-def6-4659-bd89-9606566ee605--\r\n--batchresponse_127734df-0d45-48a2-bb5d-aef7a738c28e--\r\n"
|
433
|
+
http_version: !!null
|
434
|
+
recorded_at: Tue, 07 Aug 2012 21:43:14 GMT
|
435
|
+
- request:
|
436
|
+
method: post
|
437
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
|
438
|
+
body:
|
439
|
+
encoding: ASCII-8BIT
|
440
|
+
string: ! '--batch_8vhp-dtx1-hjrw
|
441
|
+
|
442
|
+
Content-Type: multipart/mixed;boundary=changeset_yvjs-14q8-nb5k
|
443
|
+
|
444
|
+
|
445
|
+
--changeset_yvjs-14q8-nb5k
|
446
|
+
|
447
|
+
Content-Type: application/http
|
448
|
+
|
449
|
+
Content-Transfer-Encoding: binary
|
450
|
+
|
451
|
+
|
452
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
453
|
+
|
454
|
+
Accept-Charset: utf-8
|
455
|
+
|
456
|
+
Content-Type: application/json;charset=utf-8
|
457
|
+
|
458
|
+
|
459
|
+
{"Name":"Product 1","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
|
460
|
+
0003","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
461
|
+
|
462
|
+
--changeset_yvjs-14q8-nb5k
|
463
|
+
|
464
|
+
Content-Type: application/http
|
465
|
+
|
466
|
+
Content-Transfer-Encoding: binary
|
467
|
+
|
468
|
+
|
469
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
470
|
+
|
471
|
+
Accept-Charset: utf-8
|
472
|
+
|
473
|
+
Content-Type: application/json;charset=utf-8
|
474
|
+
|
475
|
+
|
476
|
+
{"Name":"Product 2","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
|
477
|
+
0004","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
--changeset_yvjs-14q8-nb5k--
|
482
|
+
|
483
|
+
--batch_8vhp-dtx1-hjrw--'
|
484
|
+
headers:
|
485
|
+
Accept:
|
486
|
+
- ! '*/*; q=0.5, application/xml'
|
487
|
+
Accept-Encoding:
|
488
|
+
- gzip, deflate
|
489
|
+
Content-Type:
|
490
|
+
- multipart/mixed; boundary=batch_8vhp-dtx1-hjrw
|
491
|
+
Content-Length:
|
492
|
+
- '971'
|
493
|
+
User-Agent:
|
494
|
+
- Ruby
|
495
|
+
response:
|
496
|
+
status:
|
497
|
+
code: 202
|
498
|
+
message: Accepted
|
499
|
+
headers:
|
500
|
+
Cache-Control:
|
501
|
+
- no-cache
|
502
|
+
Content-Length:
|
503
|
+
- '3880'
|
504
|
+
Content-Type:
|
505
|
+
- multipart/mixed; boundary=batchresponse_0f25ae1c-f035-4668-a98e-e26ca6d59926
|
506
|
+
Server:
|
507
|
+
- Microsoft-IIS/7.5
|
508
|
+
Set-Cookie:
|
509
|
+
- ASP.NET_SessionId=5smpy2dfpc11sis2rr2xsqbv; path=/; HttpOnly
|
510
|
+
X-Content-Type-Options:
|
511
|
+
- nosniff
|
512
|
+
Dataserviceversion:
|
513
|
+
- 1.0;
|
514
|
+
X-Aspnet-Version:
|
515
|
+
- 4.0.30319
|
516
|
+
X-Powered-By:
|
517
|
+
- ASP.NET
|
518
|
+
Date:
|
519
|
+
- Tue, 07 Aug 2012 21:43:14 GMT
|
520
|
+
body:
|
521
|
+
encoding: US-ASCII
|
522
|
+
string: ! "--batchresponse_0f25ae1c-f035-4668-a98e-e26ca6d59926\r\nContent-Type:
|
523
|
+
multipart/mixed; boundary=changesetresponse_e732252b-9ef0-4354-96a6-bf6f2f41b049\r\n\r\n--changesetresponse_e732252b-9ef0-4354-96a6-bf6f2f41b049\r\nContent-Type:
|
524
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
525
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
526
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)\r\n\r\n<?xml
|
527
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
528
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
529
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
530
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
|
531
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
532
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(1)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
533
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(1)/Category\"
|
534
|
+
/><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
|
535
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">1</d:Id><d:Name>Product
|
536
|
+
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">100.00</d:Price><d:DiscontinuedDate
|
537
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">1</d:CategoryId><d:AuditFields
|
538
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:15.453125Z</d:CreateDate><d:ModifiedDate
|
539
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:15.453125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_e732252b-9ef0-4354-96a6-bf6f2f41b049\r\nContent-Type:
|
540
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
541
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
542
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(2)\r\n\r\n<?xml
|
543
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
544
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
545
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
546
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
|
547
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
548
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(2)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
549
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(2)/Category\"
|
550
|
+
/><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
|
551
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">2</d:Id><d:Name>Product
|
552
|
+
2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">100.00</d:Price><d:DiscontinuedDate
|
553
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">2</d:CategoryId><d:AuditFields
|
554
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:15.453125Z</d:CreateDate><d:ModifiedDate
|
555
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:15.453125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_e732252b-9ef0-4354-96a6-bf6f2f41b049--\r\n--batchresponse_0f25ae1c-f035-4668-a98e-e26ca6d59926--\r\n"
|
556
|
+
http_version: !!null
|
557
|
+
recorded_at: Tue, 07 Aug 2012 21:43:15 GMT
|
558
|
+
- request:
|
559
|
+
method: post
|
560
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
|
561
|
+
body:
|
562
|
+
encoding: ASCII-8BIT
|
563
|
+
string: ! '--batch_9uz7-6w6j-u096
|
564
|
+
|
565
|
+
Content-Type: multipart/mixed;boundary=changeset_n78u-fr40-zs2r
|
566
|
+
|
567
|
+
|
568
|
+
--changeset_n78u-fr40-zs2r
|
569
|
+
|
570
|
+
Content-Type: application/http
|
571
|
+
|
572
|
+
Content-Transfer-Encoding: binary
|
573
|
+
|
574
|
+
|
575
|
+
PUT http://win7dev:8989/SampleService/RubyOData.svc/Products(1) HTTP/1.1
|
576
|
+
|
577
|
+
Accept-Charset: utf-8
|
578
|
+
|
579
|
+
Content-Type: application/json;charset=utf-8
|
580
|
+
|
581
|
+
|
582
|
+
{"Name":"Product 1 - Updated","Description":"Test Widget","Price":"100.0","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:43:15.453","ModifiedDate":"2012-08-07T21:43:15.453"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}
|
583
|
+
|
584
|
+
--changeset_n78u-fr40-zs2r
|
585
|
+
|
586
|
+
Content-Type: application/http
|
587
|
+
|
588
|
+
Content-Transfer-Encoding: binary
|
589
|
+
|
590
|
+
|
591
|
+
PUT http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
|
592
|
+
|
593
|
+
Accept-Charset: utf-8
|
594
|
+
|
595
|
+
Content-Type: application/json;charset=utf-8
|
596
|
+
|
597
|
+
|
598
|
+
{"Name":"Product 2 - Updated","Description":"Test Widget","Price":"100.0","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:43:15.453","ModifiedDate":"2012-08-07T21:43:15.453"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(2)"},"Id":2,"DiscontinuedDate":null,"CategoryId":2}
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
--changeset_n78u-fr40-zs2r--
|
603
|
+
|
604
|
+
--batch_9uz7-6w6j-u096--'
|
605
|
+
headers:
|
606
|
+
Accept:
|
607
|
+
- ! '*/*; q=0.5, application/xml'
|
608
|
+
Accept-Encoding:
|
609
|
+
- gzip, deflate
|
610
|
+
Content-Type:
|
611
|
+
- multipart/mixed; boundary=batch_9uz7-6w6j-u096
|
612
|
+
Content-Length:
|
613
|
+
- '1259'
|
614
|
+
User-Agent:
|
615
|
+
- Ruby
|
616
|
+
response:
|
617
|
+
status:
|
618
|
+
code: 202
|
619
|
+
message: Accepted
|
620
|
+
headers:
|
621
|
+
Cache-Control:
|
622
|
+
- no-cache
|
623
|
+
Content-Length:
|
624
|
+
- '748'
|
625
|
+
Content-Type:
|
626
|
+
- multipart/mixed; boundary=batchresponse_a882e427-ac6a-433c-b4c9-ec2f4a7e69bb
|
627
|
+
Server:
|
628
|
+
- Microsoft-IIS/7.5
|
629
|
+
Set-Cookie:
|
630
|
+
- ASP.NET_SessionId=13klfcxbx3mb3dvnsxncgid2; path=/; HttpOnly
|
631
|
+
X-Content-Type-Options:
|
632
|
+
- nosniff
|
633
|
+
Dataserviceversion:
|
634
|
+
- 1.0;
|
635
|
+
X-Aspnet-Version:
|
636
|
+
- 4.0.30319
|
637
|
+
X-Powered-By:
|
638
|
+
- ASP.NET
|
639
|
+
Date:
|
640
|
+
- Tue, 07 Aug 2012 21:43:15 GMT
|
641
|
+
body:
|
642
|
+
encoding: US-ASCII
|
643
|
+
string: ! "--batchresponse_a882e427-ac6a-433c-b4c9-ec2f4a7e69bb\r\nContent-Type:
|
644
|
+
multipart/mixed; boundary=changesetresponse_02ab7f4e-8ca2-4071-9f2f-bc39585acaf6\r\n\r\n--changesetresponse_02ab7f4e-8ca2-4071-9f2f-bc39585acaf6\r\nContent-Type:
|
645
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
646
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
647
|
+
1.0;\r\n\r\n\r\n--changesetresponse_02ab7f4e-8ca2-4071-9f2f-bc39585acaf6\r\nContent-Type:
|
648
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
649
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
650
|
+
1.0;\r\n\r\n\r\n--changesetresponse_02ab7f4e-8ca2-4071-9f2f-bc39585acaf6--\r\n--batchresponse_a882e427-ac6a-433c-b4c9-ec2f4a7e69bb--\r\n"
|
651
|
+
http_version: !!null
|
652
|
+
recorded_at: Tue, 07 Aug 2012 21:43:15 GMT
|
653
|
+
- request:
|
654
|
+
method: post
|
655
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
|
656
|
+
body:
|
657
|
+
encoding: ASCII-8BIT
|
658
|
+
string: ! '--batch_27vi-97pd-gwk9
|
659
|
+
|
660
|
+
Content-Type: multipart/mixed;boundary=changeset_kt35-2kvq-6fh9
|
661
|
+
|
662
|
+
|
663
|
+
--changeset_kt35-2kvq-6fh9
|
664
|
+
|
665
|
+
Content-Type: application/http
|
666
|
+
|
667
|
+
Content-Transfer-Encoding: binary
|
668
|
+
|
669
|
+
|
670
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
671
|
+
|
672
|
+
Accept-Charset: utf-8
|
673
|
+
|
674
|
+
Content-Type: application/json;charset=utf-8
|
675
|
+
|
676
|
+
|
677
|
+
{"Name":"Product 1","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
|
678
|
+
0005","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
679
|
+
|
680
|
+
--changeset_kt35-2kvq-6fh9
|
681
|
+
|
682
|
+
Content-Type: application/http
|
683
|
+
|
684
|
+
Content-Transfer-Encoding: binary
|
685
|
+
|
686
|
+
|
687
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
688
|
+
|
689
|
+
Accept-Charset: utf-8
|
690
|
+
|
691
|
+
Content-Type: application/json;charset=utf-8
|
692
|
+
|
693
|
+
|
694
|
+
{"Name":"Product 2","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
|
695
|
+
0006","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
696
|
+
|
697
|
+
--changeset_kt35-2kvq-6fh9
|
698
|
+
|
699
|
+
Content-Type: application/http
|
700
|
+
|
701
|
+
Content-Transfer-Encoding: binary
|
702
|
+
|
703
|
+
|
704
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
705
|
+
|
706
|
+
Accept-Charset: utf-8
|
707
|
+
|
708
|
+
Content-Type: application/json;charset=utf-8
|
709
|
+
|
710
|
+
|
711
|
+
{"Name":"Product 3","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
|
712
|
+
0007","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
713
|
+
|
714
|
+
--changeset_kt35-2kvq-6fh9
|
715
|
+
|
716
|
+
Content-Type: application/http
|
717
|
+
|
718
|
+
Content-Transfer-Encoding: binary
|
719
|
+
|
720
|
+
|
721
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
722
|
+
|
723
|
+
Accept-Charset: utf-8
|
724
|
+
|
725
|
+
Content-Type: application/json;charset=utf-8
|
726
|
+
|
727
|
+
|
728
|
+
{"Name":"Product 4","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
|
729
|
+
0008","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
--changeset_kt35-2kvq-6fh9--
|
734
|
+
|
735
|
+
--batch_27vi-97pd-gwk9--'
|
736
|
+
headers:
|
737
|
+
Accept:
|
738
|
+
- ! '*/*; q=0.5, application/xml'
|
739
|
+
Accept-Encoding:
|
740
|
+
- gzip, deflate
|
741
|
+
Content-Type:
|
742
|
+
- multipart/mixed; boundary=batch_27vi-97pd-gwk9
|
743
|
+
Content-Length:
|
744
|
+
- '1796'
|
745
|
+
User-Agent:
|
746
|
+
- Ruby
|
747
|
+
response:
|
748
|
+
status:
|
749
|
+
code: 202
|
750
|
+
message: Accepted
|
751
|
+
headers:
|
752
|
+
Cache-Control:
|
753
|
+
- no-cache
|
754
|
+
Content-Length:
|
755
|
+
- '7489'
|
756
|
+
Content-Type:
|
757
|
+
- multipart/mixed; boundary=batchresponse_9d2ef03d-c017-4095-a2c5-afde0d84ac3d
|
758
|
+
Server:
|
759
|
+
- Microsoft-IIS/7.5
|
760
|
+
Set-Cookie:
|
761
|
+
- ASP.NET_SessionId=mhideuzzwkhbcr2vmrj3thmn; path=/; HttpOnly
|
762
|
+
X-Content-Type-Options:
|
763
|
+
- nosniff
|
764
|
+
Dataserviceversion:
|
765
|
+
- 1.0;
|
766
|
+
X-Aspnet-Version:
|
767
|
+
- 4.0.30319
|
768
|
+
X-Powered-By:
|
769
|
+
- ASP.NET
|
770
|
+
Date:
|
771
|
+
- Tue, 07 Aug 2012 21:43:15 GMT
|
772
|
+
body:
|
773
|
+
encoding: US-ASCII
|
774
|
+
string: ! "--batchresponse_9d2ef03d-c017-4095-a2c5-afde0d84ac3d\r\nContent-Type:
|
775
|
+
multipart/mixed; boundary=changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\n\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\nContent-Type:
|
776
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
777
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
778
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)\r\n\r\n<?xml
|
779
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
780
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
781
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
782
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
|
783
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
784
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(1)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
785
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(1)/Category\"
|
786
|
+
/><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
|
787
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">1</d:Id><d:Name>Product
|
788
|
+
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">50.00</d:Price><d:DiscontinuedDate
|
789
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">1</d:CategoryId><d:AuditFields
|
790
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:CreateDate><d:ModifiedDate
|
791
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\nContent-Type:
|
792
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
793
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
794
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(2)\r\n\r\n<?xml
|
795
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
796
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
797
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
798
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
|
799
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
800
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(2)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
801
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(2)/Category\"
|
802
|
+
/><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
|
803
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">2</d:Id><d:Name>Product
|
804
|
+
2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">100.00</d:Price><d:DiscontinuedDate
|
805
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">2</d:CategoryId><d:AuditFields
|
806
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:CreateDate><d:ModifiedDate
|
807
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\nContent-Type:
|
808
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
809
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
810
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(3)\r\n\r\n<?xml
|
811
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
812
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
813
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
814
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
|
815
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
816
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
817
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(3)/Category\"
|
818
|
+
/><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
|
819
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Product
|
820
|
+
3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">75.50</d:Price><d:DiscontinuedDate
|
821
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">3</d:CategoryId><d:AuditFields
|
822
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:CreateDate><d:ModifiedDate
|
823
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\nContent-Type:
|
824
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
825
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
826
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(4)\r\n\r\n<?xml
|
827
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
828
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
829
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
830
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
|
831
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
832
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(4)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
833
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(4)/Category\"
|
834
|
+
/><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
|
835
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">4</d:Id><d:Name>Product
|
836
|
+
4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">75.50</d:Price><d:DiscontinuedDate
|
837
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">4</d:CategoryId><d:AuditFields
|
838
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:CreateDate><d:ModifiedDate
|
839
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d--\r\n--batchresponse_9d2ef03d-c017-4095-a2c5-afde0d84ac3d--\r\n"
|
840
|
+
http_version: !!null
|
841
|
+
recorded_at: Tue, 07 Aug 2012 21:43:15 GMT
|
842
|
+
- request:
|
843
|
+
method: get
|
844
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$filter=Name%20eq%20'Product%203'
|
845
|
+
body:
|
846
|
+
encoding: US-ASCII
|
847
|
+
string: ''
|
848
|
+
headers:
|
849
|
+
Accept:
|
850
|
+
- ! '*/*; q=0.5, application/xml'
|
851
|
+
Accept-Encoding:
|
852
|
+
- gzip, deflate
|
853
|
+
User-Agent:
|
854
|
+
- Ruby
|
855
|
+
response:
|
856
|
+
status:
|
857
|
+
code: 200
|
858
|
+
message: OK
|
859
|
+
headers:
|
860
|
+
Cache-Control:
|
861
|
+
- no-cache
|
862
|
+
Content-Length:
|
863
|
+
- '1630'
|
864
|
+
Content-Type:
|
865
|
+
- application/atom+xml;type=feed;charset=utf-8
|
866
|
+
Server:
|
867
|
+
- Microsoft-IIS/7.5
|
868
|
+
Set-Cookie:
|
869
|
+
- ASP.NET_SessionId=ke51zabef0nosga1ylegv1tb; path=/; HttpOnly
|
870
|
+
X-Content-Type-Options:
|
871
|
+
- nosniff
|
872
|
+
Dataserviceversion:
|
873
|
+
- 1.0;
|
874
|
+
X-Aspnet-Version:
|
875
|
+
- 4.0.30319
|
876
|
+
X-Powered-By:
|
877
|
+
- ASP.NET
|
878
|
+
Date:
|
879
|
+
- Tue, 07 Aug 2012 21:43:15 GMT
|
880
|
+
body:
|
881
|
+
encoding: US-ASCII
|
882
|
+
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
|
883
|
+
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
884
|
+
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
885
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
|
886
|
+
type="text">Products</title><updated>2012-08-07T21:43:16Z</updated><link rel="self"
|
887
|
+
title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
|
888
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
889
|
+
/><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
890
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
|
891
|
+
/><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
|
892
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
|
893
|
+
3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
|
894
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
|
895
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:CreateDate><d:ModifiedDate
|
896
|
+
m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
|
897
|
+
http_version: !!null
|
898
|
+
recorded_at: Tue, 07 Aug 2012 21:43:16 GMT
|
899
|
+
- request:
|
900
|
+
method: post
|
901
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
|
902
|
+
body:
|
903
|
+
encoding: ASCII-8BIT
|
904
|
+
string: ! '--batch_6l7o-hszs-ivo5
|
905
|
+
|
906
|
+
Content-Type: multipart/mixed;boundary=changeset_fpy5-z9jr-l7jn
|
907
|
+
|
908
|
+
|
909
|
+
--changeset_fpy5-z9jr-l7jn
|
910
|
+
|
911
|
+
Content-Type: application/http
|
912
|
+
|
913
|
+
Content-Transfer-Encoding: binary
|
914
|
+
|
915
|
+
|
916
|
+
DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
|
917
|
+
|
918
|
+
Accept-Charset: utf-8
|
919
|
+
|
920
|
+
|
921
|
+
|
922
|
+
--changeset_fpy5-z9jr-l7jn
|
923
|
+
|
924
|
+
Content-Type: application/http
|
925
|
+
|
926
|
+
Content-Transfer-Encoding: binary
|
927
|
+
|
928
|
+
|
929
|
+
DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(3) HTTP/1.1
|
930
|
+
|
931
|
+
Accept-Charset: utf-8
|
932
|
+
|
933
|
+
|
934
|
+
|
935
|
+
|
936
|
+
|
937
|
+
--changeset_fpy5-z9jr-l7jn--
|
938
|
+
|
939
|
+
--batch_6l7o-hszs-ivo5--'
|
940
|
+
headers:
|
941
|
+
Accept:
|
942
|
+
- ! '*/*; q=0.5, application/xml'
|
943
|
+
Accept-Encoding:
|
944
|
+
- gzip, deflate
|
945
|
+
Content-Type:
|
946
|
+
- multipart/mixed; boundary=batch_6l7o-hszs-ivo5
|
947
|
+
Content-Length:
|
948
|
+
- '529'
|
949
|
+
User-Agent:
|
950
|
+
- Ruby
|
951
|
+
response:
|
952
|
+
status:
|
953
|
+
code: 202
|
954
|
+
message: Accepted
|
955
|
+
headers:
|
956
|
+
Cache-Control:
|
957
|
+
- no-cache
|
958
|
+
Content-Length:
|
959
|
+
- '748'
|
960
|
+
Content-Type:
|
961
|
+
- multipart/mixed; boundary=batchresponse_383c9ccc-df0d-4698-8226-9d5a4cec3fac
|
962
|
+
Server:
|
963
|
+
- Microsoft-IIS/7.5
|
964
|
+
Set-Cookie:
|
965
|
+
- ASP.NET_SessionId=5emgwxlmdljusbtbpvhhrg2j; path=/; HttpOnly
|
966
|
+
X-Content-Type-Options:
|
967
|
+
- nosniff
|
968
|
+
Dataserviceversion:
|
969
|
+
- 1.0;
|
970
|
+
X-Aspnet-Version:
|
971
|
+
- 4.0.30319
|
972
|
+
X-Powered-By:
|
973
|
+
- ASP.NET
|
974
|
+
Date:
|
975
|
+
- Tue, 07 Aug 2012 21:43:15 GMT
|
976
|
+
body:
|
977
|
+
encoding: US-ASCII
|
978
|
+
string: ! "--batchresponse_383c9ccc-df0d-4698-8226-9d5a4cec3fac\r\nContent-Type:
|
979
|
+
multipart/mixed; boundary=changesetresponse_b0d6531e-890d-4211-96fa-3a2596603c81\r\n\r\n--changesetresponse_b0d6531e-890d-4211-96fa-3a2596603c81\r\nContent-Type:
|
980
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
981
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
982
|
+
1.0;\r\n\r\n\r\n--changesetresponse_b0d6531e-890d-4211-96fa-3a2596603c81\r\nContent-Type:
|
983
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
984
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
985
|
+
1.0;\r\n\r\n\r\n--changesetresponse_b0d6531e-890d-4211-96fa-3a2596603c81--\r\n--batchresponse_383c9ccc-df0d-4698-8226-9d5a4cec3fac--\r\n"
|
986
|
+
http_version: !!null
|
987
|
+
recorded_at: Tue, 07 Aug 2012 21:43:16 GMT
|
988
|
+
- request:
|
989
|
+
method: post
|
990
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
|
991
|
+
body:
|
992
|
+
encoding: ASCII-8BIT
|
993
|
+
string: ! '{"Name":"Product 1","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
|
994
|
+
0009","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
|
995
|
+
headers:
|
996
|
+
Accept:
|
997
|
+
- ! '*/*; q=0.5, application/xml'
|
998
|
+
Accept-Encoding:
|
999
|
+
- gzip, deflate
|
1000
|
+
Content-Type:
|
1001
|
+
- application/json
|
1002
|
+
Content-Length:
|
1003
|
+
- '180'
|
1004
|
+
User-Agent:
|
1005
|
+
- Ruby
|
1006
|
+
response:
|
1007
|
+
status:
|
1008
|
+
code: 201
|
1009
|
+
message: Created
|
1010
|
+
headers:
|
1011
|
+
Cache-Control:
|
1012
|
+
- no-cache
|
1013
|
+
Content-Length:
|
1014
|
+
- '1434'
|
1015
|
+
Content-Type:
|
1016
|
+
- application/atom+xml;type=entry;charset=utf-8
|
1017
|
+
Location:
|
1018
|
+
- http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
|
1019
|
+
Server:
|
1020
|
+
- Microsoft-IIS/7.5
|
1021
|
+
Set-Cookie:
|
1022
|
+
- ASP.NET_SessionId=zd4ztildc0fwxayue41gvwvl; path=/; HttpOnly
|
1023
|
+
X-Content-Type-Options:
|
1024
|
+
- nosniff
|
1025
|
+
Dataserviceversion:
|
1026
|
+
- 1.0;
|
1027
|
+
X-Aspnet-Version:
|
1028
|
+
- 4.0.30319
|
1029
|
+
X-Powered-By:
|
1030
|
+
- ASP.NET
|
1031
|
+
Date:
|
1032
|
+
- Tue, 07 Aug 2012 21:43:16 GMT
|
1033
|
+
body:
|
1034
|
+
encoding: US-ASCII
|
1035
|
+
string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
|
1036
|
+
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
1037
|
+
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
1038
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
|
1039
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
1040
|
+
/><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
1041
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
|
1042
|
+
/><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
|
1043
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
|
1044
|
+
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
|
1045
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
|
1046
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.90625Z</d:CreateDate><d:ModifiedDate
|
1047
|
+
m:type="Edm.DateTime">2012-08-07T21:43:16.90625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
|
1048
|
+
http_version: !!null
|
1049
|
+
recorded_at: Tue, 07 Aug 2012 21:43:16 GMT
|
1050
|
+
- request:
|
1051
|
+
method: post
|
1052
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
|
1053
|
+
body:
|
1054
|
+
encoding: ASCII-8BIT
|
1055
|
+
string: ! '{"Name":"Product 2","Description":"Test Widget","Price":"10.25","Category":{"Name":"Category
|
1056
|
+
0010","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
|
1057
|
+
headers:
|
1058
|
+
Accept:
|
1059
|
+
- ! '*/*; q=0.5, application/xml'
|
1060
|
+
Accept-Encoding:
|
1061
|
+
- gzip, deflate
|
1062
|
+
Content-Type:
|
1063
|
+
- application/json
|
1064
|
+
Content-Length:
|
1065
|
+
- '180'
|
1066
|
+
User-Agent:
|
1067
|
+
- Ruby
|
1068
|
+
response:
|
1069
|
+
status:
|
1070
|
+
code: 201
|
1071
|
+
message: Created
|
1072
|
+
headers:
|
1073
|
+
Cache-Control:
|
1074
|
+
- no-cache
|
1075
|
+
Content-Length:
|
1076
|
+
- '1434'
|
1077
|
+
Content-Type:
|
1078
|
+
- application/atom+xml;type=entry;charset=utf-8
|
1079
|
+
Location:
|
1080
|
+
- http://win7dev:8989/SampleService/RubyOData.svc/Products(2)
|
1081
|
+
Server:
|
1082
|
+
- Microsoft-IIS/7.5
|
1083
|
+
Set-Cookie:
|
1084
|
+
- ASP.NET_SessionId=mzr4cp4kip2t3c1l4ujuy4ao; path=/; HttpOnly
|
1085
|
+
X-Content-Type-Options:
|
1086
|
+
- nosniff
|
1087
|
+
Dataserviceversion:
|
1088
|
+
- 1.0;
|
1089
|
+
X-Aspnet-Version:
|
1090
|
+
- 4.0.30319
|
1091
|
+
X-Powered-By:
|
1092
|
+
- ASP.NET
|
1093
|
+
Date:
|
1094
|
+
- Tue, 07 Aug 2012 21:43:16 GMT
|
1095
|
+
body:
|
1096
|
+
encoding: US-ASCII
|
1097
|
+
string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
|
1098
|
+
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
1099
|
+
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
1100
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
|
1101
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
1102
|
+
/><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
1103
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
|
1104
|
+
/><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
|
1105
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
|
1106
|
+
2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
|
1107
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
|
1108
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:17.21875Z</d:CreateDate><d:ModifiedDate
|
1109
|
+
m:type="Edm.DateTime">2012-08-07T21:43:17.21875Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
|
1110
|
+
http_version: !!null
|
1111
|
+
recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
|
1112
|
+
- request:
|
1113
|
+
method: get
|
1114
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$filter=Name%20eq%20'Product%201'
|
1115
|
+
body:
|
1116
|
+
encoding: US-ASCII
|
1117
|
+
string: ''
|
1118
|
+
headers:
|
1119
|
+
Accept:
|
1120
|
+
- ! '*/*; q=0.5, application/xml'
|
1121
|
+
Accept-Encoding:
|
1122
|
+
- gzip, deflate
|
1123
|
+
User-Agent:
|
1124
|
+
- Ruby
|
1125
|
+
response:
|
1126
|
+
status:
|
1127
|
+
code: 200
|
1128
|
+
message: OK
|
1129
|
+
headers:
|
1130
|
+
Cache-Control:
|
1131
|
+
- no-cache
|
1132
|
+
Content-Length:
|
1133
|
+
- '1632'
|
1134
|
+
Content-Type:
|
1135
|
+
- application/atom+xml;type=feed;charset=utf-8
|
1136
|
+
Server:
|
1137
|
+
- Microsoft-IIS/7.5
|
1138
|
+
Set-Cookie:
|
1139
|
+
- ASP.NET_SessionId=0grlznf3t0dfui4nzxh4mdmp; path=/; HttpOnly
|
1140
|
+
X-Content-Type-Options:
|
1141
|
+
- nosniff
|
1142
|
+
Dataserviceversion:
|
1143
|
+
- 1.0;
|
1144
|
+
X-Aspnet-Version:
|
1145
|
+
- 4.0.30319
|
1146
|
+
X-Powered-By:
|
1147
|
+
- ASP.NET
|
1148
|
+
Date:
|
1149
|
+
- Tue, 07 Aug 2012 21:43:16 GMT
|
1150
|
+
body:
|
1151
|
+
encoding: US-ASCII
|
1152
|
+
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
|
1153
|
+
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
1154
|
+
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
1155
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
|
1156
|
+
type="text">Products</title><updated>2012-08-07T21:43:17Z</updated><link rel="self"
|
1157
|
+
title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
|
1158
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
1159
|
+
/><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
1160
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
|
1161
|
+
/><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
|
1162
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
|
1163
|
+
1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
|
1164
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
|
1165
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.907</d:CreateDate><d:ModifiedDate
|
1166
|
+
m:type="Edm.DateTime">2012-08-07T21:43:16.907</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
|
1167
|
+
http_version: !!null
|
1168
|
+
recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
|
1169
|
+
- request:
|
1170
|
+
method: get
|
1171
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$filter=Name%20eq%20'Product%202'
|
1172
|
+
body:
|
1173
|
+
encoding: US-ASCII
|
1174
|
+
string: ''
|
1175
|
+
headers:
|
1176
|
+
Accept:
|
1177
|
+
- ! '*/*; q=0.5, application/xml'
|
1178
|
+
Accept-Encoding:
|
1179
|
+
- gzip, deflate
|
1180
|
+
User-Agent:
|
1181
|
+
- Ruby
|
1182
|
+
response:
|
1183
|
+
status:
|
1184
|
+
code: 200
|
1185
|
+
message: OK
|
1186
|
+
headers:
|
1187
|
+
Cache-Control:
|
1188
|
+
- no-cache
|
1189
|
+
Content-Length:
|
1190
|
+
- '1632'
|
1191
|
+
Content-Type:
|
1192
|
+
- application/atom+xml;type=feed;charset=utf-8
|
1193
|
+
Server:
|
1194
|
+
- Microsoft-IIS/7.5
|
1195
|
+
Set-Cookie:
|
1196
|
+
- ASP.NET_SessionId=tr2rabewjopeyptiyykrjx4c; path=/; HttpOnly
|
1197
|
+
X-Content-Type-Options:
|
1198
|
+
- nosniff
|
1199
|
+
Dataserviceversion:
|
1200
|
+
- 1.0;
|
1201
|
+
X-Aspnet-Version:
|
1202
|
+
- 4.0.30319
|
1203
|
+
X-Powered-By:
|
1204
|
+
- ASP.NET
|
1205
|
+
Date:
|
1206
|
+
- Tue, 07 Aug 2012 21:43:16 GMT
|
1207
|
+
body:
|
1208
|
+
encoding: US-ASCII
|
1209
|
+
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
|
1210
|
+
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
1211
|
+
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
1212
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
|
1213
|
+
type="text">Products</title><updated>2012-08-07T21:43:17Z</updated><link rel="self"
|
1214
|
+
title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
|
1215
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
1216
|
+
/><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
1217
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
|
1218
|
+
/><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
|
1219
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
|
1220
|
+
2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
|
1221
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
|
1222
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:17.217</d:CreateDate><d:ModifiedDate
|
1223
|
+
m:type="Edm.DateTime">2012-08-07T21:43:17.217</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
|
1224
|
+
http_version: !!null
|
1225
|
+
recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
|
1226
|
+
- request:
|
1227
|
+
method: post
|
1228
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
|
1229
|
+
body:
|
1230
|
+
encoding: ASCII-8BIT
|
1231
|
+
string: ! '--batch_k5ni-f3qm-t4qc
|
1232
|
+
|
1233
|
+
Content-Type: multipart/mixed;boundary=changeset_x91l-ym6z-bivx
|
1234
|
+
|
1235
|
+
|
1236
|
+
--changeset_x91l-ym6z-bivx
|
1237
|
+
|
1238
|
+
Content-Type: application/http
|
1239
|
+
|
1240
|
+
Content-Transfer-Encoding: binary
|
1241
|
+
|
1242
|
+
|
1243
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
1244
|
+
|
1245
|
+
Accept-Charset: utf-8
|
1246
|
+
|
1247
|
+
Content-Type: application/json;charset=utf-8
|
1248
|
+
|
1249
|
+
|
1250
|
+
{"Name":"Product 3","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
|
1251
|
+
0011","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
1252
|
+
|
1253
|
+
--changeset_x91l-ym6z-bivx
|
1254
|
+
|
1255
|
+
Content-Type: application/http
|
1256
|
+
|
1257
|
+
Content-Transfer-Encoding: binary
|
1258
|
+
|
1259
|
+
|
1260
|
+
POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
|
1261
|
+
|
1262
|
+
Accept-Charset: utf-8
|
1263
|
+
|
1264
|
+
Content-Type: application/json;charset=utf-8
|
1265
|
+
|
1266
|
+
|
1267
|
+
{"Name":"Product 4","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
|
1268
|
+
0012","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
|
1269
|
+
|
1270
|
+
--changeset_x91l-ym6z-bivx
|
1271
|
+
|
1272
|
+
Content-Type: application/http
|
1273
|
+
|
1274
|
+
Content-Transfer-Encoding: binary
|
1275
|
+
|
1276
|
+
|
1277
|
+
PUT http://win7dev:8989/SampleService/RubyOData.svc/Products(1) HTTP/1.1
|
1278
|
+
|
1279
|
+
Accept-Charset: utf-8
|
1280
|
+
|
1281
|
+
Content-Type: application/json;charset=utf-8
|
1282
|
+
|
1283
|
+
|
1284
|
+
{"Name":"Product 1 - Updated","Description":"Test Widget","Price":"25.0","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:43:16.907","ModifiedDate":"2012-08-07T21:43:16.907"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}
|
1285
|
+
|
1286
|
+
--changeset_x91l-ym6z-bivx
|
1287
|
+
|
1288
|
+
Content-Type: application/http
|
1289
|
+
|
1290
|
+
Content-Transfer-Encoding: binary
|
1291
|
+
|
1292
|
+
|
1293
|
+
DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
|
1294
|
+
|
1295
|
+
Accept-Charset: utf-8
|
1296
|
+
|
1297
|
+
|
1298
|
+
|
1299
|
+
|
1300
|
+
|
1301
|
+
--changeset_x91l-ym6z-bivx--
|
1302
|
+
|
1303
|
+
--batch_k5ni-f3qm-t4qc--'
|
1304
|
+
headers:
|
1305
|
+
Accept:
|
1306
|
+
- ! '*/*; q=0.5, application/xml'
|
1307
|
+
Accept-Encoding:
|
1308
|
+
- gzip, deflate
|
1309
|
+
Content-Type:
|
1310
|
+
- multipart/mixed; boundary=batch_k5ni-f3qm-t4qc
|
1311
|
+
Content-Length:
|
1312
|
+
- '1719'
|
1313
|
+
User-Agent:
|
1314
|
+
- Ruby
|
1315
|
+
response:
|
1316
|
+
status:
|
1317
|
+
code: 202
|
1318
|
+
message: Accepted
|
1319
|
+
headers:
|
1320
|
+
Cache-Control:
|
1321
|
+
- no-cache
|
1322
|
+
Content-Length:
|
1323
|
+
- '4358'
|
1324
|
+
Content-Type:
|
1325
|
+
- multipart/mixed; boundary=batchresponse_0d15d6af-3250-4223-b89a-c04d27c5414e
|
1326
|
+
Server:
|
1327
|
+
- Microsoft-IIS/7.5
|
1328
|
+
Set-Cookie:
|
1329
|
+
- ASP.NET_SessionId=ifw42ld5yqwdas0nfixyq20u; path=/; HttpOnly
|
1330
|
+
X-Content-Type-Options:
|
1331
|
+
- nosniff
|
1332
|
+
Dataserviceversion:
|
1333
|
+
- 1.0;
|
1334
|
+
X-Aspnet-Version:
|
1335
|
+
- 4.0.30319
|
1336
|
+
X-Powered-By:
|
1337
|
+
- ASP.NET
|
1338
|
+
Date:
|
1339
|
+
- Tue, 07 Aug 2012 21:43:16 GMT
|
1340
|
+
body:
|
1341
|
+
encoding: US-ASCII
|
1342
|
+
string: ! "--batchresponse_0d15d6af-3250-4223-b89a-c04d27c5414e\r\nContent-Type:
|
1343
|
+
multipart/mixed; boundary=changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\n\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\nContent-Type:
|
1344
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
1345
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
1346
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(3)\r\n\r\n<?xml
|
1347
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
1348
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
1349
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
1350
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
|
1351
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
1352
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
1353
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(3)/Category\"
|
1354
|
+
/><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
|
1355
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Product
|
1356
|
+
3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">25.00</d:Price><d:DiscontinuedDate
|
1357
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">3</d:CategoryId><d:AuditFields
|
1358
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:17.359375Z</d:CreateDate><d:ModifiedDate
|
1359
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:17.359375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\nContent-Type:
|
1360
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
|
1361
|
+
Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
|
1362
|
+
nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(4)\r\n\r\n<?xml
|
1363
|
+
version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
|
1364
|
+
xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
1365
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
1366
|
+
xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
|
1367
|
+
term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
|
1368
|
+
/><link rel=\"edit\" title=\"Product\" href=\"Products(4)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
|
1369
|
+
type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(4)/Category\"
|
1370
|
+
/><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
|
1371
|
+
type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">4</d:Id><d:Name>Product
|
1372
|
+
4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">75.50</d:Price><d:DiscontinuedDate
|
1373
|
+
m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">4</d:CategoryId><d:AuditFields
|
1374
|
+
m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:17.359375Z</d:CreateDate><d:ModifiedDate
|
1375
|
+
m:type=\"Edm.DateTime\">2012-08-07T21:43:17.359375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\nContent-Type:
|
1376
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
1377
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
1378
|
+
1.0;\r\n\r\n\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\nContent-Type:
|
1379
|
+
application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
|
1380
|
+
No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
|
1381
|
+
1.0;\r\n\r\n\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c--\r\n--batchresponse_0d15d6af-3250-4223-b89a-c04d27c5414e--\r\n"
|
1382
|
+
http_version: !!null
|
1383
|
+
recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
|
1384
|
+
- request:
|
1385
|
+
method: get
|
1386
|
+
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
|
1387
|
+
body:
|
1388
|
+
encoding: US-ASCII
|
1389
|
+
string: ''
|
1390
|
+
headers:
|
1391
|
+
Accept:
|
1392
|
+
- ! '*/*; q=0.5, application/xml'
|
1393
|
+
Accept-Encoding:
|
1394
|
+
- gzip, deflate
|
1395
|
+
User-Agent:
|
1396
|
+
- Ruby
|
1397
|
+
response:
|
1398
|
+
status:
|
1399
|
+
code: 200
|
1400
|
+
message: OK
|
1401
|
+
headers:
|
1402
|
+
Cache-Control:
|
1403
|
+
- no-cache
|
1404
|
+
Content-Length:
|
1405
|
+
- '3786'
|
1406
|
+
Content-Type:
|
1407
|
+
- application/atom+xml;type=feed;charset=utf-8
|
1408
|
+
Server:
|
1409
|
+
- Microsoft-IIS/7.5
|
1410
|
+
Set-Cookie:
|
1411
|
+
- ASP.NET_SessionId=5kxfpgs21e3s54obg2aohzr3; path=/; HttpOnly
|
1412
|
+
X-Content-Type-Options:
|
1413
|
+
- nosniff
|
1414
|
+
Dataserviceversion:
|
1415
|
+
- 1.0;
|
1416
|
+
X-Aspnet-Version:
|
1417
|
+
- 4.0.30319
|
1418
|
+
X-Powered-By:
|
1419
|
+
- ASP.NET
|
1420
|
+
Date:
|
1421
|
+
- Tue, 07 Aug 2012 21:43:16 GMT
|
1422
|
+
body:
|
1423
|
+
encoding: US-ASCII
|
1424
|
+
string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
|
1425
|
+
xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
|
1426
|
+
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
|
1427
|
+
xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
|
1428
|
+
type="text">Products</title><updated>2012-08-07T21:43:17Z</updated><link rel="self"
|
1429
|
+
title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
|
1430
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
1431
|
+
/><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
1432
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
|
1433
|
+
/><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
|
1434
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
|
1435
|
+
1 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
|
1436
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
|
1437
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.907</d:CreateDate><d:ModifiedDate
|
1438
|
+
m:type="Edm.DateTime">2012-08-07T21:43:16.907</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
|
1439
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
1440
|
+
/><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
1441
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
|
1442
|
+
/><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
|
1443
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
|
1444
|
+
3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
|
1445
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
|
1446
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:17.36</d:CreateDate><d:ModifiedDate
|
1447
|
+
m:type="Edm.DateTime">2012-08-07T21:43:17.36</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
|
1448
|
+
term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
|
1449
|
+
/><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
|
1450
|
+
type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
|
1451
|
+
/><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
|
1452
|
+
type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
|
1453
|
+
4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
|
1454
|
+
m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
|
1455
|
+
m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:17.36</d:CreateDate><d:ModifiedDate
|
1456
|
+
m:type="Edm.DateTime">2012-08-07T21:43:17.36</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
|
1457
|
+
http_version: !!null
|
1458
|
+
recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
|
1459
|
+
recorded_with: VCR 2.2.4
|