odata 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,12 @@
1
1
  module OData
2
+ # OData::Property represents an abstract property, defining the basic
3
+ # interface and required methods, with some default implementations. All
4
+ # supported property types should be implemented under the OData::Properties
5
+ # namespace.
2
6
  class Property
7
+ # The property's name
3
8
  attr_reader :name
9
+ # The property's value
4
10
  attr_accessor :value
5
11
 
6
12
  # Default intialization for a property with a name, value and options.
@@ -45,6 +51,22 @@ module OData
45
51
  @value
46
52
  end
47
53
 
54
+ # Returns the XML representation of the property to the supplied XML
55
+ # builder.
56
+ # @param xml_builder [Nokogiri::XML::Builder]
57
+ def to_xml(xml_builder)
58
+ attributes = {
59
+ 'metadata:type' => type,
60
+ }
61
+
62
+ if value.nil?
63
+ attributes['metadata:null'] = 'true'
64
+ xml_builder['data'].send(name.to_sym, attributes)
65
+ else
66
+ xml_builder['data'].send(name.to_sym, attributes, xml_value)
67
+ end
68
+ end
69
+
48
70
  private
49
71
 
50
72
  def default_options
data/lib/odata/query.rb CHANGED
@@ -1,29 +1,98 @@
1
- require 'odata/query/criteria'
2
-
3
1
  module OData
2
+ # OData::Query provides the query interface for requesting Entities matching
3
+ # specific criteria from an OData::EntitySet. This class should not be
4
+ # instantiated directly, but can be. Normally you will access a Query by
5
+ # first asking for one from the OData::EntitySet you want to query.
4
6
  class Query
5
- # Defines the operations the OData gem knows how to support.
6
- SUPPORTED_OPERATIONS = [
7
- :filter, :order_by, :skip, :top, :select, :expand, :inline_count
8
- ]
9
-
10
- def initialize(collection)
11
- @collection = collection.to_s
7
+ # Create a new Query for the provided EntitySet
8
+ # @param entity_set [OData::EntitySet]
9
+ def initialize(entity_set)
10
+ @entity_set = entity_set
12
11
  setup_empty_criteria_set
13
12
  end
14
13
 
15
- def <<(criteria)
16
- criteria_set[criteria.operation] << criteria.argument
14
+ # Instantiates an OData::Query::Criteria for the named property.
15
+ # @param property [to_s]
16
+ def [](property)
17
+ OData::Query::Criteria.new(property: property)
18
+ end
19
+
20
+ # Adds a filter criteria to the query.
21
+ # @param criteria
22
+ def where(criteria)
23
+ criteria_set[:filter] << criteria
24
+ self
25
+ end
26
+
27
+ # Adds a filter criteria to the query with 'and' logical operator.
28
+ # @param criteria
29
+ #def and(criteria)
30
+ #
31
+ #end
32
+
33
+ # Adds a filter criteria to the query with 'or' logical operator.
34
+ # @param criteria
35
+ #def or(criteria)
36
+ #
37
+ #end
38
+
39
+ # Specify properties to order the result by.
40
+ # @param properties [Array<Symbol>]
41
+ # @return [self]
42
+ def order_by(*properties)
43
+ criteria_set[:orderby] += properties
44
+ self
45
+ end
46
+
47
+ # Specify associations to expand in the result.
48
+ # @param associations [Array<Symbol>]
49
+ # @return [self]
50
+ def expand(*associations)
51
+ criteria_set[:expand] += associations
52
+ self
53
+ end
54
+
55
+ # Specify properties to select within the result.
56
+ # @param properties [Array<Symbol>]
57
+ # @return [self]
58
+ def select(*properties)
59
+ criteria_set[:select] += properties
60
+ self
61
+ end
62
+
63
+ # Add skip criteria to query.
64
+ # @param value [to_i]
65
+ # @return [self]
66
+ def skip(value)
67
+ criteria_set[:skip] = value.to_i
68
+ self
69
+ end
70
+
71
+ # Add limit criteria to query.
72
+ # @param value [to_i]
73
+ # @return [self]
74
+ def limit(value)
75
+ criteria_set[:top] = value.to_i
76
+ self
17
77
  end
18
78
 
79
+ # Add inline count criteria to query.
80
+ # @return [self]
81
+ def include_count
82
+ criteria_set[:inline_count] = true
83
+ self
84
+ end
85
+
86
+ # Convert Query to string.
87
+ # @return [String]
19
88
  def to_s
20
- [collection,assemble_criteria].compact.join('?')
89
+ [entity_set.name, assemble_criteria].compact.join('?')
21
90
  end
22
91
 
23
92
  private
24
93
 
25
- def collection
26
- @collection
94
+ def entity_set
95
+ @entity_set
27
96
  end
28
97
 
29
98
  def criteria_set
@@ -31,52 +100,47 @@ module OData
31
100
  end
32
101
 
33
102
  def setup_empty_criteria_set
34
- criteria_set = SUPPORTED_OPERATIONS.map do |operation|
35
- [operation, []]
36
- end
37
- @criteria_set = Hash[criteria_set]
103
+ @criteria_set = {
104
+ filter: [],
105
+ select: [],
106
+ expand: [],
107
+ orderby: [],
108
+ skip: 0,
109
+ top: 0,
110
+ inline_count: false
111
+ }
38
112
  end
39
113
 
40
114
  def assemble_criteria
41
115
  criteria = [
42
116
  filter_criteria,
43
- order_by_criteria,
44
- expand_criteria,
45
- select_criteria,
117
+ list_criteria(:orderby),
118
+ list_criteria(:expand),
119
+ list_criteria(:select),
46
120
  inline_count_criteria,
47
- skip_criteria,
48
- top_criteria
121
+ paging_criteria(:skip),
122
+ paging_criteria(:top)
49
123
  ].compact!
50
124
 
51
125
  criteria.empty? ? nil : criteria.join('&')
52
126
  end
53
127
 
54
128
  def filter_criteria
55
- criteria_set[:filter].empty? ? nil : "$filter=#{criteria_set[:filter].join(' and ')}"
129
+ return nil if criteria_set[:filter].empty?
130
+ filters = criteria_set[:filter].collect {|criteria| criteria.to_s}
131
+ "$filter=#{filters.join(' and ')}"
56
132
  end
57
133
 
58
- def order_by_criteria
59
- criteria_set[:order_by].empty? ? nil : "$orderby=#{criteria_set[:order_by].join(',')}"
60
- end
61
-
62
- def expand_criteria
63
- criteria_set[:expand].empty? ? nil : "$expand=#{criteria_set[:expand].join(',')}"
64
- end
65
-
66
- def select_criteria
67
- criteria_set[:select].empty? ? nil : "$select=#{criteria_set[:select].join(',')}"
134
+ def list_criteria(name)
135
+ criteria_set[name].empty? ? nil : "$#{name}=#{criteria_set[name].join(',')}"
68
136
  end
69
137
 
70
138
  def inline_count_criteria
71
- criteria_set[:inline_count].empty? ? nil : "$inlinecount=#{criteria_set[:inline_count].last}"
72
- end
73
-
74
- def skip_criteria
75
- criteria_set[:skip].empty? ? nil : "$skip=#{criteria_set[:skip].last}"
139
+ criteria_set[:inline_count] ? '$inlinecount=allpages' : nil
76
140
  end
77
141
 
78
- def top_criteria
79
- criteria_set[:top].empty? ? nil : "$top=#{criteria_set[:top].last}"
142
+ def paging_criteria(name)
143
+ criteria_set[name] == 0 ? nil : "$#{name}=#{criteria_set[name]}"
80
144
  end
81
145
  end
82
146
  end
@@ -1,74 +1,80 @@
1
1
  module OData
2
2
  class Query
