---
http_interactions:
- request:
method: post
uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories
body:
encoding: ASCII-8BIT
string: ! '{"Name":"Test Category","AuditFields":{"CreatedBy":"Machinist"}}'
headers:
Accept:
- ! '*/*; q=0.5, application/xml'
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '64'
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
headers:
Cache-Control:
- no-cache
Content-Length:
- '1249'
Content-Type:
- application/atom+xml;type=entry;charset=utf-8
Location:
- http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)
Server:
- Microsoft-IIS/7.5
Set-Cookie:
- ASP.NET_SessionId=ga1wgtwnw3be1stztnho25m2; path=/; HttpOnly
X-Content-Type-Options:
- nosniff
Dataserviceversion:
- 1.0;
X-Aspnet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Date:
- Tue, 07 Aug 2012 21:21:48 GMT
body:
encoding: US-ASCII
string: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)2012-08-07T21:21:48Z1Test
Category2012-08-07T21:21:48.5625Z2012-08-07T21:21:48.5625ZMachinist
http_version: !!null
recorded_at: Tue, 07 Aug 2012 21:21:48 GMT
- request:
method: get
uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- ! '*/*; q=0.5, application/xml'
Accept-Encoding:
- gzip, deflate
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- no-cache
Content-Length:
- '1245'
Content-Type:
- application/atom+xml;type=entry;charset=utf-8
Server:
- Microsoft-IIS/7.5
Set-Cookie:
- ASP.NET_SessionId=gylpmoalyq35y504lhqo0bei; path=/; HttpOnly
X-Content-Type-Options:
- nosniff
Dataserviceversion:
- 1.0;
X-Aspnet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Date:
- Tue, 07 Aug 2012 21:21:48 GMT
body:
encoding: US-ASCII
string: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)2012-08-07T21:21:48Z1Test
Category2012-08-07T21:21:48.5632012-08-07T21:21:48.563Machinist
http_version: !!null
recorded_at: Tue, 07 Aug 2012 21:21:48 GMT
- request:
method: post
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
body:
encoding: ASCII-8BIT
string: ! '{"Name":"Widget 0060","Description":"Test Widget","Price":"10.25","Category":{"Name":"Category
0062","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
headers:
Accept:
- ! '*/*; q=0.5, application/xml'
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '182'
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
headers:
Cache-Control:
- no-cache
Content-Length:
- '1436'
Content-Type:
- application/atom+xml;type=entry;charset=utf-8
Location:
- http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
Server:
- Microsoft-IIS/7.5
Set-Cookie:
- ASP.NET_SessionId=2h2ktex1otob3k3ccc2phazs; path=/; HttpOnly
X-Content-Type-Options:
- nosniff
Dataserviceversion:
- 1.0;
X-Aspnet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Date:
- Tue, 07 Aug 2012 21:21:48 GMT
body:
encoding: US-ASCII
string: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)2012-08-07T21:21:48Z1Widget
0060Test Widget10.2512012-08-07T21:21:48.96875Z2012-08-07T21:21:48.96875ZMachinist
http_version: !!null
recorded_at: Tue, 07 Aug 2012 21:21:49 GMT
- request:
method: get
uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- ! '*/*; q=0.5, application/xml'
Accept-Encoding:
- gzip, deflate
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- no-cache
Content-Length:
- '1430'
Content-Type:
- application/atom+xml;type=entry;charset=utf-8
Server:
- Microsoft-IIS/7.5
Set-Cookie:
- ASP.NET_SessionId=nzeip31l14cdhu5tw5g5imsc; path=/; HttpOnly
X-Content-Type-Options:
- nosniff
Dataserviceversion:
- 1.0;
X-Aspnet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Date:
- Tue, 07 Aug 2012 21:21:48 GMT
body:
encoding: US-ASCII
string: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)2012-08-07T21:21:49Z1Widget
0060Test Widget10.2512012-08-07T21:21:48.9672012-08-07T21:21:48.967Machinist
http_version: !!null
recorded_at: Tue, 07 Aug 2012 21:21:49 GMT
recorded_with: VCR 2.2.4