odata 0.3.1 → 0.3.2

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.
@@ -0,0 +1,220 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://services.odata.org/OData/OData.svc/Products
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0"?>
10
+ <entry xmlns="http://www.w3.org/2005/Atom" xmlns:data="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:metadata="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" xml:base="http://services.odata.org/OData/OData.svc/"><category term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/><author><name/></author><content type="application/xml"><metadata:properties><data:Name metadata:type="Edm.String" metadata:null="true"/><data:Description metadata:type="Edm.String" metadata:null="true"/><data:ReleaseDate metadata:type="Edm.DateTime" metadata:null="true"/><data:DiscontinuedDate metadata:type="Edm.DateTime" metadata:null="true"/><data:Rating metadata:type="Edm.Int16" metadata:null="true"/><data:Price metadata:type="Edm.Double" metadata:null="true"/></metadata:properties></content>
11
+ </entry>
12
+ headers:
13
+ User-Agent:
14
+ - Typhoeus - https://github.com/typhoeus/typhoeus
15
+ Accept:
16
+ - application/atom+xml
17
+ Content-Type:
18
+ - application/atom+xml
19
+ response:
20
+ status:
21
+ code: 400
22
+ message: Bad Request
23
+ headers:
24
+ Cache-Control:
25
+ - private
26
+ Content-Length:
27
+ - '3006'
28
+ Content-Type:
29
+ - application/xml;charset=utf-8
30
+ Server:
31
+ - Microsoft-IIS/8.0
32
+ X-Content-Type-Options:
33
+ - nosniff
34
+ DataServiceVersion:
35
+ - 1.0;
36
+ X-AspNet-Version:
37
+ - 4.0.30319
38
+ X-Powered-By:
39
+ - ASP.NET
40
+ Access-Control-Allow-Origin:
41
+ - "*"
42
+ Access-Control-Allow-Methods:
43
+ - GET
44
+ Access-Control-Allow-Headers:
45
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
46
+ Access-Control-Expose-Headers:
47
+ - DataServiceVersion
48
+ Set-Cookie:
49
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
50
+ Date:
51
+ - Sat, 19 Jul 2014 02:59:52 GMT
52
+ body:
53
+ encoding: US-ASCII
54
+ string: ''
55
+ http_version: '1.1'
56
+ adapter_metadata:
57
+ effective_url: http://services.odata.org/OData/OData.svc/Products
58
+ recorded_at: Sat, 19 Jul 2014 02:59:53 GMT
59
+ - request:
60
+ method: get
61
+ uri: http://services.odata.org/OData/OData.svc/$metadata
62
+ body:
63
+ encoding: US-ASCII
64
+ string: ''
65
+ headers:
66
+ User-Agent:
67
+ - Typhoeus - https://github.com/typhoeus/typhoeus
68
+ response:
69
+ status:
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ Cache-Control:
74
+ - no-cache
75
+ Content-Length:
76
+ - '10034'
77
+ Content-Type:
78
+ - application/xml;charset=utf-8
79
+ Server:
80
+ - Microsoft-IIS/8.0
81
+ X-Content-Type-Options:
82
+ - nosniff
83
+ DataServiceVersion:
84
+ - 3.0;
85
+ X-AspNet-Version:
86
+ - 4.0.30319
87
+ X-Powered-By:
88
+ - ASP.NET
89
+ Access-Control-Allow-Origin:
90
+ - "*"
91
+ Access-Control-Allow-Methods:
92
+ - GET
93
+ Access-Control-Allow-Headers:
94
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
95
+ Access-Control-Expose-Headers:
96
+ - DataServiceVersion
97
+ Set-Cookie:
98
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
99
+ Date:
100
+ - Sat, 19 Jul 2014 03:14:26 GMT
101
+ body:
102
+ encoding: UTF-8
103
+ string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"><edmx:DataServices
104
+ m:DataServiceVersion="3.0" m:MaxDataServiceVersion="3.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><Schema
105
+ Namespace="ODataDemo" xmlns="http://schemas.microsoft.com/ado/2009/11/edm"><EntityType
106
+ Name="Product"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
107
+ Nullable="false" /><Property Name="Name" Type="Edm.String" m:FC_TargetPath="SyndicationTitle"
108
+ m:FC_ContentKind="text" m:FC_KeepInContent="false" /><Property Name="Description"
109
+ Type="Edm.String" m:FC_TargetPath="SyndicationSummary" m:FC_ContentKind="text"
110
+ m:FC_KeepInContent="false" /><Property Name="ReleaseDate" Type="Edm.DateTime"
111
+ Nullable="false" /><Property Name="DiscontinuedDate" Type="Edm.DateTime" /><Property
112
+ Name="Rating" Type="Edm.Int16" Nullable="false" /><Property Name="Price" Type="Edm.Double"
113
+ Nullable="false" /><NavigationProperty Name="Categories" Relationship="ODataDemo.Product_Categories_Category_Products"
114
+ ToRole="Category_Products" FromRole="Product_Categories" /><NavigationProperty
115
+ Name="Supplier" Relationship="ODataDemo.Product_Supplier_Supplier_Products"
116
+ ToRole="Supplier_Products" FromRole="Product_Supplier" /><NavigationProperty
117
+ Name="ProductDetail" Relationship="ODataDemo.Product_ProductDetail_ProductDetail_Product"
118
+ ToRole="ProductDetail_Product" FromRole="Product_ProductDetail" /></EntityType><EntityType
119
+ Name="FeaturedProduct" BaseType="ODataDemo.Product"><NavigationProperty Name="Advertisement"
120
+ Relationship="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"
121
+ ToRole="Advertisement_FeaturedProduct" FromRole="FeaturedProduct_Advertisement"
122
+ /></EntityType><EntityType Name="ProductDetail"><Key><PropertyRef Name="ProductID"
123
+ /></Key><Property Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property
124
+ Name="Details" Type="Edm.String" /><NavigationProperty Name="Product" Relationship="ODataDemo.Product_ProductDetail_ProductDetail_Product"
125
+ ToRole="Product_ProductDetail" FromRole="ProductDetail_Product" /></EntityType><EntityType
126
+ Name="Category" OpenType="true"><Key><PropertyRef Name="ID" /></Key><Property
127
+ Name="ID" Type="Edm.Int32" Nullable="false" /><Property Name="Name" Type="Edm.String"
128
+ m:FC_TargetPath="SyndicationTitle" m:FC_ContentKind="text" m:FC_KeepInContent="true"
129
+ /><NavigationProperty Name="Products" Relationship="ODataDemo.Product_Categories_Category_Products"
130
+ ToRole="Product_Categories" FromRole="Category_Products" /></EntityType><EntityType
131
+ Name="Supplier"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
132
+ Nullable="false" /><Property Name="Name" Type="Edm.String" m:FC_TargetPath="SyndicationTitle"
133
+ m:FC_ContentKind="text" m:FC_KeepInContent="true" /><Property Name="Address"
134
+ Type="ODataDemo.Address" /><Property Name="Location" Type="Edm.GeographyPoint"
135
+ SRID="Variable" /><Property Name="Concurrency" Type="Edm.Int32" ConcurrencyMode="Fixed"
136
+ Nullable="false" /><NavigationProperty Name="Products" Relationship="ODataDemo.Product_Supplier_Supplier_Products"
137
+ ToRole="Product_Supplier" FromRole="Supplier_Products" /></EntityType><ComplexType
138
+ Name="Address"><Property Name="Street" Type="Edm.String" /><Property Name="City"
139
+ Type="Edm.String" /><Property Name="State" Type="Edm.String" /><Property Name="ZipCode"
140
+ Type="Edm.String" /><Property Name="Country" Type="Edm.String" /></ComplexType><EntityType
141
+ Name="Person"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
142
+ Nullable="false" /><Property Name="Name" Type="Edm.String" /><NavigationProperty
143
+ Name="PersonDetail" Relationship="ODataDemo.Person_PersonDetail_PersonDetail_Person"
144
+ ToRole="PersonDetail_Person" FromRole="Person_PersonDetail" /></EntityType><EntityType
145
+ Name="Customer" BaseType="ODataDemo.Person"><Property Name="TotalExpense"
146
+ Type="Edm.Decimal" Nullable="false" /></EntityType><EntityType Name="Employee"
147
+ BaseType="ODataDemo.Person"><Property Name="EmployeeID" Type="Edm.Int64" Nullable="false"
148
+ /><Property Name="HireDate" Type="Edm.DateTime" Nullable="false" /><Property
149
+ Name="Salary" Type="Edm.Single" Nullable="false" /></EntityType><EntityType
150
+ Name="PersonDetail"><Key><PropertyRef Name="PersonID" /></Key><Property Name="PersonID"
151
+ Type="Edm.Int32" Nullable="false" /><Property Name="Age" Type="Edm.Byte" Nullable="false"
152
+ /><Property Name="Gender" Type="Edm.Boolean" Nullable="false" /><Property
153
+ Name="Phone" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address"
154
+ /><Property Name="Photo" Type="Edm.Stream" Nullable="false" /><NavigationProperty
155
+ Name="Person" Relationship="ODataDemo.Person_PersonDetail_PersonDetail_Person"
156
+ ToRole="Person_PersonDetail" FromRole="PersonDetail_Person" /></EntityType><EntityType
157
+ Name="Advertisement" m:HasStream="true"><Key><PropertyRef Name="ID" /></Key><Property
158
+ Name="ID" Type="Edm.Guid" Nullable="false" /><Property Name="Name" Type="Edm.String"
159
+ /><Property Name="AirDate" Type="Edm.DateTime" Nullable="false" /><NavigationProperty
160
+ Name="FeaturedProduct" Relationship="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"
161
+ ToRole="FeaturedProduct_Advertisement" FromRole="Advertisement_FeaturedProduct"
162
+ /></EntityType><Association Name="Product_Categories_Category_Products"><End
163
+ Type="ODataDemo.Category" Role="Category_Products" Multiplicity="*" /><End
164
+ Type="ODataDemo.Product" Role="Product_Categories" Multiplicity="*" /></Association><Association
165
+ Name="Product_Supplier_Supplier_Products"><End Type="ODataDemo.Supplier" Role="Supplier_Products"
166
+ Multiplicity="0..1" /><End Type="ODataDemo.Product" Role="Product_Supplier"
167
+ Multiplicity="*" /></Association><Association Name="Product_ProductDetail_ProductDetail_Product"><End
168
+ Type="ODataDemo.ProductDetail" Role="ProductDetail_Product" Multiplicity="0..1"
169
+ /><End Type="ODataDemo.Product" Role="Product_ProductDetail" Multiplicity="0..1"
170
+ /></Association><Association Name="FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"><End
171
+ Type="ODataDemo.Advertisement" Role="Advertisement_FeaturedProduct" Multiplicity="0..1"
172
+ /><End Type="ODataDemo.FeaturedProduct" Role="FeaturedProduct_Advertisement"
173
+ Multiplicity="0..1" /></Association><Association Name="Person_PersonDetail_PersonDetail_Person"><End
174
+ Type="ODataDemo.PersonDetail" Role="PersonDetail_Person" Multiplicity="0..1"
175
+ /><End Type="ODataDemo.Person" Role="Person_PersonDetail" Multiplicity="0..1"
176
+ /></Association><EntityContainer Name="DemoService" m:IsDefaultEntityContainer="true"><EntitySet
177
+ Name="Products" EntityType="ODataDemo.Product" /><EntitySet Name="ProductDetails"
178
+ EntityType="ODataDemo.ProductDetail" /><EntitySet Name="Categories" EntityType="ODataDemo.Category"
179
+ /><EntitySet Name="Suppliers" EntityType="ODataDemo.Supplier" /><EntitySet
180
+ Name="Persons" EntityType="ODataDemo.Person" /><EntitySet Name="PersonDetails"
181
+ EntityType="ODataDemo.PersonDetail" /><EntitySet Name="Advertisements" EntityType="ODataDemo.Advertisement"
182
+ /><FunctionImport Name="GetProductsByRating" ReturnType="Collection(ODataDemo.Product)"
183
+ EntitySet="Products" m:HttpMethod="GET"><Parameter Name="rating" Type="Edm.Int16"
184
+ Nullable="false" /></FunctionImport><AssociationSet Name="Products_Advertisement_Advertisements"
185
+ Association="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"><End
186
+ Role="FeaturedProduct_Advertisement" EntitySet="Products" /><End Role="Advertisement_FeaturedProduct"
187
+ EntitySet="Advertisements" /></AssociationSet><AssociationSet Name="Products_Categories_Categories"
188
+ Association="ODataDemo.Product_Categories_Category_Products"><End Role="Product_Categories"
189
+ EntitySet="Products" /><End Role="Category_Products" EntitySet="Categories"
190
+ /></AssociationSet><AssociationSet Name="Products_Supplier_Suppliers" Association="ODataDemo.Product_Supplier_Supplier_Products"><End
191
+ Role="Product_Supplier" EntitySet="Products" /><End Role="Supplier_Products"
192
+ EntitySet="Suppliers" /></AssociationSet><AssociationSet Name="Products_ProductDetail_ProductDetails"
193
+ Association="ODataDemo.Product_ProductDetail_ProductDetail_Product"><End Role="Product_ProductDetail"
194
+ EntitySet="Products" /><End Role="ProductDetail_Product" EntitySet="ProductDetails"
195
+ /></AssociationSet><AssociationSet Name="Persons_PersonDetail_PersonDetails"
196
+ Association="ODataDemo.Person_PersonDetail_PersonDetail_Person"><End Role="Person_PersonDetail"
197
+ EntitySet="Persons" /><End Role="PersonDetail_Person" EntitySet="PersonDetails"
198
+ /></AssociationSet></EntityContainer><Annotations Target="ODataDemo.DemoService"><ValueAnnotation
199
+ Term="Org.OData.Display.V1.Description" String="This is a sample OData service
200
+ with vocabularies" /></Annotations><Annotations Target="ODataDemo.Product"><ValueAnnotation
201
+ Term="Org.OData.Display.V1.Description" String="All Products available in
202
+ the online store" /></Annotations><Annotations Target="ODataDemo.Product/Name"><ValueAnnotation
203
+ Term="Org.OData.Display.V1.DisplayName" String="Product Name" /></Annotations><Annotations
204
+ Target="ODataDemo.DemoService/Suppliers"><ValueAnnotation Term="Org.OData.Publication.V1.PublisherName"
205
+ String="Microsoft Corp." /><ValueAnnotation Term="Org.OData.Publication.V1.PublisherId"
206
+ String="MSFT" /><ValueAnnotation Term="Org.OData.Publication.V1.Keywords"
207
+ String="Inventory, Supplier, Advertisers, Sales, Finance" /><ValueAnnotation
208
+ Term="Org.OData.Publication.V1.AttributionUrl" String="http://www.odata.org/"
209
+ /><ValueAnnotation Term="Org.OData.Publication.V1.AttributionDescription"
210
+ String="All rights reserved" /><ValueAnnotation Term="Org.OData.Publication.V1.DocumentationUrl
211
+ " String="http://www.odata.org/" /><ValueAnnotation Term="Org.OData.Publication.V1.TermsOfUseUrl"
212
+ String="All rights reserved" /><ValueAnnotation Term="Org.OData.Publication.V1.PrivacyPolicyUrl"
213
+ String="http://www.odata.org/" /><ValueAnnotation Term="Org.OData.Publication.V1.LastModified"
214
+ String="4/2/2013" /><ValueAnnotation Term="Org.OData.Publication.V1.ImageUrl
215
+ " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx>
216
+ http_version: '1.1'
217
+ adapter_metadata:
218
+ effective_url: http://services.odata.org/OData/OData.svc/$metadata
219
+ recorded_at: Sat, 19 Jul 2014 03:14:28 GMT
220
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,313 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://services.odata.org/OData/OData.svc/Products?$top=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Typhoeus - https://github.com/typhoeus/typhoeus
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Cache-Control:
18
+ - no-cache
19
+ Content-Length:
20
+ - '2266'
21
+ Content-Type:
22
+ - application/atom+xml;type=feed;charset=utf-8
23
+ Server:
24
+ - Microsoft-IIS/8.0
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ DataServiceVersion:
28
+ - 3.0;
29
+ X-AspNet-Version:
30
+ - 4.0.30319
31
+ X-Powered-By:
32
+ - ASP.NET
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Allow-Methods:
36
+ - GET
37
+ Access-Control-Allow-Headers:
38
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
39
+ Access-Control-Expose-Headers:
40
+ - DataServiceVersion
41
+ Set-Cookie:
42
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
43
+ Date:
44
+ - Sat, 19 Jul 2014 02:59:52 GMT
45
+ body:
46
+ encoding: UTF-8
47
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/OData/OData.svc/"
48
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
49
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
50
+ xmlns:gml="http://www.opengis.net/gml"><id>http://services.odata.org/OData/OData.svc/Products</id><title
51
+ type="text">Products</title><updated>2014-07-19T02:59:53Z</updated><link rel="self"
52
+ title="Products" href="Products" /><entry><id>http://services.odata.org/OData/OData.svc/Products(0)</id><category
53
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
54
+ /><link rel="edit" title="Product" href="Products(0)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
55
+ type="application/atom+xml;type=feed" title="Categories" href="Products(0)/Categories"
56
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
57
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(0)/Supplier"
58
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
59
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(0)/ProductDetail"
60
+ /><title type="text">Bread</title><summary type="text">Whole grain bread</summary><updated>2014-07-19T02:59:53Z</updated><author><name
61
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
62
+ type="application/xml" title="Categories" href="Products(0)/$links/Categories"
63
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
64
+ type="application/xml" title="Supplier" href="Products(0)/$links/Supplier"
65
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
66
+ type="application/xml" title="ProductDetail" href="Products(0)/$links/ProductDetail"
67
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">0</d:ID><d:ReleaseDate
68
+ m:type="Edm.DateTime">1992-01-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
69
+ m:null="true" /><d:Rating m:type="Edm.Int16">4</d:Rating><d:Price m:type="Edm.Double">2.5</d:Price></m:properties></content></entry></feed>
70
+ http_version: '1.1'
71
+ adapter_metadata:
72
+ effective_url: http://services.odata.org/OData/OData.svc/Products?$top=1
73
+ recorded_at: Sat, 19 Jul 2014 02:59:53 GMT
74
+ - request:
75
+ method: post
76
+ uri: http://services.odata.org/OData/OData.svc/Products(0)
77
+ body:
78
+ encoding: UTF-8
79
+ string: |
80
+ <?xml version="1.0"?>
81
+ <entry xmlns="http://www.w3.org/2005/Atom" xmlns:data="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:metadata="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" xml:base="http://services.odata.org/OData/OData.svc/"><category term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/><author><name/></author><content type="application/xml"><metadata:properties><data:ReleaseDate metadata:type="Edm.DateTime">1992-01-01T00:00:00</data:ReleaseDate><data:DiscontinuedDate metadata:type="Edm.DateTime" metadata:null="true"/><data:Rating metadata:type="Edm.Int16">4</data:Rating><data:Price metadata:type="Edm.Double">2.5</data:Price><data:Name metadata:type="Edm.String">Products</data:Name><data:Description metadata:type="Edm.String">Whole grain bread</data:Description></metadata:properties></content>
82
+ </entry>
83
+ headers:
84
+ User-Agent:
85
+ - Typhoeus - https://github.com/typhoeus/typhoeus
86
+ Accept:
87
+ - application/atom+xml
88
+ Content-Type:
89
+ - application/atom+xml
90
+ response:
91
+ status:
92
+ code: 200
93
+ message: OK
94
+ headers:
95
+ Cache-Control:
96
+ - no-cache
97
+ Content-Length:
98
+ - '2266'
99
+ Content-Type:
100
+ - application/atom+xml;type=feed;charset=utf-8
101
+ Server:
102
+ - Microsoft-IIS/8.0
103
+ X-Content-Type-Options:
104
+ - nosniff
105
+ DataServiceVersion:
106
+ - 3.0;
107
+ X-AspNet-Version:
108
+ - 4.0.30319
109
+ X-Powered-By:
110
+ - ASP.NET
111
+ Access-Control-Allow-Origin:
112
+ - "*"
113
+ Access-Control-Allow-Methods:
114
+ - GET
115
+ Access-Control-Allow-Headers:
116
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
117
+ Access-Control-Expose-Headers:
118
+ - DataServiceVersion
119
+ Set-Cookie:
120
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
121
+ Date:
122
+ - Sat, 19 Jul 2014 02:59:52 GMT
123
+ body:
124
+ encoding: UTF-8
125
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/OData/OData.svc/"
126
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
127
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
128
+ xmlns:gml="http://www.opengis.net/gml"><id>http://services.odata.org/OData/OData.svc/Products</id><title
129
+ type="text">Products</title><updated>2014-07-19T02:59:53Z</updated><link rel="self"
130
+ title="Products" href="Products" /><entry><id>http://services.odata.org/OData/OData.svc/Products(0)</id><category
131
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
132
+ /><link rel="edit" title="Product" href="Products(0)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
133
+ type="application/atom+xml;type=feed" title="Categories" href="Products(0)/Categories"
134
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
135
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(0)/Supplier"
136
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
137
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(0)/ProductDetail"
138
+ /><title type="text">Bread</title><summary type="text">Whole grain bread</summary><updated>2014-07-19T02:59:53Z</updated><author><name
139
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
140
+ type="application/xml" title="Categories" href="Products(0)/$links/Categories"
141
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
142
+ type="application/xml" title="Supplier" href="Products(0)/$links/Supplier"
143
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
144
+ type="application/xml" title="ProductDetail" href="Products(0)/$links/ProductDetail"
145
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">0</d:ID><d:ReleaseDate
146
+ m:type="Edm.DateTime">1992-01-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
147
+ m:null="true" /><d:Rating m:type="Edm.Int16">4</d:Rating><d:Price m:type="Edm.Double">2.5</d:Price></m:properties></content></entry></feed>
148
+ http_version: '1.1'
149
+ adapter_metadata:
150
+ effective_url: http://services.odata.org/OData/OData.svc/Products(0)
151
+ recorded_at: Sat, 19 Jul 2014 02:59:53 GMT
152
+ - request:
153
+ method: get
154
+ uri: http://services.odata.org/OData/OData.svc/$metadata
155
+ body:
156
+ encoding: US-ASCII
157
+ string: ''
158
+ headers:
159
+ User-Agent:
160
+ - Typhoeus - https://github.com/typhoeus/typhoeus
161
+ response:
162
+ status:
163
+ code: 200
164
+ message: OK
165
+ headers:
166
+ Cache-Control:
167
+ - no-cache
168
+ Content-Length:
169
+ - '10034'
170
+ Content-Type:
171
+ - application/xml;charset=utf-8
172
+ Server:
173
+ - Microsoft-IIS/8.0
174
+ X-Content-Type-Options:
175
+ - nosniff
176
+ DataServiceVersion:
177
+ - 3.0;
178
+ X-AspNet-Version:
179
+ - 4.0.30319
180
+ X-Powered-By:
181
+ - ASP.NET
182
+ Access-Control-Allow-Origin:
183
+ - "*"
184
+ Access-Control-Allow-Methods:
185
+ - GET
186
+ Access-Control-Allow-Headers:
187
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
188
+ Access-Control-Expose-Headers:
189
+ - DataServiceVersion
190
+ Set-Cookie:
191
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
192
+ Date:
193
+ - Sat, 19 Jul 2014 03:14:26 GMT
194
+ body:
195
+ encoding: UTF-8
196
+ string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"><edmx:DataServices
197
+ m:DataServiceVersion="3.0" m:MaxDataServiceVersion="3.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><Schema
198
+ Namespace="ODataDemo" xmlns="http://schemas.microsoft.com/ado/2009/11/edm"><EntityType
199
+ Name="Product"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
200
+ Nullable="false" /><Property Name="Name" Type="Edm.String" m:FC_TargetPath="SyndicationTitle"
201
+ m:FC_ContentKind="text" m:FC_KeepInContent="false" /><Property Name="Description"
202
+ Type="Edm.String" m:FC_TargetPath="SyndicationSummary" m:FC_ContentKind="text"
203
+ m:FC_KeepInContent="false" /><Property Name="ReleaseDate" Type="Edm.DateTime"
204
+ Nullable="false" /><Property Name="DiscontinuedDate" Type="Edm.DateTime" /><Property
205
+ Name="Rating" Type="Edm.Int16" Nullable="false" /><Property Name="Price" Type="Edm.Double"
206
+ Nullable="false" /><NavigationProperty Name="Categories" Relationship="ODataDemo.Product_Categories_Category_Products"
207
+ ToRole="Category_Products" FromRole="Product_Categories" /><NavigationProperty
208
+ Name="Supplier" Relationship="ODataDemo.Product_Supplier_Supplier_Products"
209
+ ToRole="Supplier_Products" FromRole="Product_Supplier" /><NavigationProperty
210
+ Name="ProductDetail" Relationship="ODataDemo.Product_ProductDetail_ProductDetail_Product"
211
+ ToRole="ProductDetail_Product" FromRole="Product_ProductDetail" /></EntityType><EntityType
212
+ Name="FeaturedProduct" BaseType="ODataDemo.Product"><NavigationProperty Name="Advertisement"
213
+ Relationship="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"
214
+ ToRole="Advertisement_FeaturedProduct" FromRole="FeaturedProduct_Advertisement"
215
+ /></EntityType><EntityType Name="ProductDetail"><Key><PropertyRef Name="ProductID"
216
+ /></Key><Property Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property
217
+ Name="Details" Type="Edm.String" /><NavigationProperty Name="Product" Relationship="ODataDemo.Product_ProductDetail_ProductDetail_Product"
218
+ ToRole="Product_ProductDetail" FromRole="ProductDetail_Product" /></EntityType><EntityType
219
+ Name="Category" OpenType="true"><Key><PropertyRef Name="ID" /></Key><Property
220
+ Name="ID" Type="Edm.Int32" Nullable="false" /><Property Name="Name" Type="Edm.String"
221
+ m:FC_TargetPath="SyndicationTitle" m:FC_ContentKind="text" m:FC_KeepInContent="true"
222
+ /><NavigationProperty Name="Products" Relationship="ODataDemo.Product_Categories_Category_Products"
223
+ ToRole="Product_Categories" FromRole="Category_Products" /></EntityType><EntityType
224
+ Name="Supplier"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
225
+ Nullable="false" /><Property Name="Name" Type="Edm.String" m:FC_TargetPath="SyndicationTitle"
226
+ m:FC_ContentKind="text" m:FC_KeepInContent="true" /><Property Name="Address"
227
+ Type="ODataDemo.Address" /><Property Name="Location" Type="Edm.GeographyPoint"
228
+ SRID="Variable" /><Property Name="Concurrency" Type="Edm.Int32" ConcurrencyMode="Fixed"
229
+ Nullable="false" /><NavigationProperty Name="Products" Relationship="ODataDemo.Product_Supplier_Supplier_Products"
230
+ ToRole="Product_Supplier" FromRole="Supplier_Products" /></EntityType><ComplexType
231
+ Name="Address"><Property Name="Street" Type="Edm.String" /><Property Name="City"
232
+ Type="Edm.String" /><Property Name="State" Type="Edm.String" /><Property Name="ZipCode"
233
+ Type="Edm.String" /><Property Name="Country" Type="Edm.String" /></ComplexType><EntityType
234
+ Name="Person"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
235
+ Nullable="false" /><Property Name="Name" Type="Edm.String" /><NavigationProperty
236
+ Name="PersonDetail" Relationship="ODataDemo.Person_PersonDetail_PersonDetail_Person"
237
+ ToRole="PersonDetail_Person" FromRole="Person_PersonDetail" /></EntityType><EntityType
238
+ Name="Customer" BaseType="ODataDemo.Person"><Property Name="TotalExpense"
239
+ Type="Edm.Decimal" Nullable="false" /></EntityType><EntityType Name="Employee"
240
+ BaseType="ODataDemo.Person"><Property Name="EmployeeID" Type="Edm.Int64" Nullable="false"
241
+ /><Property Name="HireDate" Type="Edm.DateTime" Nullable="false" /><Property
242
+ Name="Salary" Type="Edm.Single" Nullable="false" /></EntityType><EntityType
243
+ Name="PersonDetail"><Key><PropertyRef Name="PersonID" /></Key><Property Name="PersonID"
244
+ Type="Edm.Int32" Nullable="false" /><Property Name="Age" Type="Edm.Byte" Nullable="false"
245
+ /><Property Name="Gender" Type="Edm.Boolean" Nullable="false" /><Property
246
+ Name="Phone" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address"
247
+ /><Property Name="Photo" Type="Edm.Stream" Nullable="false" /><NavigationProperty
248
+ Name="Person" Relationship="ODataDemo.Person_PersonDetail_PersonDetail_Person"
249
+ ToRole="Person_PersonDetail" FromRole="PersonDetail_Person" /></EntityType><EntityType
250
+ Name="Advertisement" m:HasStream="true"><Key><PropertyRef Name="ID" /></Key><Property
251
+ Name="ID" Type="Edm.Guid" Nullable="false" /><Property Name="Name" Type="Edm.String"
252
+ /><Property Name="AirDate" Type="Edm.DateTime" Nullable="false" /><NavigationProperty
253
+ Name="FeaturedProduct" Relationship="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"
254
+ ToRole="FeaturedProduct_Advertisement" FromRole="Advertisement_FeaturedProduct"
255
+ /></EntityType><Association Name="Product_Categories_Category_Products"><End
256
+ Type="ODataDemo.Category" Role="Category_Products" Multiplicity="*" /><End
257
+ Type="ODataDemo.Product" Role="Product_Categories" Multiplicity="*" /></Association><Association
258
+ Name="Product_Supplier_Supplier_Products"><End Type="ODataDemo.Supplier" Role="Supplier_Products"
259
+ Multiplicity="0..1" /><End Type="ODataDemo.Product" Role="Product_Supplier"
260
+ Multiplicity="*" /></Association><Association Name="Product_ProductDetail_ProductDetail_Product"><End
261
+ Type="ODataDemo.ProductDetail" Role="ProductDetail_Product" Multiplicity="0..1"
262
+ /><End Type="ODataDemo.Product" Role="Product_ProductDetail" Multiplicity="0..1"
263
+ /></Association><Association Name="FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"><End
264
+ Type="ODataDemo.Advertisement" Role="Advertisement_FeaturedProduct" Multiplicity="0..1"
265
+ /><End Type="ODataDemo.FeaturedProduct" Role="FeaturedProduct_Advertisement"
266
+ Multiplicity="0..1" /></Association><Association Name="Person_PersonDetail_PersonDetail_Person"><End
267
+ Type="ODataDemo.PersonDetail" Role="PersonDetail_Person" Multiplicity="0..1"
268
+ /><End Type="ODataDemo.Person" Role="Person_PersonDetail" Multiplicity="0..1"
269
+ /></Association><EntityContainer Name="DemoService" m:IsDefaultEntityContainer="true"><EntitySet
270
+ Name="Products" EntityType="ODataDemo.Product" /><EntitySet Name="ProductDetails"
271
+ EntityType="ODataDemo.ProductDetail" /><EntitySet Name="Categories" EntityType="ODataDemo.Category"
272
+ /><EntitySet Name="Suppliers" EntityType="ODataDemo.Supplier" /><EntitySet
273
+ Name="Persons" EntityType="ODataDemo.Person" /><EntitySet Name="PersonDetails"
274
+ EntityType="ODataDemo.PersonDetail" /><EntitySet Name="Advertisements" EntityType="ODataDemo.Advertisement"
275
+ /><FunctionImport Name="GetProductsByRating" ReturnType="Collection(ODataDemo.Product)"
276
+ EntitySet="Products" m:HttpMethod="GET"><Parameter Name="rating" Type="Edm.Int16"
277
+ Nullable="false" /></FunctionImport><AssociationSet Name="Products_Advertisement_Advertisements"
278
+ Association="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"><End
279
+ Role="FeaturedProduct_Advertisement" EntitySet="Products" /><End Role="Advertisement_FeaturedProduct"
280
+ EntitySet="Advertisements" /></AssociationSet><AssociationSet Name="Products_Categories_Categories"
281
+ Association="ODataDemo.Product_Categories_Category_Products"><End Role="Product_Categories"
282
+ EntitySet="Products" /><End Role="Category_Products" EntitySet="Categories"
283
+ /></AssociationSet><AssociationSet Name="Products_Supplier_Suppliers" Association="ODataDemo.Product_Supplier_Supplier_Products"><End
284
+ Role="Product_Supplier" EntitySet="Products" /><End Role="Supplier_Products"
285
+ EntitySet="Suppliers" /></AssociationSet><AssociationSet Name="Products_ProductDetail_ProductDetails"
286
+ Association="ODataDemo.Product_ProductDetail_ProductDetail_Product"><End Role="Product_ProductDetail"
287
+ EntitySet="Products" /><End Role="ProductDetail_Product" EntitySet="ProductDetails"
288
+ /></AssociationSet><AssociationSet Name="Persons_PersonDetail_PersonDetails"
289
+ Association="ODataDemo.Person_PersonDetail_PersonDetail_Person"><End Role="Person_PersonDetail"
290
+ EntitySet="Persons" /><End Role="PersonDetail_Person" EntitySet="PersonDetails"
291
+ /></AssociationSet></EntityContainer><Annotations Target="ODataDemo.DemoService"><ValueAnnotation
292
+ Term="Org.OData.Display.V1.Description" String="This is a sample OData service
293
+ with vocabularies" /></Annotations><Annotations Target="ODataDemo.Product"><ValueAnnotation
294
+ Term="Org.OData.Display.V1.Description" String="All Products available in
295
+ the online store" /></Annotations><Annotations Target="ODataDemo.Product/Name"><ValueAnnotation
296
+ Term="Org.OData.Display.V1.DisplayName" String="Product Name" /></Annotations><Annotations
297
+ Target="ODataDemo.DemoService/Suppliers"><ValueAnnotation Term="Org.OData.Publication.V1.PublisherName"
298
+ String="Microsoft Corp." /><ValueAnnotation Term="Org.OData.Publication.V1.PublisherId"
299
+ String="MSFT" /><ValueAnnotation Term="Org.OData.Publication.V1.Keywords"
300
+ String="Inventory, Supplier, Advertisers, Sales, Finance" /><ValueAnnotation
301
+ Term="Org.OData.Publication.V1.AttributionUrl" String="http://www.odata.org/"
302
+ /><ValueAnnotation Term="Org.OData.Publication.V1.AttributionDescription"
303
+ String="All rights reserved" /><ValueAnnotation Term="Org.OData.Publication.V1.DocumentationUrl
304
+ " String="http://www.odata.org/" /><ValueAnnotation Term="Org.OData.Publication.V1.TermsOfUseUrl"
305
+ String="All rights reserved" /><ValueAnnotation Term="Org.OData.Publication.V1.PrivacyPolicyUrl"
306
+ String="http://www.odata.org/" /><ValueAnnotation Term="Org.OData.Publication.V1.LastModified"
307
+ String="4/2/2013" /><ValueAnnotation Term="Org.OData.Publication.V1.ImageUrl
308
+ " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx>
309
+ http_version: '1.1'
310
+ adapter_metadata:
311
+ effective_url: http://services.odata.org/OData/OData.svc/$metadata
312
+ recorded_at: Sat, 19 Jul 2014 03:14:27 GMT
313
+ recorded_with: VCR 2.9.2