3
- # Represents a discreet detail about an OData query. It also validates
4
- # the criteria based on what the gem knows how to support.
3
+ # Represents a discreet criteria within an OData::Query. Should not,
4
+ # normally, be instantiated directly.
5
5
  class Criteria
6
- # Defines the options required to create a new OData::Query::Criteria.
7
- REQUIRED_OPTIONS = [:operation, :argument]
6
+ # The property name that is the target of the criteria.
7
+ attr_reader :property
8
+ # The operator of the criteria.
9
+ attr_reader :operator
10
+ # The value of the criteria.
11
+ attr_reader :value
8
12
 
9
- # Defines the operations the OData gem knows how to support.
10
- SUPPORTED_OPERATIONS = [
11
- :filter, :order_by, :skip, :top, :select, :expand, :inline_count
12
- ]
13
-
14
- # Creates a new OData::Query::Criteria with the supplied options.
13
+ # Initializes a new criteria with provided options.
15
14
  # @param options [Hash]
16
15
  def initialize(options = {})
17
- @options = process_options(options)
18
- validate_required_options
19
- validate_supported_operation
16
+ @property = options[:property]
17
+ @operator = options[:operator]
18
+ @value = options[:value]
20
19
  end
21
20
 
22
- # The query operation of a particular criteria.
23
- # @return [Symbol]
24
- def operation
25
- options[:operation]
21
+ # Sets up equality operator.
22
+ # @param value [to_s]
23
+ # @return [self]
24
+ def eq(value)
25
+ set_operator_and_value(:eq, value)
26
26
  end
27
27
 
28
- # The query argument of a particular criteria.
29
- # @return [String]
30
- def argument
31
- options[:argument]
28
+ # Sets up non-equality operator.
29
+ # @param value [to_s]
30
+ # @return [self]
31
+ def ne(value)
32
+ set_operator_and_value(:ne, value)
32
33
  end
33
34
 
34
- private
35
-
36
- def options
37
- @options
35
+ # Sets up greater-than operator.
36
+ # @param value [to_s]
37
+ # @return [self]
38
+ def gt(value)
39
+ set_operator_and_value(:gt, value)
38
40
  end
39
41
 
40
- def process_options(passed_options)
41
- new_options = passed_options.map do |key, value|
42
- if key.to_sym == :operation
43
- value = value.to_sym
44
- end
45
-
46
- [key.to_sym, value]
47
- end
42
+ # Sets up greater-than-or-equal operator.
43
+ # @param value [to_s]
44
+ # @return [self]
45
+ def ge(value)
46
+ set_operator_and_value(:ge, value)
47
+ end
48
48
 
49
- Hash[new_options]
49
+ # Sets up less-than operator.
50
+ # @param value [to_s]
51
+ # @return [self]
52
+ def lt(value)
53
+ set_operator_and_value(:lt, value)
50
54
  end
51
55
 
52
- def required_options
53
- REQUIRED_OPTIONS
56
+ # Sets up less-than-or-equal operator.
57
+ # @param value [to_s]
58
+ # @return [self]
59
+ def le(value)
60
+ set_operator_and_value(:le, value)
54
61
  end
55
62
 
56
- def supported_operations
57
- SUPPORTED_OPERATIONS
63
+ # Returns criteria as query-ready string.
64
+ def to_s
65
+ "#{property} #{operator} #{value_for_string}"
58
66
  end
59
67
 
60
- def validate_required_options
61
- required_options.each do |required_option|
62
- unless options.key?(required_option)
63
- raise ArgumentError, "Missing required option: #{required_option}"
64
- end
65
- end
68
+ private
69
+
70
+ def set_operator_and_value(operator, value)
71
+ @operator = operator
72
+ @value = value
73
+ self
66
74
  end
67
75
 
68
- def validate_supported_operation
69
- unless supported_operations.include?(options[:operation])
70
- raise ArgumentError, "Operation not supported: #{options[:operation]}"
71
- end
76
+ def value_for_string
77
+ value.is_a?(String) ? "'#{value}'" : value
72
78
  end
73
79
  end
74
80
  end
data/lib/odata/service.rb CHANGED
@@ -38,12 +38,12 @@ module OData
38
38
 
39
39
  # Returns a hash of EntitySet names keyed to their respective EntityType name
40
40
  def entity_sets
41
- @entity_sets ||= metadata.xpath('//EntityContainer/EntitySet').collect {|entity|
41
+ @entity_sets ||= Hash[metadata.xpath('//EntityContainer/EntitySet').collect {|entity|
42
42
  [
43
43
  entity.attributes['EntityType'].value.gsub("#{namespace}.", ''),
44
44
  entity.attributes['Name'].value
45
45
  ]
46
- }.to_h
46
+ }]
47
47
  end
48
48
 
49
49
  # Returns a list of ComplexTypes used by the service
data/lib/odata/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OData
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
data/odata.gemspec CHANGED
@@ -23,10 +23,9 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'simplecov', '~> 0.8.2'
24
24
  spec.add_development_dependency 'codeclimate-test-reporter'
25
25
  spec.add_development_dependency 'rspec', '~> 3.0.0'
26
- spec.add_development_dependency 'webmock', '~> 1.18.0'
26
+ spec.add_development_dependency 'vcr', '~> 2.9.2'
27
27
  spec.add_development_dependency 'timecop', '~> 0.7.1'
28
28
 
29
- spec.add_dependency 'backports', '~> 3.6.0'
30
29
  spec.add_dependency 'nokogiri', '~> 1.6.2'
31
30
  spec.add_dependency 'typhoeus', '~> 0.6.8'
32
31
  end
@@ -0,0 +1,952 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://services.odata.org/OData/OData.svc/$metadata
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
+ - '10034'
21
+ Content-Type:
22
+ - application/xml;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:51 GMT
45
+ body:
46
+ encoding: UTF-8
47
+ 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
48
+ m:DataServiceVersion="3.0" m:MaxDataServiceVersion="3.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><Schema
49
+ Namespace="ODataDemo" xmlns="http://schemas.microsoft.com/ado/2009/11/edm"><EntityType
50
+ Name="Product"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
51
+ Nullable="false" /><Property Name="Name" Type="Edm.String" m:FC_TargetPath="SyndicationTitle"
52
+ m:FC_ContentKind="text" m:FC_KeepInContent="false" /><Property Name="Description"
53
+ Type="Edm.String" m:FC_TargetPath="SyndicationSummary" m:FC_ContentKind="text"
54
+ m:FC_KeepInContent="false" /><Property Name="ReleaseDate" Type="Edm.DateTime"
55
+ Nullable="false" /><Property Name="DiscontinuedDate" Type="Edm.DateTime" /><Property
56
+ Name="Rating" Type="Edm.Int16" Nullable="false" /><Property Name="Price" Type="Edm.Double"
57
+ Nullable="false" /><NavigationProperty Name="Categories" Relationship="ODataDemo.Product_Categories_Category_Products"
58
+ ToRole="Category_Products" FromRole="Product_Categories" /><NavigationProperty
59
+ Name="Supplier" Relationship="ODataDemo.Product_Supplier_Supplier_Products"
60
+ ToRole="Supplier_Products" FromRole="Product_Supplier" /><NavigationProperty
61
+ Name="ProductDetail" Relationship="ODataDemo.Product_ProductDetail_ProductDetail_Product"
62
+ ToRole="ProductDetail_Product" FromRole="Product_ProductDetail" /></EntityType><EntityType
63
+ Name="FeaturedProduct" BaseType="ODataDemo.Product"><NavigationProperty Name="Advertisement"
64
+ Relationship="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"
65
+ ToRole="Advertisement_FeaturedProduct" FromRole="FeaturedProduct_Advertisement"
66
+ /></EntityType><EntityType Name="ProductDetail"><Key><PropertyRef Name="ProductID"
67
+ /></Key><Property Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property
68
+ Name="Details" Type="Edm.String" /><NavigationProperty Name="Product" Relationship="ODataDemo.Product_ProductDetail_ProductDetail_Product"
69
+ ToRole="Product_ProductDetail" FromRole="ProductDetail_Product" /></EntityType><EntityType
70
+ Name="Category" OpenType="true"><Key><PropertyRef Name="ID" /></Key><Property
71
+ Name="ID" Type="Edm.Int32" Nullable="false" /><Property Name="Name" Type="Edm.String"
72
+ m:FC_TargetPath="SyndicationTitle" m:FC_ContentKind="text" m:FC_KeepInContent="true"
73
+ /><NavigationProperty Name="Products" Relationship="ODataDemo.Product_Categories_Category_Products"
74
+ ToRole="Product_Categories" FromRole="Category_Products" /></EntityType><EntityType
75
+ Name="Supplier"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
76
+ Nullable="false" /><Property Name="Name" Type="Edm.String" m:FC_TargetPath="SyndicationTitle"
77
+ m:FC_ContentKind="text" m:FC_KeepInContent="true" /><Property Name="Address"
78
+ Type="ODataDemo.Address" /><Property Name="Location" Type="Edm.GeographyPoint"
79
+ SRID="Variable" /><Property Name="Concurrency" Type="Edm.Int32" ConcurrencyMode="Fixed"
80
+ Nullable="false" /><NavigationProperty Name="Products" Relationship="ODataDemo.Product_Supplier_Supplier_Products"
81
+ ToRole="Product_Supplier" FromRole="Supplier_Products" /></EntityType><ComplexType
82
+ Name="Address"><Property Name="Street" Type="Edm.String" /><Property Name="City"
83
+ Type="Edm.String" /><Property Name="State" Type="Edm.String" /><Property Name="ZipCode"
84
+ Type="Edm.String" /><Property Name="Country" Type="Edm.String" /></ComplexType><EntityType
85
+ Name="Person"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32"
86
+ Nullable="false" /><Property Name="Name" Type="Edm.String" /><NavigationProperty
87
+ Name="PersonDetail" Relationship="ODataDemo.Person_PersonDetail_PersonDetail_Person"
88
+ ToRole="PersonDetail_Person" FromRole="Person_PersonDetail" /></EntityType><EntityType
89
+ Name="Customer" BaseType="ODataDemo.Person"><Property Name="TotalExpense"
90
+ Type="Edm.Decimal" Nullable="false" /></EntityType><EntityType Name="Employee"
91
+ BaseType="ODataDemo.Person"><Property Name="EmployeeID" Type="Edm.Int64" Nullable="false"
92
+ /><Property Name="HireDate" Type="Edm.DateTime" Nullable="false" /><Property
93
+ Name="Salary" Type="Edm.Single" Nullable="false" /></EntityType><EntityType
94
+ Name="PersonDetail"><Key><PropertyRef Name="PersonID" /></Key><Property Name="PersonID"
95
+ Type="Edm.Int32" Nullable="false" /><Property Name="Age" Type="Edm.Byte" Nullable="false"
96
+ /><Property Name="Gender" Type="Edm.Boolean" Nullable="false" /><Property
97
+ Name="Phone" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address"
98
+ /><Property Name="Photo" Type="Edm.Stream" Nullable="false" /><NavigationProperty
99
+ Name="Person" Relationship="ODataDemo.Person_PersonDetail_PersonDetail_Person"
100
+ ToRole="Person_PersonDetail" FromRole="PersonDetail_Person" /></EntityType><EntityType
101
+ Name="Advertisement" m:HasStream="true"><Key><PropertyRef Name="ID" /></Key><Property
102
+ Name="ID" Type="Edm.Guid" Nullable="false" /><Property Name="Name" Type="Edm.String"
103
+ /><Property Name="AirDate" Type="Edm.DateTime" Nullable="false" /><NavigationProperty
104
+ Name="FeaturedProduct" Relationship="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"
105
+ ToRole="FeaturedProduct_Advertisement" FromRole="Advertisement_FeaturedProduct"
106
+ /></EntityType><Association Name="Product_Categories_Category_Products"><End
107
+ Type="ODataDemo.Category" Role="Category_Products" Multiplicity="*" /><End
108
+ Type="ODataDemo.Product" Role="Product_Categories" Multiplicity="*" /></Association><Association
109
+ Name="Product_Supplier_Supplier_Products"><End Type="ODataDemo.Supplier" Role="Supplier_Products"
110
+ Multiplicity="0..1" /><End Type="ODataDemo.Product" Role="Product_Supplier"
111
+ Multiplicity="*" /></Association><Association Name="Product_ProductDetail_ProductDetail_Product"><End
112
+ Type="ODataDemo.ProductDetail" Role="ProductDetail_Product" Multiplicity="0..1"
113
+ /><End Type="ODataDemo.Product" Role="Product_ProductDetail" Multiplicity="0..1"
114
+ /></Association><Association Name="FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"><End
115
+ Type="ODataDemo.Advertisement" Role="Advertisement_FeaturedProduct" Multiplicity="0..1"
116
+ /><End Type="ODataDemo.FeaturedProduct" Role="FeaturedProduct_Advertisement"
117
+ Multiplicity="0..1" /></Association><Association Name="Person_PersonDetail_PersonDetail_Person"><End
118
+ Type="ODataDemo.PersonDetail" Role="PersonDetail_Person" Multiplicity="0..1"
119
+ /><End Type="ODataDemo.Person" Role="Person_PersonDetail" Multiplicity="0..1"
120
+ /></Association><EntityContainer Name="DemoService" m:IsDefaultEntityContainer="true"><EntitySet
121
+ Name="Products" EntityType="ODataDemo.Product" /><EntitySet Name="ProductDetails"
122
+ EntityType="ODataDemo.ProductDetail" /><EntitySet Name="Categories" EntityType="ODataDemo.Category"
123
+ /><EntitySet Name="Suppliers" EntityType="ODataDemo.Supplier" /><EntitySet
124
+ Name="Persons" EntityType="ODataDemo.Person" /><EntitySet Name="PersonDetails"
125
+ EntityType="ODataDemo.PersonDetail" /><EntitySet Name="Advertisements" EntityType="ODataDemo.Advertisement"
126
+ /><FunctionImport Name="GetProductsByRating" ReturnType="Collection(ODataDemo.Product)"
127
+ EntitySet="Products" m:HttpMethod="GET"><Parameter Name="rating" Type="Edm.Int16"
128
+ Nullable="false" /></FunctionImport><AssociationSet Name="Products_Advertisement_Advertisements"
129
+ Association="ODataDemo.FeaturedProduct_Advertisement_Advertisement_FeaturedProduct"><End
130
+ Role="FeaturedProduct_Advertisement" EntitySet="Products" /><End Role="Advertisement_FeaturedProduct"
131
+ EntitySet="Advertisements" /></AssociationSet><AssociationSet Name="Products_Categories_Categories"
132
+ Association="ODataDemo.Product_Categories_Category_Products"><End Role="Product_Categories"
133
+ EntitySet="Products" /><End Role="Category_Products" EntitySet="Categories"
134
+ /></AssociationSet><AssociationSet Name="Products_Supplier_Suppliers" Association="ODataDemo.Product_Supplier_Supplier_Products"><End
135
+ Role="Product_Supplier" EntitySet="Products" /><End Role="Supplier_Products"
136
+ EntitySet="Suppliers" /></AssociationSet><AssociationSet Name="Products_ProductDetail_ProductDetails"
137
+ Association="ODataDemo.Product_ProductDetail_ProductDetail_Product"><End Role="Product_ProductDetail"
138
+ EntitySet="Products" /><End Role="ProductDetail_Product" EntitySet="ProductDetails"
139
+ /></AssociationSet><AssociationSet Name="Persons_PersonDetail_PersonDetails"
140
+ Association="ODataDemo.Person_PersonDetail_PersonDetail_Person"><End Role="Person_PersonDetail"
141
+ EntitySet="Persons" /><End Role="PersonDetail_Person" EntitySet="PersonDetails"
142
+ /></AssociationSet></EntityContainer><Annotations Target="ODataDemo.DemoService"><ValueAnnotation
143
+ Term="Org.OData.Display.V1.Description" String="This is a sample OData service
144
+ with vocabularies" /></Annotations><Annotations Target="ODataDemo.Product"><ValueAnnotation
145
+ Term="Org.OData.Display.V1.Description" String="All Products available in
146
+ the online store" /></Annotations><Annotations Target="ODataDemo.Product/Name"><ValueAnnotation
147
+ Term="Org.OData.Display.V1.DisplayName" String="Product Name" /></Annotations><Annotations
148
+ Target="ODataDemo.DemoService/Suppliers"><ValueAnnotation Term="Org.OData.Publication.V1.PublisherName"
149
+ String="Microsoft Corp." /><ValueAnnotation Term="Org.OData.Publication.V1.PublisherId"
150
+ String="MSFT" /><ValueAnnotation Term="Org.OData.Publication.V1.Keywords"
151
+ String="Inventory, Supplier, Advertisers, Sales, Finance" /><ValueAnnotation
152
+ Term="Org.OData.Publication.V1.AttributionUrl" String="http://www.odata.org/"
153
+ /><ValueAnnotation Term="Org.OData.Publication.V1.AttributionDescription"
154
+ String="All rights reserved" /><ValueAnnotation Term="Org.OData.Publication.V1.DocumentationUrl
155
+ " String="http://www.odata.org/" /><ValueAnnotation Term="Org.OData.Publication.V1.TermsOfUseUrl"
156
+ String="All rights reserved" /><ValueAnnotation Term="Org.OData.Publication.V1.PrivacyPolicyUrl"
157
+ String="http://www.odata.org/" /><ValueAnnotation Term="Org.OData.Publication.V1.LastModified"
158
+ String="4/2/2013" /><ValueAnnotation Term="Org.OData.Publication.V1.ImageUrl
159
+ " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx>
160
+ http_version: '1.1'
161
+ adapter_metadata:
162
+ effective_url: http://services.odata.org/OData/OData.svc/$metadata
163
+ recorded_at: Sat, 19 Jul 2014 02:59:52 GMT
164
+ - request:
165
+ method: get
166
+ uri: http://services.odata.org/OData/OData.svc/Products?$inlinecount=allpages&$top=5
167
+ body:
168
+ encoding: US-ASCII
169
+ string: ''
170
+ headers:
171
+ User-Agent:
172
+ - Typhoeus - https://github.com/typhoeus/typhoeus
173
+ response:
174
+ status:
175
+ code: 200
176
+ message: OK
177
+ headers:
178
+ Cache-Control:
179
+ - no-cache
180
+ Content-Length:
181
+ - '9279'
182
+ Content-Type:
183
+ - application/atom+xml;type=feed;charset=utf-8
184
+ Server:
185
+ - Microsoft-IIS/8.0
186
+ X-Content-Type-Options:
187
+ - nosniff
188
+ DataServiceVersion:
189
+ - 3.0;
190
+ X-AspNet-Version:
191
+ - 4.0.30319
192
+ X-Powered-By:
193
+ - ASP.NET
194
+ Access-Control-Allow-Origin:
195
+ - "*"
196
+ Access-Control-Allow-Methods:
197
+ - GET
198
+ Access-Control-Allow-Headers:
199
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
200
+ Access-Control-Expose-Headers:
201
+ - DataServiceVersion
202
+ Set-Cookie:
203
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
204
+ Date:
205
+ - Sat, 19 Jul 2014 02:59:51 GMT
206
+ body:
207
+ encoding: UTF-8
208
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/OData/OData.svc/"
209
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
210
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
211
+ xmlns:gml="http://www.opengis.net/gml"><m:count>11</m:count><id>http://services.odata.org/OData/OData.svc/Products</id><title
212
+ type="text">Products</title><updated>2014-07-19T02:59:52Z</updated><link rel="self"
213
+ title="Products" href="Products" /><entry><id>http://services.odata.org/OData/OData.svc/Products(0)</id><category
214
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
215
+ /><link rel="edit" title="Product" href="Products(0)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
216
+ type="application/atom+xml;type=feed" title="Categories" href="Products(0)/Categories"
217
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
218
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(0)/Supplier"
219
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
220
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(0)/ProductDetail"
221
+ /><title type="text">Bread</title><summary type="text">Whole grain bread</summary><updated>2014-07-19T02:59:52Z</updated><author><name
222
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
223
+ type="application/xml" title="Categories" href="Products(0)/$links/Categories"
224
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
225
+ type="application/xml" title="Supplier" href="Products(0)/$links/Supplier"
226
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
227
+ type="application/xml" title="ProductDetail" href="Products(0)/$links/ProductDetail"
228
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">0</d:ID><d:ReleaseDate
229
+ m:type="Edm.DateTime">1992-01-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
230
+ 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><entry><id>http://services.odata.org/OData/OData.svc/Products(1)</id><category
231
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
232
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
233
+ type="application/atom+xml;type=feed" title="Categories" href="Products(1)/Categories"
234
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
235
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(1)/Supplier"
236
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
237
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(1)/ProductDetail"
238
+ /><title type="text">Milk</title><summary type="text">Low fat milk</summary><updated>2014-07-19T02:59:52Z</updated><author><name
239
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
240
+ type="application/xml" title="Categories" href="Products(1)/$links/Categories"
241
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
242
+ type="application/xml" title="Supplier" href="Products(1)/$links/Supplier"
243
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
244
+ type="application/xml" title="ProductDetail" href="Products(1)/$links/ProductDetail"
245
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">1</d:ID><d:ReleaseDate
246
+ m:type="Edm.DateTime">1995-10-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
247
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">3.5</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(2)</id><category
248
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
249
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
250
+ type="application/atom+xml;type=feed" title="Categories" href="Products(2)/Categories"
251
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
252
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(2)/Supplier"
253
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
254
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(2)/ProductDetail"
255
+ /><title type="text">Vint soda</title><summary type="text">Americana Variety
256
+ - Mix of 6 flavors</summary><updated>2014-07-19T02:59:52Z</updated><author><name
257
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
258
+ type="application/xml" title="Categories" href="Products(2)/$links/Categories"
259
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
260
+ type="application/xml" title="Supplier" href="Products(2)/$links/Supplier"
261
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
262
+ type="application/xml" title="ProductDetail" href="Products(2)/$links/ProductDetail"
263
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">2</d:ID><d:ReleaseDate
264
+ m:type="Edm.DateTime">2000-10-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
265
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">20.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(3)</id><category
266
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
267
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
268
+ type="application/atom+xml;type=feed" title="Categories" href="Products(3)/Categories"
269
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
270
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(3)/Supplier"
271
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
272
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(3)/ProductDetail"
273
+ /><title type="text">Havina Cola</title><summary type="text">The Original
274
+ Key Lime Cola</summary><updated>2014-07-19T02:59:52Z</updated><author><name
275
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
276
+ type="application/xml" title="Categories" href="Products(3)/$links/Categories"
277
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
278
+ type="application/xml" title="Supplier" href="Products(3)/$links/Supplier"
279
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
280
+ type="application/xml" title="ProductDetail" href="Products(3)/$links/ProductDetail"
281
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">3</d:ID><d:ReleaseDate
282
+ m:type="Edm.DateTime">2005-10-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
283
+ m:type="Edm.DateTime">2006-10-01T00:00:00</d:DiscontinuedDate><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price
284
+ m:type="Edm.Double">19.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(4)</id><category
285
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
286
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
287
+ type="application/atom+xml;type=feed" title="Categories" href="Products(4)/Categories"
288
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
289
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(4)/Supplier"
290
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
291
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(4)/ProductDetail"
292
+ /><title type="text">Fruit Punch</title><summary type="text">Mango flavor,
293
+ 8.3 Ounce Cans (Pack of 24)</summary><updated>2014-07-19T02:59:52Z</updated><author><name
294
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
295
+ type="application/xml" title="Categories" href="Products(4)/$links/Categories"
296
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
297
+ type="application/xml" title="Supplier" href="Products(4)/$links/Supplier"
298
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
299
+ type="application/xml" title="ProductDetail" href="Products(4)/$links/ProductDetail"
300
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">4</d:ID><d:ReleaseDate
301
+ m:type="Edm.DateTime">2003-01-05T00:00:00</d:ReleaseDate><d:DiscontinuedDate
302
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">22.99</d:Price></m:properties></content></entry></feed>
303
+ http_version: '1.1'
304
+ adapter_metadata:
305
+ effective_url: http://services.odata.org/OData/OData.svc/Products?$inlinecount=allpages&$top=5
306
+ recorded_at: Sat, 19 Jul 2014 02:59:52 GMT
307
+ - request:
308
+ method: get
309
+ uri: http://services.odata.org/OData/OData.svc/Products?$inlinecount=allpages&$skip=5&$top=5
310
+ body:
311
+ encoding: US-ASCII
312
+ string: ''
313
+ headers:
314
+ User-Agent:
315
+ - Typhoeus - https://github.com/typhoeus/typhoeus
316
+ response:
317
+ status:
318
+ code: 200
319
+ message: OK
320
+ headers:
321
+ Cache-Control:
322
+ - no-cache
323
+ Content-Length:
324
+ - '9911'
325
+ Content-Type:
326
+ - application/atom+xml;type=feed;charset=utf-8
327
+ Server:
328
+ - Microsoft-IIS/8.0
329
+ X-Content-Type-Options:
330
+ - nosniff
331
+ DataServiceVersion:
332
+ - 3.0;
333
+ X-AspNet-Version:
334
+ - 4.0.30319
335
+ X-Powered-By:
336
+ - ASP.NET
337
+ Access-Control-Allow-Origin:
338
+ - "*"
339
+ Access-Control-Allow-Methods:
340
+ - GET
341
+ Access-Control-Allow-Headers:
342
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
343
+ Access-Control-Expose-Headers:
344
+ - DataServiceVersion
345
+ Set-Cookie:
346
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
347
+ Date:
348
+ - Sat, 19 Jul 2014 02:59:51 GMT
349
+ body:
350
+ encoding: UTF-8
351
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/OData/OData.svc/"
352
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
353
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
354
+ xmlns:gml="http://www.opengis.net/gml"><m:count>11</m:count><id>http://services.odata.org/OData/OData.svc/Products</id><title
355
+ type="text">Products</title><updated>2014-07-19T02:59:52Z</updated><link rel="self"
356
+ title="Products" href="Products" /><entry><id>http://services.odata.org/OData/OData.svc/Products(5)</id><category
357
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
358
+ /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
359
+ type="application/atom+xml;type=feed" title="Categories" href="Products(5)/Categories"
360
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
361
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(5)/Supplier"
362
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
363
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(5)/ProductDetail"
364
+ /><title type="text">Cranberry Juice</title><summary type="text">16-Ounce
365
+ Plastic Bottles (Pack of 12)</summary><updated>2014-07-19T02:59:52Z</updated><author><name
366
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
367
+ type="application/xml" title="Categories" href="Products(5)/$links/Categories"
368
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
369
+ type="application/xml" title="Supplier" href="Products(5)/$links/Supplier"
370
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
371
+ type="application/xml" title="ProductDetail" href="Products(5)/$links/ProductDetail"
372
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">5</d:ID><d:ReleaseDate
373
+ m:type="Edm.DateTime">2006-08-04T00:00:00</d:ReleaseDate><d:DiscontinuedDate
374
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">22.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(6)</id><category
375
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
376
+ /><link rel="edit" title="Product" href="Products(6)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
377
+ type="application/atom+xml;type=feed" title="Categories" href="Products(6)/Categories"
378
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
379
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(6)/Supplier"
380
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
381
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(6)/ProductDetail"
382
+ /><title type="text">Pink Lemonade</title><summary type="text">36 Ounce Cans
383
+ (Pack of 3)</summary><updated>2014-07-19T02:59:52Z</updated><author><name
384
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
385
+ type="application/xml" title="Categories" href="Products(6)/$links/Categories"
386
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
387
+ type="application/xml" title="Supplier" href="Products(6)/$links/Supplier"
388
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
389
+ type="application/xml" title="ProductDetail" href="Products(6)/$links/ProductDetail"
390
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">6</d:ID><d:ReleaseDate
391
+ m:type="Edm.DateTime">2006-11-05T00:00:00</d:ReleaseDate><d:DiscontinuedDate
392
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">18.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(7)</id><category
393
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
394
+ /><link rel="edit" title="Product" href="Products(7)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
395
+ type="application/atom+xml;type=feed" title="Categories" href="Products(7)/Categories"
396
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
397
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(7)/Supplier"
398
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
399
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(7)/ProductDetail"
400
+ /><title type="text">DVD Player</title><summary type="text">1080P Upconversion
401
+ DVD Player</summary><updated>2014-07-19T02:59:52Z</updated><author><name /></author><link
402
+ rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
403
+ type="application/xml" title="Categories" href="Products(7)/$links/Categories"
404
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
405
+ type="application/xml" title="Supplier" href="Products(7)/$links/Supplier"
406
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
407
+ type="application/xml" title="ProductDetail" href="Products(7)/$links/ProductDetail"
408
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">7</d:ID><d:ReleaseDate
409
+ m:type="Edm.DateTime">2006-11-15T00:00:00</d:ReleaseDate><d:DiscontinuedDate
410
+ m:null="true" /><d:Rating m:type="Edm.Int16">5</d:Rating><d:Price m:type="Edm.Double">35.88</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(8)</id><category
411
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
412
+ /><link rel="edit" title="Product" href="Products(8)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
413
+ type="application/atom+xml;type=feed" title="Categories" href="Products(8)/Categories"
414
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
415
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(8)/Supplier"
416
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
417
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(8)/ProductDetail"
418
+ /><title type="text">LCD HDTV</title><summary type="text">42 inch 1080p LCD
419
+ with Built-in Blu-ray Disc Player</summary><updated>2014-07-19T02:59:52Z</updated><author><name
420
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
421
+ type="application/xml" title="Categories" href="Products(8)/$links/Categories"
422
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
423
+ type="application/xml" title="Supplier" href="Products(8)/$links/Supplier"
424
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
425
+ type="application/xml" title="ProductDetail" href="Products(8)/$links/ProductDetail"
426
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">8</d:ID><d:ReleaseDate
427
+ m:type="Edm.DateTime">2008-05-08T00:00:00</d:ReleaseDate><d:DiscontinuedDate
428
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">1088.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(9)</id><category
429
+ term="ODataDemo.FeaturedProduct" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
430
+ /><link rel="edit" title="Product" href="Products(9)/ODataDemo.FeaturedProduct"
431
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
432
+ type="application/atom+xml;type=feed" title="Categories" href="Products(9)/ODataDemo.FeaturedProduct/Categories"
433
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
434
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(9)/ODataDemo.FeaturedProduct/Supplier"
435
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
436
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(9)/ODataDemo.FeaturedProduct/ProductDetail"
437
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Advertisement"
438
+ type="application/atom+xml;type=entry" title="Advertisement" href="Products(9)/ODataDemo.FeaturedProduct/Advertisement"
439
+ /><title type="text">Lemonade</title><summary type="text">Classic, refreshing
440
+ lemonade (Single bottle)</summary><updated>2014-07-19T02:59:52Z</updated><author><name
441
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
442
+ type="application/xml" title="Categories" href="Products(9)/ODataDemo.FeaturedProduct/$links/Categories"
443
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
444
+ type="application/xml" title="Supplier" href="Products(9)/ODataDemo.FeaturedProduct/$links/Supplier"
445
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
446
+ type="application/xml" title="ProductDetail" href="Products(9)/ODataDemo.FeaturedProduct/$links/ProductDetail"
447
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Advertisement"
448
+ type="application/xml" title="Advertisement" href="Products(9)/ODataDemo.FeaturedProduct/$links/Advertisement"
449
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">9</d:ID><d:ReleaseDate
450
+ m:type="Edm.DateTime">1970-01-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
451
+ m:null="true" /><d:Rating m:type="Edm.Int16">7</d:Rating><d:Price m:type="Edm.Double">1.01</d:Price></m:properties></content></entry></feed>
452
+ http_version: '1.1'
453
+ adapter_metadata:
454
+ effective_url: http://services.odata.org/OData/OData.svc/Products?$inlinecount=allpages&$skip=5&$top=5
455
+ recorded_at: Sat, 19 Jul 2014 02:59:52 GMT
456
+ - request:
457
+ method: get
458
+ uri: http://services.odata.org/OData/OData.svc/Products?$inlinecount=allpages&$skip=10&$top=5
459
+ body:
460
+ encoding: US-ASCII
461
+ string: ''
462
+ headers:
463
+ User-Agent:
464
+ - Typhoeus - https://github.com/typhoeus/typhoeus
465
+ response:
466
+ status:
467
+ code: 200
468
+ message: OK
469
+ headers:
470
+ Cache-Control:
471
+ - no-cache
472
+ Content-Length:
473
+ - '2920'
474
+ Content-Type:
475
+ - application/atom+xml;type=feed;charset=utf-8
476
+ Server:
477
+ - Microsoft-IIS/8.0
478
+ X-Content-Type-Options:
479
+ - nosniff
480
+ DataServiceVersion:
481
+ - 3.0;
482
+ X-AspNet-Version:
483
+ - 4.0.30319
484
+ X-Powered-By:
485
+ - ASP.NET
486
+ Access-Control-Allow-Origin:
487
+ - "*"
488
+ Access-Control-Allow-Methods:
489
+ - GET
490
+ Access-Control-Allow-Headers:
491
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
492
+ Access-Control-Expose-Headers:
493
+ - DataServiceVersion
494
+ Set-Cookie:
495
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
496
+ Date:
497
+ - Sat, 19 Jul 2014 02:59:52 GMT
498
+ body:
499
+ encoding: UTF-8
500
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/OData/OData.svc/"
501
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
502
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
503
+ xmlns:gml="http://www.opengis.net/gml"><m:count>11</m:count><id>http://services.odata.org/OData/OData.svc/Products</id><title
504
+ type="text">Products</title><updated>2014-07-19T02:59:52Z</updated><link rel="self"
505
+ title="Products" href="Products" /><entry><id>http://services.odata.org/OData/OData.svc/Products(10)</id><category
506
+ term="ODataDemo.FeaturedProduct" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
507
+ /><link rel="edit" title="Product" href="Products(10)/ODataDemo.FeaturedProduct"
508
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
509
+ type="application/atom+xml;type=feed" title="Categories" href="Products(10)/ODataDemo.FeaturedProduct/Categories"
510
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
511
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(10)/ODataDemo.FeaturedProduct/Supplier"
512
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
513
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(10)/ODataDemo.FeaturedProduct/ProductDetail"
514
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Advertisement"
515
+ type="application/atom+xml;type=entry" title="Advertisement" href="Products(10)/ODataDemo.FeaturedProduct/Advertisement"
516
+ /><title type="text">Coffee</title><summary type="text">Bulk size can of instant
517
+ coffee</summary><updated>2014-07-19T02:59:52Z</updated><author><name /></author><link
518
+ rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
519
+ type="application/xml" title="Categories" href="Products(10)/ODataDemo.FeaturedProduct/$links/Categories"
520
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
521
+ type="application/xml" title="Supplier" href="Products(10)/ODataDemo.FeaturedProduct/$links/Supplier"
522
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
523
+ type="application/xml" title="ProductDetail" href="Products(10)/ODataDemo.FeaturedProduct/$links/ProductDetail"
524
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Advertisement"
525
+ type="application/xml" title="Advertisement" href="Products(10)/ODataDemo.FeaturedProduct/$links/Advertisement"
526
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">10</d:ID><d:ReleaseDate
527
+ m:type="Edm.DateTime">1982-12-31T00:00:00</d:ReleaseDate><d:DiscontinuedDate
528
+ m:null="true" /><d:Rating m:type="Edm.Int16">1</d:Rating><d:Price m:type="Edm.Double">6.99</d:Price></m:properties></content></entry></feed>
529
+ http_version: '1.1'
530
+ adapter_metadata:
531
+ effective_url: http://services.odata.org/OData/OData.svc/Products?$inlinecount=allpages&$skip=10&$top=5
532
+ recorded_at: Sat, 19 Jul 2014 02:59:52 GMT
533
+ - request:
534
+ method: get
535
+ uri: http://services.odata.org/OData/OData.svc/Products/$count
536
+ body:
537
+ encoding: US-ASCII
538
+ string: ''
539
+ headers:
540
+ User-Agent:
541
+ - Typhoeus - https://github.com/typhoeus/typhoeus
542
+ response:
543
+ status:
544
+ code: 200
545
+ message: OK
546
+ headers:
547
+ Cache-Control:
548
+ - no-cache
549
+ Content-Length:
550
+ - '2'
551
+ Content-Type:
552
+ - text/plain;charset=utf-8
553
+ Server:
554
+ - Microsoft-IIS/8.0
555
+ X-Content-Type-Options:
556
+ - nosniff
557
+ DataServiceVersion:
558
+ - 2.0;
559
+ X-AspNet-Version:
560
+ - 4.0.30319
561
+ X-Powered-By:
562
+ - ASP.NET
563
+ Access-Control-Allow-Origin:
564
+ - "*"
565
+ Access-Control-Allow-Methods:
566
+ - GET
567
+ Access-Control-Allow-Headers:
568
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
569
+ Access-Control-Expose-Headers:
570
+ - DataServiceVersion
571
+ Set-Cookie:
572
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
573
+ Date:
574
+ - Sat, 19 Jul 2014 02:59:52 GMT
575
+ body:
576
+ encoding: UTF-8
577
+ string: '11'
578
+ http_version: '1.1'
579
+ adapter_metadata:
580
+ effective_url: http://services.odata.org/OData/OData.svc/Products/$count
581
+ recorded_at: Sat, 19 Jul 2014 02:59:52 GMT
582
+ - request:
583
+ method: get
584
+ uri: http://services.odata.org/OData/OData.svc/Products?$filter=Name%20eq%20'Bread'
585
+ body:
586
+ encoding: US-ASCII
587
+ string: ''
588
+ headers:
589
+ User-Agent:
590
+ - Typhoeus - https://github.com/typhoeus/typhoeus
591
+ response:
592
+ status:
593
+ code: 200
594
+ message: OK
595
+ headers:
596
+ Cache-Control:
597
+ - no-cache
598
+ Content-Length:
599
+ - '2266'
600
+ Content-Type:
601
+ - application/atom+xml;type=feed;charset=utf-8
602
+ Server:
603
+ - Microsoft-IIS/8.0
604
+ X-Content-Type-Options:
605
+ - nosniff
606
+ DataServiceVersion:
607
+ - 3.0;
608
+ X-AspNet-Version:
609
+ - 4.0.30319
610
+ X-Powered-By:
611
+ - ASP.NET
612
+ Access-Control-Allow-Origin:
613
+ - "*"
614
+ Access-Control-Allow-Methods:
615
+ - GET
616
+ Access-Control-Allow-Headers:
617
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
618
+ Access-Control-Expose-Headers:
619
+ - DataServiceVersion
620
+ Set-Cookie:
621
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
622
+ Date:
623
+ - Sat, 19 Jul 2014 02:59:52 GMT
624
+ body:
625
+ encoding: UTF-8
626
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/OData/OData.svc/"
627
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
628
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
629
+ xmlns:gml="http://www.opengis.net/gml"><id>http://services.odata.org/OData/OData.svc/Products</id><title
630
+ type="text">Products</title><updated>2014-07-19T02:59:52Z</updated><link rel="self"
631
+ title="Products" href="Products" /><entry><id>http://services.odata.org/OData/OData.svc/Products(0)</id><category
632
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
633
+ /><link rel="edit" title="Product" href="Products(0)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
634
+ type="application/atom+xml;type=feed" title="Categories" href="Products(0)/Categories"
635
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
636
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(0)/Supplier"
637
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
638
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(0)/ProductDetail"
639
+ /><title type="text">Bread</title><summary type="text">Whole grain bread</summary><updated>2014-07-19T02:59:52Z</updated><author><name
640
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
641
+ type="application/xml" title="Categories" href="Products(0)/$links/Categories"
642
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
643
+ type="application/xml" title="Supplier" href="Products(0)/$links/Supplier"
644
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
645
+ type="application/xml" title="ProductDetail" href="Products(0)/$links/ProductDetail"
646
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">0</d:ID><d:ReleaseDate
647
+ m:type="Edm.DateTime">1992-01-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
648
+ 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>
649
+ http_version: '1.1'
650
+ adapter_metadata:
651
+ effective_url: http://services.odata.org/OData/OData.svc/Products?$filter=Name%20eq%20'Bread'
652
+ recorded_at: Sat, 19 Jul 2014 02:59:52 GMT
653
+ - request:
654
+ method: get
655
+ uri: http://services.odata.org/OData/OData.svc/Products?$filter=Rating%20eq%203
656
+ body:
657
+ encoding: US-ASCII
658
+ string: ''
659
+ headers:
660
+ User-Agent:
661
+ - Typhoeus - https://github.com/typhoeus/typhoeus
662
+ response:
663
+ status:
664
+ code: 200
665
+ message: OK
666
+ headers:
667
+ Cache-Control:
668
+ - no-cache
669
+ Content-Length:
670
+ - '12786'
671
+ Content-Type:
672
+ - application/atom+xml;type=feed;charset=utf-8
673
+ Server:
674
+ - Microsoft-IIS/8.0
675
+ X-Content-Type-Options:
676
+ - nosniff
677
+ DataServiceVersion:
678
+ - 3.0;
679
+ X-AspNet-Version:
680
+ - 4.0.30319
681
+ X-Powered-By:
682
+ - ASP.NET
683
+ Access-Control-Allow-Origin:
684
+ - "*"
685
+ Access-Control-Allow-Methods:
686
+ - GET
687
+ Access-Control-Allow-Headers:
688
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
689
+ Access-Control-Expose-Headers:
690
+ - DataServiceVersion
691
+ Set-Cookie:
692
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
693
+ Date:
694
+ - Sat, 19 Jul 2014 02:59:52 GMT
695
+ body:
696
+ encoding: UTF-8
697
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/OData/OData.svc/"
698
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
699
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
700
+ xmlns:gml="http://www.opengis.net/gml"><id>http://services.odata.org/OData/OData.svc/Products</id><title
701
+ type="text">Products</title><updated>2014-07-19T02:59:53Z</updated><link rel="self"
702
+ title="Products" href="Products" /><entry><id>http://services.odata.org/OData/OData.svc/Products(1)</id><category
703
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
704
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
705
+ type="application/atom+xml;type=feed" title="Categories" href="Products(1)/Categories"
706
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
707
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(1)/Supplier"
708
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
709
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(1)/ProductDetail"
710
+ /><title type="text">Milk</title><summary type="text">Low fat milk</summary><updated>2014-07-19T02:59:53Z</updated><author><name
711
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
712
+ type="application/xml" title="Categories" href="Products(1)/$links/Categories"
713
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
714
+ type="application/xml" title="Supplier" href="Products(1)/$links/Supplier"
715
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
716
+ type="application/xml" title="ProductDetail" href="Products(1)/$links/ProductDetail"
717
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">1</d:ID><d:ReleaseDate
718
+ m:type="Edm.DateTime">1995-10-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
719
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">3.5</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(2)</id><category
720
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
721
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
722
+ type="application/atom+xml;type=feed" title="Categories" href="Products(2)/Categories"
723
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
724
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(2)/Supplier"
725
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
726
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(2)/ProductDetail"
727
+ /><title type="text">Vint soda</title><summary type="text">Americana Variety
728
+ - Mix of 6 flavors</summary><updated>2014-07-19T02:59:53Z</updated><author><name
729
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
730
+ type="application/xml" title="Categories" href="Products(2)/$links/Categories"
731
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
732
+ type="application/xml" title="Supplier" href="Products(2)/$links/Supplier"
733
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
734
+ type="application/xml" title="ProductDetail" href="Products(2)/$links/ProductDetail"
735
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">2</d:ID><d:ReleaseDate
736
+ m:type="Edm.DateTime">2000-10-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
737
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">20.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(3)</id><category
738
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
739
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
740
+ type="application/atom+xml;type=feed" title="Categories" href="Products(3)/Categories"
741
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
742
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(3)/Supplier"
743
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
744
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(3)/ProductDetail"
745
+ /><title type="text">Havina Cola</title><summary type="text">The Original
746
+ Key Lime Cola</summary><updated>2014-07-19T02:59:53Z</updated><author><name
747
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
748
+ type="application/xml" title="Categories" href="Products(3)/$links/Categories"
749
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
750
+ type="application/xml" title="Supplier" href="Products(3)/$links/Supplier"
751
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
752
+ type="application/xml" title="ProductDetail" href="Products(3)/$links/ProductDetail"
753
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">3</d:ID><d:ReleaseDate
754
+ m:type="Edm.DateTime">2005-10-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
755
+ m:type="Edm.DateTime">2006-10-01T00:00:00</d:DiscontinuedDate><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price
756
+ m:type="Edm.Double">19.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(4)</id><category
757
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
758
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
759
+ type="application/atom+xml;type=feed" title="Categories" href="Products(4)/Categories"
760
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
761
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(4)/Supplier"
762
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
763
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(4)/ProductDetail"
764
+ /><title type="text">Fruit Punch</title><summary type="text">Mango flavor,
765
+ 8.3 Ounce Cans (Pack of 24)</summary><updated>2014-07-19T02:59:53Z</updated><author><name
766
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
767
+ type="application/xml" title="Categories" href="Products(4)/$links/Categories"
768
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
769
+ type="application/xml" title="Supplier" href="Products(4)/$links/Supplier"
770
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
771
+ type="application/xml" title="ProductDetail" href="Products(4)/$links/ProductDetail"
772
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">4</d:ID><d:ReleaseDate
773
+ m:type="Edm.DateTime">2003-01-05T00:00:00</d:ReleaseDate><d:DiscontinuedDate
774
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">22.99</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(5)</id><category
775
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
776
+ /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
777
+ type="application/atom+xml;type=feed" title="Categories" href="Products(5)/Categories"
778
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
779
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(5)/Supplier"
780
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
781
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(5)/ProductDetail"
782
+ /><title type="text">Cranberry Juice</title><summary type="text">16-Ounce
783
+ Plastic Bottles (Pack of 12)</summary><updated>2014-07-19T02:59:53Z</updated><author><name
784
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
785
+ type="application/xml" title="Categories" href="Products(5)/$links/Categories"
786
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
787
+ type="application/xml" title="Supplier" href="Products(5)/$links/Supplier"
788
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
789
+ type="application/xml" title="ProductDetail" href="Products(5)/$links/ProductDetail"
790
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">5</d:ID><d:ReleaseDate
791
+ m:type="Edm.DateTime">2006-08-04T00:00:00</d:ReleaseDate><d:DiscontinuedDate
792
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">22.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(6)</id><category
793
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
794
+ /><link rel="edit" title="Product" href="Products(6)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
795
+ type="application/atom+xml;type=feed" title="Categories" href="Products(6)/Categories"
796
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
797
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(6)/Supplier"
798
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
799
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(6)/ProductDetail"
800
+ /><title type="text">Pink Lemonade</title><summary type="text">36 Ounce Cans
801
+ (Pack of 3)</summary><updated>2014-07-19T02:59:53Z</updated><author><name
802
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
803
+ type="application/xml" title="Categories" href="Products(6)/$links/Categories"
804
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
805
+ type="application/xml" title="Supplier" href="Products(6)/$links/Supplier"
806
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
807
+ type="application/xml" title="ProductDetail" href="Products(6)/$links/ProductDetail"
808
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">6</d:ID><d:ReleaseDate
809
+ m:type="Edm.DateTime">2006-11-05T00:00:00</d:ReleaseDate><d:DiscontinuedDate
810
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">18.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/OData/OData.svc/Products(8)</id><category
811
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
812
+ /><link rel="edit" title="Product" href="Products(8)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
813
+ type="application/atom+xml;type=feed" title="Categories" href="Products(8)/Categories"
814
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
815
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(8)/Supplier"
816
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
817
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(8)/ProductDetail"
818
+ /><title type="text">LCD HDTV</title><summary type="text">42 inch 1080p LCD
819
+ with Built-in Blu-ray Disc Player</summary><updated>2014-07-19T02:59:53Z</updated><author><name
820
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
821
+ type="application/xml" title="Categories" href="Products(8)/$links/Categories"
822
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
823
+ type="application/xml" title="Supplier" href="Products(8)/$links/Supplier"
824
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
825
+ type="application/xml" title="ProductDetail" href="Products(8)/$links/ProductDetail"
826
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">8</d:ID><d:ReleaseDate
827
+ m:type="Edm.DateTime">2008-05-08T00:00:00</d:ReleaseDate><d:DiscontinuedDate
828
+ m:null="true" /><d:Rating m:type="Edm.Int16">3</d:Rating><d:Price m:type="Edm.Double">1088.8</d:Price></m:properties></content></entry></feed>
829
+ http_version: '1.1'
830
+ adapter_metadata:
831
+ effective_url: http://services.odata.org/OData/OData.svc/Products?$filter=Rating%20eq%203
832
+ recorded_at: Sat, 19 Jul 2014 02:59:52 GMT
833
+ - request:
834
+ method: get
835
+ uri: http://services.odata.org/OData/OData.svc/Products(0)
836
+ body:
837
+ encoding: US-ASCII
838
+ string: ''
839
+ headers:
840
+ User-Agent:
841
+ - Typhoeus - https://github.com/typhoeus/typhoeus
842
+ response:
843
+ status:
844
+ code: 200
845
+ message: OK
846
+ headers:
847
+ Cache-Control:
848
+ - no-cache
849
+ Content-Length:
850
+ - '2068'
851
+ Content-Type:
852
+ - application/atom+xml;type=entry;charset=utf-8
853
+ Server:
854
+ - Microsoft-IIS/8.0
855
+ X-Content-Type-Options:
856
+ - nosniff
857
+ DataServiceVersion:
858
+ - 3.0;
859
+ X-AspNet-Version:
860
+ - 4.0.30319
861
+ X-Powered-By:
862
+ - ASP.NET
863
+ Access-Control-Allow-Origin:
864
+ - "*"
865
+ Access-Control-Allow-Methods:
866
+ - GET
867
+ Access-Control-Allow-Headers:
868
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
869
+ Access-Control-Expose-Headers:
870
+ - DataServiceVersion
871
+ Set-Cookie:
872
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
873
+ Date:
874
+ - Sat, 19 Jul 2014 02:59:52 GMT
875
+ body:
876
+ encoding: UTF-8
877
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://services.odata.org/OData/OData.svc/"
878
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
879
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
880
+ xmlns:gml="http://www.opengis.net/gml"><id>http://services.odata.org/OData/OData.svc/Products(0)</id><category
881
+ term="ODataDemo.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
882
+ /><link rel="edit" title="Product" href="Products(0)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Categories"
883
+ type="application/atom+xml;type=feed" title="Categories" href="Products(0)/Categories"
884
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"
885
+ type="application/atom+xml;type=entry" title="Supplier" href="Products(0)/Supplier"
886
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ProductDetail"
887
+ type="application/atom+xml;type=entry" title="ProductDetail" href="Products(0)/ProductDetail"
888
+ /><title type="text">Bread</title><summary type="text">Whole grain bread</summary><updated>2014-07-19T02:59:53Z</updated><author><name
889
+ /></author><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Categories"
890
+ type="application/xml" title="Categories" href="Products(0)/$links/Categories"
891
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/Supplier"
892
+ type="application/xml" title="Supplier" href="Products(0)/$links/Supplier"
893
+ /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ProductDetail"
894
+ type="application/xml" title="ProductDetail" href="Products(0)/$links/ProductDetail"
895
+ /><content type="application/xml"><m:properties><d:ID m:type="Edm.Int32">0</d:ID><d:ReleaseDate
896
+ m:type="Edm.DateTime">1992-01-01T00:00:00</d:ReleaseDate><d:DiscontinuedDate
897
+ 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>
898
+ http_version: '1.1'
899
+ adapter_metadata:
900
+ effective_url: http://services.odata.org/OData/OData.svc/Products(0)
901
+ recorded_at: Sat, 19 Jul 2014 02:59:53 GMT
902
+ - request:
903
+ method: get
904
+ uri: http://services.odata.org/OData/OData.svc/Products(99)
905
+ body:
906
+ encoding: US-ASCII
907
+ string: ''
908
+ headers:
909
+ User-Agent:
910
+ - Typhoeus - https://github.com/typhoeus/typhoeus
911
+ response:
912
+ status:
913
+ code: 404
914
+ message: Not Found
915
+ headers:
916
+ Cache-Control:
917
+ - no-cache
918
+ Content-Length:
919
+ - '226'
920
+ Content-Type:
921
+ - application/xml;charset=utf-8
922
+ Server:
923
+ - Microsoft-IIS/8.0
924
+ X-Content-Type-Options:
925
+ - nosniff
926
+ DataServiceVersion:
927
+ - 1.0;
928
+ X-AspNet-Version:
929
+ - 4.0.30319
930
+ X-Powered-By:
931
+ - ASP.NET
932
+ Access-Control-Allow-Origin:
933
+ - "*"
934
+ Access-Control-Allow-Methods:
935
+ - GET
936
+ Access-Control-Allow-Headers:
937
+ - Accept, Origin, Content-Type, MaxDataServiceVersion
938
+ Access-Control-Expose-Headers:
939
+ - DataServiceVersion
940
+ Set-Cookie:
941
+ - ARRAffinity=a9aad020fb0149d28d0efdb1e8bab24ad3481a904c8fb94abced8813c01ee265;Path=/;Domain=services.odata.org
942
+ Date:
943
+ - Sat, 19 Jul 2014 02:59:53 GMT
944
+ body:
945
+ encoding: UTF-8
946
+ string: <?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code
947
+ /><m:message xml:lang="en-US">Resource not found for the segment 'Products'.</m:message></m:error>
948
+ http_version: '1.1'
949
+ adapter_metadata:
950
+ effective_url: http://services.odata.org/OData/OData.svc/Products(99)
951
+ recorded_at: Sat, 19 Jul 2014 02:59:53 GMT
952
+ recorded_with: VCR 2.9.2