From 971462dec31382163604899b77320d8126bb91b7 Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Wed, 19 Mar 2025 20:32:34 -0400 Subject: [PATCH 01/14] Run against latest Ruby 2.6. --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 8bbe6cf..a04abec 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.2 +2.6.10 From bf4b1788ca5fc7a33f7ce4f1ebdfd152b81bb4eb Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Wed, 19 Mar 2025 20:36:17 -0400 Subject: [PATCH 02/14] Adjust Decimal values to match old BigDecimal behavior from specs. --- lib/frodata/properties/decimal.rb | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/lib/frodata/properties/decimal.rb b/lib/frodata/properties/decimal.rb index bdbc1d9..87d974e 100644 --- a/lib/frodata/properties/decimal.rb +++ b/lib/frodata/properties/decimal.rb @@ -5,7 +5,7 @@ class Decimal < FrOData::Property # Returns the property value, properly typecast # @return [BigDecimal,nil] def value - if (@value.nil? || @value.empty?) && (strict? && allows_nil?) + if (@value.nil? || (@value.respond_to?(:empty?) && @value.empty?)) && (strict? && allows_nil?) nil else BigDecimal(@value) @@ -15,8 +15,9 @@ def value # Sets the property value # @params new_value something BigDecimal() can parse def value=(new_value) - validate(BigDecimal(new_value.to_s)) - @value = new_value.to_s + cleaned_value = clean_value(new_value) + validate(BigDecimal(cleaned_value)) + @value = cleaned_value end # The FrOData type name @@ -32,6 +33,17 @@ def url_value private + # Single pass cleaning a value to make it into a number based on the + # specs in decimal_spec.rb. + def clean_value(value) + BigDecimal(value) # Trigger any underlying exceptions. + value + rescue ArgumentError + clean_value = value.to_s.sub(/[^.[:digit:]].*/, "") + clean_value = "0" if clean_value.bytesize == 0 + clean_value + end + def validate(value) if value > max_value || value < min_value || value.precs.first > 29 validation_error "Value is outside accepted range: #{min_value} to #{max_value}, or has more than 29 significant digits" From 35c448d8c56b38c72c42b5ba28bd08cf36f1c080 Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Thu, 20 Mar 2025 11:22:52 -0400 Subject: [PATCH 03/14] Ruby 3.0. --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index a04abec..75a22a2 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.6.10 +3.0.3 From 4af9207b789f8e920b3e34d172fc06542c3b1c73 Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Thu, 20 Mar 2025 11:23:56 -0400 Subject: [PATCH 04/14] Float is not instantiable and only Double maps to Edm.Double. --- lib/frodata/properties/float.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/frodata/properties/float.rb b/lib/frodata/properties/float.rb index 731e977..108a92b 100644 --- a/lib/frodata/properties/float.rb +++ b/lib/frodata/properties/float.rb @@ -21,11 +21,6 @@ def value=(new_value) @value = new_value.to_f.to_s end - # The FrOData type name - def type - 'Edm.Double' - end - private def min_value @@ -38,7 +33,12 @@ def max_value end # Defines the Double (Float) FrOData type. - class Double < FrOData::Properties::Float; end + class Double < FrOData::Properties::Float + # The FrOData type name + def type + 'Edm.Double' + end + end # Defines the Single (Float) FrOData type. class Single < FrOData::Properties::Float From e9e157ea6dfa378cb2cca362b5201648527c7a36 Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Thu, 20 Mar 2025 13:01:08 -0400 Subject: [PATCH 05/14] Use Latest Ruby 3.2 in development. --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 75a22a2..406ebcb 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.0.3 +3.2.7 From 94c53abc545d99aad73df81050365ea8675a8b4c Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Thu, 20 Mar 2025 13:01:29 -0400 Subject: [PATCH 06/14] Use latest bundler and rake for modern Ruby support. --- frodata.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frodata.gemspec b/frodata.gemspec index 6b26858..8a34eb0 100644 --- a/frodata.gemspec +++ b/frodata.gemspec @@ -24,8 +24,8 @@ Gem::Specification.new do |spec| spec.add_dependency 'faraday', '~> 0.15' spec.add_dependency 'andand', '~> 1.3' - spec.add_development_dependency 'bundler', '~> 1.6' - spec.add_development_dependency 'rake', '~> 0' + spec.add_development_dependency 'bundler', '>= 2.6' + spec.add_development_dependency 'rake', '>= 13.2' spec.add_development_dependency 'simplecov', '~> 0.15' spec.add_development_dependency 'rspec', '~> 3.7' spec.add_development_dependency 'rspec-autotest', '~> 1.0' From f649dae29f244152124f27a13445882a66bf5abc Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Thu, 20 Mar 2025 13:11:00 -0400 Subject: [PATCH 07/14] Use latest Ruby 3.4 for development. --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 406ebcb..4d9d11c 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.7 +3.4.2 From 5d2c82eb634093dc8c52a2a926a42a31a7d42512 Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Thu, 20 Mar 2025 13:11:35 -0400 Subject: [PATCH 08/14] Add deps for bigdecimal and base64 which are now distributed as gems. --- frodata.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frodata.gemspec b/frodata.gemspec index 8a34eb0..a41652b 100644 --- a/frodata.gemspec +++ b/frodata.gemspec @@ -23,6 +23,8 @@ Gem::Specification.new do |spec| spec.add_dependency 'nokogiri', '~> 1.8' spec.add_dependency 'faraday', '~> 0.15' spec.add_dependency 'andand', '~> 1.3' + spec.add_dependency 'bigdecimal' + spec.add_dependency 'base64' spec.add_development_dependency 'bundler', '>= 2.6' spec.add_development_dependency 'rake', '>= 13.2' From 82e5a73fe19227e8b2a79a8c4c419623f91a0594 Mon Sep 17 00:00:00 2001 From: Elijah Miller Date: Thu, 20 Mar 2025 14:46:05 -0400 Subject: [PATCH 09/14] Fix issue with vcr url encoding by updating to new url and rerecording. --- README.md | 20 +- spec/fixtures/files/entity_to_xml.xml | 2 +- spec/fixtures/files/error.xml | 2 +- spec/fixtures/files/product_0.json | 2 +- spec/fixtures/files/product_0.xml | 4 +- spec/fixtures/files/products.json | 2 +- spec/fixtures/files/products.xml | 26 +- spec/fixtures/files/supplier_0.json | 2 +- spec/fixtures/files/supplier_0.xml | 4 +- .../vcr_cassettes/entity_set_specs.yml | 1680 +++-------------- .../entity_set_specs/bad_entry.yml | 183 -- .../entity_set_specs/existing_entry.yml | 256 --- .../entity_set_specs/new_entry.yml | 185 -- spec/fixtures/vcr_cassettes/entity_specs.yml | 236 ++- .../navigation_property_proxy_specs.yml | 310 ++- .../vcr_cassettes/query/result_specs.yml | 189 -- spec/fixtures/vcr_cassettes/query_specs.yml | 1226 +++--------- .../schema/complex_type_specs.yml | 54 +- .../vcr_cassettes/service/request_specs.yml | 188 +- .../vcr_cassettes/service_registry_specs.yml | 54 +- spec/fixtures/vcr_cassettes/service_specs.yml | 60 +- .../vcr_cassettes/usage_example_specs.yml | 1221 ++++-------- spec/frodata/entity/shared_examples.rb | 4 +- spec/frodata/entity_container_spec.rb | 2 +- spec/frodata/entity_set_spec.rb | 2 +- spec/frodata/entity_spec.rb | 2 +- .../frodata/navigation_property/proxy_spec.rb | 2 +- spec/frodata/property_spec.rb | 2 +- spec/frodata/query_spec.rb | 2 +- spec/frodata/schema/complex_type_spec.rb | 2 +- spec/frodata/schema/enum_type_spec.rb | 2 +- spec/frodata/schema_spec.rb | 2 +- spec/frodata/service/request_spec.rb | 4 +- spec/frodata/service/response_spec.rb | 2 +- spec/frodata/service_registry_spec.rb | 4 +- spec/frodata/service_spec.rb | 2 +- spec/frodata/usage_example_spec.rb | 2 +- 37 files changed, 1322 insertions(+), 4620 deletions(-) delete mode 100644 spec/fixtures/vcr_cassettes/entity_set_specs/bad_entry.yml delete mode 100644 spec/fixtures/vcr_cassettes/entity_set_specs/existing_entry.yml delete mode 100644 spec/fixtures/vcr_cassettes/entity_set_specs/new_entry.yml delete mode 100644 spec/fixtures/vcr_cassettes/query/result_specs.yml diff --git a/README.md b/README.md index 3804c1a..e778df0 100644 --- a/README.md +++ b/README.md @@ -44,14 +44,14 @@ The nice thing about `FrOData::Service` is that it automatically registers with To create an `FrOData::Service` simply provide the location of a service endpoint to it like this: ```ruby - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc') + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc') ``` You may also provide an options hash after the URL. It is suggested that you supply a name for the service via this hash like so: ```ruby - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') ``` For more information regarding available options and how to configure a service instance, refer to [Service Configuration](#service-configuration) below. @@ -63,7 +63,7 @@ Both of these methods are available on instances and will allow for lookup in th Using either the service URL or the name provided as an option when creating an `FrOData::Service` will allow for quick lookup in the `FrOData::ServiceRegistry` like such: ```ruby - FrOData::ServiceRegistry['http://services.odata.org/V4/OData/OData.svc'] + FrOData::ServiceRegistry['https://services.odata.org/V4/OData/OData.svc'] FrOData::ServiceRegistry['ODataDemo'] ``` @@ -80,7 +80,7 @@ You can speed your load time by forcing the service to load the metadata from a This is only recommended for testing purposes, as the metadata file can change. ```ruby - service = FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', { + service = FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', { name: 'ODataDemo', metadata_file: "metadata.xml", }) @@ -97,7 +97,7 @@ You can customize request headers with the **:connection** option key. This allows you to e.g. set custom headers (such as `Authorization`) that may be required by your service. ```ruby - service = FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', { + service = FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', { name: 'ODataDemo', connection: { headers: { @@ -115,7 +115,7 @@ This allows you to make use of Faraday's [authentication helpers][faraday-auth], For instance, if your service requires HTTP basic authentication: ```ruby - service = FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', { + service = FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', { name: 'ODataDemo' }) do |conn| conn.basic_auth('username', 'password') @@ -139,7 +139,7 @@ If you already have a `Faraday::Connection` instance that you want the service t In this case, you'll be setting the service URL on the connection object, as shown below: ```ruby - conn = Faraday.new('http://services.odata.org/V4/OData/OData.svc') do |conn| + conn = Faraday.new('https://services.odata.org/V4/OData/OData.svc') do |conn| # ... customize connection ... end @@ -154,7 +154,7 @@ Alternatively, the connection object is also `yield`ed by the constructor, so yo For instance, if you wanted to use [Typhoeus][typhoeus] as your HTTP library: ```ruby - service = FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', { + service = FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', { name: 'ODataDemo' }) do |conn| conn.adapter :typhoeus @@ -226,7 +226,7 @@ Under normal circumstances you should never need to worry about an `FrOData::Ent For example, to get an `FrOData::EntitySet` for the products in the ODataDemo service simply access the entity set through the service like this: ```ruby - service = FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc') + service = FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc') products = service['ProductsSet'] # => FrOData::EntitySet ``` @@ -352,7 +352,7 @@ Simply add `strict: false` to the service constructor options. In this mode, any property validation error will log a warning instead of raising an exception. The corresponding property value will be `nil` (even if the property is declared as not allowing NULL values). ```ruby - service = FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', strict: false) + service = FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', strict: false) # -- alternatively, for an existing service instance -- service.options[:strict] = false ``` diff --git a/spec/fixtures/files/entity_to_xml.xml b/spec/fixtures/files/entity_to_xml.xml index 49444ac..85d2259 100644 --- a/spec/fixtures/files/entity_to_xml.xml +++ b/spec/fixtures/files/entity_to_xml.xml @@ -1,5 +1,5 @@ - + diff --git a/spec/fixtures/files/error.xml b/spec/fixtures/files/error.xml index dd4a13b..2b86c62 100644 --- a/spec/fixtures/files/error.xml +++ b/spec/fixtures/files/error.xml @@ -1,5 +1,5 @@ - + Resource not found for the segment 'Products'. diff --git a/spec/fixtures/files/product_0.json b/spec/fixtures/files/product_0.json index d502b4e..cc68408 100644 --- a/spec/fixtures/files/product_0.json +++ b/spec/fixtures/files/product_0.json @@ -1,5 +1,5 @@ { - "@odata.context": "http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity", + "@odata.context": "https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity", "ID": 0, "Name": "Bread", "Description": "Whole grain bread", diff --git a/spec/fixtures/files/product_0.xml b/spec/fixtures/files/product_0.xml index 519fab1..9c25038 100644 --- a/spec/fixtures/files/product_0.xml +++ b/spec/fixtures/files/product_0.xml @@ -1,6 +1,6 @@ - - http://services.odata.org/V4/OData/OData.svc/Products(0) + + https://services.odata.org/V4/OData/OData.svc/Products(0) diff --git a/spec/fixtures/files/products.json b/spec/fixtures/files/products.json index c30e271..76c7d34 100644 --- a/spec/fixtures/files/products.json +++ b/spec/fixtures/files/products.json @@ -1,5 +1,5 @@ { - "@odata.context": "http://services.odata.org/V4/OData/OData.svc/$metadata#Products", + "@odata.context": "https://services.odata.org/V4/OData/OData.svc/$metadata#Products", "value": [ { "ID": 0, diff --git a/spec/fixtures/files/products.xml b/spec/fixtures/files/products.xml index 2ea8ecf..0940330 100644 --- a/spec/fixtures/files/products.xml +++ b/spec/fixtures/files/products.xml @@ -1,11 +1,11 @@ - - http://services.odata.org/V4/OData/OData.svc/Products + + https://services.odata.org/V4/OData/OData.svc/Products Products 2017-12-07T23:31:33Z - http://services.odata.org/V4/OData/OData.svc/Products(0) + https://services.odata.org/V4/OData/OData.svc/Products(0) @@ -32,7 +32,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(1) + https://services.odata.org/V4/OData/OData.svc/Products(1) @@ -59,7 +59,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(2) + https://services.odata.org/V4/OData/OData.svc/Products(2) @@ -86,7 +86,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(3) + https://services.odata.org/V4/OData/OData.svc/Products(3) @@ -113,7 +113,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(4) + https://services.odata.org/V4/OData/OData.svc/Products(4) @@ -140,7 +140,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(5) + https://services.odata.org/V4/OData/OData.svc/Products(5) @@ -167,7 +167,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(6) + https://services.odata.org/V4/OData/OData.svc/Products(6) @@ -194,7 +194,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(7) + https://services.odata.org/V4/OData/OData.svc/Products(7) @@ -221,7 +221,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(8) + https://services.odata.org/V4/OData/OData.svc/Products(8) @@ -248,7 +248,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(9) + https://services.odata.org/V4/OData/OData.svc/Products(9) @@ -277,7 +277,7 @@ - http://services.odata.org/V4/OData/OData.svc/Products(10) + https://services.odata.org/V4/OData/OData.svc/Products(10) diff --git a/spec/fixtures/files/supplier_0.json b/spec/fixtures/files/supplier_0.json index 3e46786..04d8da6 100644 --- a/spec/fixtures/files/supplier_0.json +++ b/spec/fixtures/files/supplier_0.json @@ -1,5 +1,5 @@ { - "@odata.context": "http://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity", + "@odata.context": "https://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity", "ID": 0, "Name": "Exotic Liquids", "Address": { diff --git a/spec/fixtures/files/supplier_0.xml b/spec/fixtures/files/supplier_0.xml index f37e19e..2fbb724 100644 --- a/spec/fixtures/files/supplier_0.xml +++ b/spec/fixtures/files/supplier_0.xml @@ -1,6 +1,6 @@ - - http://services.odata.org/V4/OData/OData.svc/Suppliers(0) + + https://services.odata.org/V4/OData/OData.svc/Suppliers(0) diff --git a/spec/fixtures/vcr_cassettes/entity_set_specs.yml b/spec/fixtures/vcr_cassettes/entity_set_specs.yml index c3b82b0..627d43a 100644 --- a/spec/fixtures/vcr_cassettes/entity_set_specs.yml +++ b/spec/fixtures/vcr_cassettes/entity_set_specs.yml @@ -2,507 +2,48 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$skip=10&$top=10 + uri: https://services.odata.org/V4/OData/OData.svc/$metadata body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - Accept: - - application/atom+xml - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '2774' - Content-Type: - - application/atom+xml;type=feed;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:07:54 GMT - body: - encoding: UTF-8 - string: http://services.odata.org/V4/OData/OData.svc/ProductsProducts2017-11-29T01:07:57Zhttp://services.odata.org/V4/OData/OData.svc/Products(10)<updated>2017-11-29T01:07:57Z</updated><author><name /></author><content - type="application/xml"><m:properties><d:ID m:type="Int32">10</d:ID><d:Name>Coffee</d:Name><d:Description>Bulk - size can of instant coffee</d:Description><d:ReleaseDate m:type="DateTimeOffset">1982-12-31T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">1</d:Rating><d:Price m:type="Double">6.99</d:Price></m:properties></content></entry></feed> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$skip=10&$top=10 - recorded_at: Wed, 29 Nov 2017 01:07:57 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$skip=20&$top=10 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - Accept: - - application/atom+xml - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '622' - Content-Type: - - application/atom+xml;type=feed;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:07:54 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/V4/OData/OData.svc/" - xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://docs.oasis-open.org/odata/ns/data" - xmlns:m="http://docs.oasis-open.org/odata/ns/metadata" xmlns:georss="http://www.georss.org/georss" - xmlns:gml="http://www.opengis.net/gml" m:context="http://services.odata.org/V4/OData/OData.svc/$metadata#Products"><id>http://services.odata.org/V4/OData/OData.svc/Products</id><title - type="text">Products2017-11-29T01:07:57Z - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$skip=20&$top=10 - recorded_at: Wed, 29 Nov 2017 01:07:57 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - text/plain response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '2' - Content-Type: - - text/plain;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: + content-length: + - '6742' + connection: + - close + content-type: + - application/xml;charset=utf-8 + date: + - Thu, 20 Mar 2025 17:53:03 GMT + server: + - Microsoft-IIS/10.0 + access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:44:56 GMT - body: - encoding: UTF-8 - string: '11' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products/$count - recorded_at: Wed, 29 Nov 2017 01:44:57 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$top=10 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '17238' - Content-Type: - - application/atom+xml;type=feed;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: + access-control-allow-methods: - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:44:57 GMT - body: - encoding: UTF-8 - string: http://services.odata.org/V4/OData/OData.svc/ProductsProducts2017-11-29T01:44:57Zhttp://services.odata.org/V4/OData/OData.svc/Products(0)<updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">0</d:ID><d:Name>Bread</d:Name><d:Description>Whole - grain bread</d:Description><d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">4</d:Rating><d:Price m:type="Double">2.5</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(1)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(1)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(1)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(1)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(1)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(1)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(1)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">1</d:ID><d:Name>Milk</d:Name><d:Description>Low - fat milk</d:Description><d:ReleaseDate m:type="DateTimeOffset">1995-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">3.5</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(2)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(2)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(2)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(2)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(2)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(2)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(2)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">2</d:ID><d:Name>Vint - soda</d:Name><d:Description>Americana Variety - Mix of 6 flavors</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2000-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">20.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(3)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(3)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(3)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(3)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(3)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(3)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(3)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">3</d:ID><d:Name>Havina - Cola</d:Name><d:Description>The Original Key Lime Cola</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2005-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:type="DateTimeOffset">2006-10-01T00:00:00Z</d:DiscontinuedDate><d:Rating - m:type="Int16">3</d:Rating><d:Price m:type="Double">19.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(4)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(4)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(4)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(4)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(4)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(4)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(4)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">4</d:ID><d:Name>Fruit - Punch</d:Name><d:Description>Mango flavor, 8.3 Ounce Cans (Pack of 24)</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2003-01-05T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">22.99</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(5)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(5)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(5)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(5)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(5)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(5)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(5)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">5</d:ID><d:Name>Cranberry - Juice</d:Name><d:Description>16-Ounce Plastic Bottles (Pack of 12)</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2006-08-04T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">22.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(6)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(6)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(6)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(6)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(6)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(6)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(6)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(6)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">6</d:ID><d:Name>Pink - Lemonade</d:Name><d:Description>36 Ounce Cans (Pack of 3)</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2006-11-05T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">18.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(7)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(7)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(7)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(7)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(7)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(7)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(7)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(7)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">7</d:ID><d:Name>DVD - Player</d:Name><d:Description>1080P Upconversion DVD Player</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2006-11-15T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">5</d:Rating><d:Price m:type="Double">35.88</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(8)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(8)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(8)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(8)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(8)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(8)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(8)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(8)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">8</d:ID><d:Name>LCD - HDTV</d:Name><d:Description>42 inch 1080p LCD with Built-in Blu-ray Disc Player</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2008-05-08T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">1088.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(9)</id><category - term="#ODataDemo.FeaturedProduct" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(9)/ODataDemo.FeaturedProduct" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(9)/ODataDemo.FeaturedProduct/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(9)/ODataDemo.FeaturedProduct/Categories" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" - title="Supplier" href="Products(9)/ODataDemo.FeaturedProduct/Supplier/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(9)/ODataDemo.FeaturedProduct/Supplier" /><link - rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" - title="ProductDetail" href="Products(9)/ODataDemo.FeaturedProduct/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(9)/ODataDemo.FeaturedProduct/ProductDetail" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Advertisement" - type="application/xml" title="Advertisement" href="Products(9)/ODataDemo.FeaturedProduct/Advertisement/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Advertisement" type="application/atom+xml;type=entry" - title="Advertisement" href="Products(9)/ODataDemo.FeaturedProduct/Advertisement" - /><title /><updated>2017-11-29T01:44:57Z</updated><author><name /></author><content - type="application/xml"><m:properties><d:ID m:type="Int32">9</d:ID><d:Name>Lemonade</d:Name><d:Description>Classic, - refreshing lemonade (Single bottle)</d:Description><d:ReleaseDate m:type="DateTimeOffset">1970-01-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">7</d:Rating><d:Price m:type="Double">1.01</d:Price></m:properties></content></entry></feed> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$top=10 - recorded_at: Wed, 29 Nov 2017 01:44:58 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0) - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '1986' - Content-Type: - - application/atom+xml;type=entry;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: + access-control-allow-origin: - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: + access-control-expose-headers: - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:44:57 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://services.odata.org/V4/OData/OData.svc/" - xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://docs.oasis-open.org/odata/ns/data" - xmlns:m="http://docs.oasis-open.org/odata/ns/metadata" xmlns:georss="http://www.georss.org/georss" - xmlns:gml="http://www.opengis.net/gml" m:context="http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity"><id>http://services.odata.org/V4/OData/OData.svc/Products(0)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(0)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(0)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(0)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(0)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(0)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(0)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(0)/ProductDetail" /><title /><updated>2017-11-29T01:44:57Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">0</d:ID><d:Name>Bread</d:Name><d:Description>Whole - grain bread</d:Description><d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">4</d:Rating><d:Price m:type="Double">2.5</d:Price></m:properties></content></entry> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0) - recorded_at: Wed, 29 Nov 2017 01:44:58 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: + cache-control: - no-cache - Content-Length: - - '6742' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:44:57 GMT body: encoding: UTF-8 string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema @@ -581,800 +122,108 @@ http_interactions: String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Wed, 29 Nov 2017 01:44:58 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(99) - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml - response: - status: - code: 404 - message: Not Found - headers: - Cache-Control: - - no-cache - Content-Length: - - '191' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - '4.0' - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:44:57 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://docs.oasis-open.org/odata/ns/metadata"><m:code - /><m:message>Resource not found for the segment 'Products'.</m:message></m:error> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(99) - recorded_at: Wed, 29 Nov 2017 01:44:58 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$top=1 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '2179' - Content-Type: - - application/atom+xml;type=feed;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Thu, 07 Dec 2017 21:23:22 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/V4/OData/OData.svc/" - xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://docs.oasis-open.org/odata/ns/data" - xmlns:m="http://docs.oasis-open.org/odata/ns/metadata" xmlns:georss="http://www.georss.org/georss" - xmlns:gml="http://www.opengis.net/gml" m:context="http://services.odata.org/V4/OData/OData.svc/$metadata#Products"><id>http://services.odata.org/V4/OData/OData.svc/Products</id><title - type="text">Products2017-12-07T21:23:22Zhttp://services.odata.org/V4/OData/OData.svc/Products(0)<updated>2017-12-07T21:23:22Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">0</d:ID><d:Name>Bread</d:Name><d:Description>Whole - grain bread</d:Description><d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">4</d:Rating><d:Price m:type="Double">2.5</d:Price></m:properties></content></entry></feed> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$top=1 - recorded_at: Thu, 07 Dec 2017 21:23:23 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:04 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '8622' - Content-Type: - - application/atom+xml;type=feed;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Thu, 07 Dec 2017 21:28:35 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/V4/OData/OData.svc/" - xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://docs.oasis-open.org/odata/ns/data" - xmlns:m="http://docs.oasis-open.org/odata/ns/metadata" xmlns:georss="http://www.georss.org/georss" - xmlns:gml="http://www.opengis.net/gml" m:context="http://services.odata.org/V4/OData/OData.svc/$metadata#Products"><id>http://services.odata.org/V4/OData/OData.svc/Products</id><title - type="text">Products2017-12-07T21:28:34Zhttp://services.odata.org/V4/OData/OData.svc/Products(0)<updated>2017-12-07T21:28:34Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">0</d:ID><d:Name>Bread</d:Name><d:Description>Whole - grain bread</d:Description><d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">4</d:Rating><d:Price m:type="Double">2.5</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(1)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(1)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(1)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(1)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(1)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(1)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(1)/ProductDetail" /><title /><updated>2017-12-07T21:28:34Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">1</d:ID><d:Name>Milk</d:Name><d:Description>Low - fat milk</d:Description><d:ReleaseDate m:type="DateTimeOffset">1995-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">3.5</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(2)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(2)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(2)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(2)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(2)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(2)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(2)/ProductDetail" /><title /><updated>2017-12-07T21:28:34Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">2</d:ID><d:Name>Vint - soda</d:Name><d:Description>Americana Variety - Mix of 6 flavors</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2000-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">20.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(3)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(3)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(3)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(3)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(3)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(3)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(3)/ProductDetail" /><title /><updated>2017-12-07T21:28:34Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">3</d:ID><d:Name>Havina - Cola</d:Name><d:Description>The Original Key Lime Cola</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2005-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:type="DateTimeOffset">2006-10-01T00:00:00Z</d:DiscontinuedDate><d:Rating - m:type="Int16">3</d:Rating><d:Price m:type="Double">19.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(4)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(4)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(4)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(4)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(4)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(4)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(4)/ProductDetail" /><title /><updated>2017-12-07T21:28:34Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">4</d:ID><d:Name>Fruit - Punch</d:Name><d:Description>Mango flavor, 8.3 Ounce Cans (Pack of 24)</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2003-01-05T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">22.99</d:Price></m:properties></content></entry></feed> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$top=5 - recorded_at: Thu, 07 Dec 2017 21:28:34 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '19415' - Content-Type: - - application/atom+xml;type=feed;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Thu, 07 Dec 2017 21:54:53 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/V4/OData/OData.svc/" - xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://docs.oasis-open.org/odata/ns/data" - xmlns:m="http://docs.oasis-open.org/odata/ns/metadata" xmlns:georss="http://www.georss.org/georss" - xmlns:gml="http://www.opengis.net/gml" m:context="http://services.odata.org/V4/OData/OData.svc/$metadata#Products"><id>http://services.odata.org/V4/OData/OData.svc/Products</id><title - type="text">Products2017-12-07T21:54:51Zhttp://services.odata.org/V4/OData/OData.svc/Products(0)<updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">0</d:ID><d:Name>Bread</d:Name><d:Description>Whole - grain bread</d:Description><d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">4</d:Rating><d:Price m:type="Double">2.5</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(1)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(1)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(1)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(1)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(1)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(1)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(1)/ProductDetail" /><title /><updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">1</d:ID><d:Name>Milk</d:Name><d:Description>Low - fat milk</d:Description><d:ReleaseDate m:type="DateTimeOffset">1995-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">3.5</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(2)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(2)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(2)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(2)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(2)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(2)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(2)/ProductDetail" /><title /><updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">2</d:ID><d:Name>Vint - soda</d:Name><d:Description>Americana Variety - Mix of 6 flavors</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2000-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">20.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(3)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(3)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(3)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(3)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(3)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(3)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(3)/ProductDetail" /><title /><updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">3</d:ID><d:Name>Havina - Cola</d:Name><d:Description>The Original Key Lime Cola</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2005-10-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:type="DateTimeOffset">2006-10-01T00:00:00Z</d:DiscontinuedDate><d:Rating - m:type="Int16">3</d:Rating><d:Price m:type="Double">19.9</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(4)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(4)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(4)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(4)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(4)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(4)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(4)/ProductDetail" /><title /><updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">4</d:ID><d:Name>Fruit - Punch</d:Name><d:Description>Mango flavor, 8.3 Ounce Cans (Pack of 24)</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2003-01-05T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">22.99</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(5)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(5)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(5)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(5)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(5)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(5)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(5)/ProductDetail" /><title /><updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">5</d:ID><d:Name>Cranberry - Juice</d:Name><d:Description>16-Ounce Plastic Bottles (Pack of 12)</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2006-08-04T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">22.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(6)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(6)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(6)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(6)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(6)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(6)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(6)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(6)/ProductDetail" /><title /><updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">6</d:ID><d:Name>Pink - Lemonade</d:Name><d:Description>36 Ounce Cans (Pack of 3)</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2006-11-05T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">18.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(7)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(7)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(7)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(7)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(7)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(7)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(7)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(7)/ProductDetail" /><title /><updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">7</d:ID><d:Name>DVD - Player</d:Name><d:Description>1080P Upconversion DVD Player</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2006-11-15T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">5</d:Rating><d:Price m:type="Double">35.88</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(8)</id><category - term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(8)" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(8)/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(8)/Categories" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" - type="application/xml" title="Supplier" href="Products(8)/Supplier/$ref" /><link - rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(8)/Supplier" /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" - type="application/xml" title="ProductDetail" href="Products(8)/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(8)/ProductDetail" /><title /><updated>2017-12-07T21:54:51Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">8</d:ID><d:Name>LCD - HDTV</d:Name><d:Description>42 inch 1080p LCD with Built-in Blu-ray Disc Player</d:Description><d:ReleaseDate - m:type="DateTimeOffset">2008-05-08T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">3</d:Rating><d:Price m:type="Double">1088.8</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(9)</id><category - term="#ODataDemo.FeaturedProduct" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(9)/ODataDemo.FeaturedProduct" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(9)/ODataDemo.FeaturedProduct/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(9)/ODataDemo.FeaturedProduct/Categories" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" - title="Supplier" href="Products(9)/ODataDemo.FeaturedProduct/Supplier/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(9)/ODataDemo.FeaturedProduct/Supplier" /><link - rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" - title="ProductDetail" href="Products(9)/ODataDemo.FeaturedProduct/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(9)/ODataDemo.FeaturedProduct/ProductDetail" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Advertisement" - type="application/xml" title="Advertisement" href="Products(9)/ODataDemo.FeaturedProduct/Advertisement/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Advertisement" type="application/atom+xml;type=entry" - title="Advertisement" href="Products(9)/ODataDemo.FeaturedProduct/Advertisement" - /><title /><updated>2017-12-07T21:54:51Z</updated><author><name /></author><content - type="application/xml"><m:properties><d:ID m:type="Int32">9</d:ID><d:Name>Lemonade</d:Name><d:Description>Classic, - refreshing lemonade (Single bottle)</d:Description><d:ReleaseDate m:type="DateTimeOffset">1970-01-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">7</d:Rating><d:Price m:type="Double">1.01</d:Price></m:properties></content></entry><entry><id>http://services.odata.org/V4/OData/OData.svc/Products(10)</id><category - term="#ODataDemo.FeaturedProduct" scheme="http://docs.oasis-open.org/odata/ns/scheme" - /><link rel="edit" title="Product" href="Products(10)/ODataDemo.FeaturedProduct" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" - type="application/xml" title="Categories" href="Products(10)/ODataDemo.FeaturedProduct/Categories/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" - title="Categories" href="Products(10)/ODataDemo.FeaturedProduct/Categories" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" - title="Supplier" href="Products(10)/ODataDemo.FeaturedProduct/Supplier/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" - title="Supplier" href="Products(10)/ODataDemo.FeaturedProduct/Supplier" /><link - rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" - title="ProductDetail" href="Products(10)/ODataDemo.FeaturedProduct/ProductDetail/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" - title="ProductDetail" href="Products(10)/ODataDemo.FeaturedProduct/ProductDetail" - /><link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Advertisement" - type="application/xml" title="Advertisement" href="Products(10)/ODataDemo.FeaturedProduct/Advertisement/$ref" - /><link rel="http://docs.oasis-open.org/odata/ns/related/Advertisement" type="application/atom+xml;type=entry" - title="Advertisement" href="Products(10)/ODataDemo.FeaturedProduct/Advertisement" - /><title /><updated>2017-12-07T21:54:51Z</updated><author><name /></author><content - type="application/xml"><m:properties><d:ID m:type="Int32">10</d:ID><d:Name>Coffee</d:Name><d:Description>Bulk - size can of instant coffee</d:Description><d:ReleaseDate m:type="DateTimeOffset">1982-12-31T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">1</d:Rating><d:Price m:type="Double">6.99</d:Price></m:properties></content></entry></feed> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products - recorded_at: Thu, 07 Dec 2017 21:54:53 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)?$expand=Categories - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '270' - Content-Type: + content-length: + - '1982' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:03 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: + access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Fri, 26 Jan 2018 23:52:04 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5,"Categories":[{"ID":0,"Name":"Food"}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0)?$expand=Categories - recorded_at: Fri, 26 Jan 2018 23:52:03 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)?$expand=Categories,Supplier - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '559' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: + access-control-allow-methods: - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Sat, 27 Jan 2018 00:03:43 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5,"Categories":[{"ID":0,"Name":"Food"}],"Supplier":{"ID":1,"Name":"Tokyo - Traders","Address":{"Street":"NE 40th","City":"Redmond","State":"WA","ZipCode":"98052","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.107711791992,47.6472206115723],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0}}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0)?$expand=Categories,Supplier - recorded_at: Sat, 27 Jan 2018 00:03:42 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?$expand=Categories,Supplier - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '584' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: + access-control-allow-origin: - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: + access-control-expose-headers: - DataServiceVersion - Date: - - Sat, 27 Jan 2018 00:23:54 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}],"Supplier":{"ID":0,"Name":"Exotic - Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0}}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(1)?$expand=Categories,Supplier - recorded_at: Sat, 27 Jan 2018 00:23:53 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?$expand=Categories,Supplier,ProductDetail - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: + cache-control: - no-cache - Content-Length: - - '649' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Sat, 27 Jan 2018 00:23:54 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}],"Supplier":{"ID":0,"Name":"Exotic - Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0},"ProductDetail":{"ProductID":1,"Details":"Details - of product 1"}}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(1)?$expand=Categories,Supplier,ProductDetail - recorded_at: Sat, 27 Jan 2018 00:23:53 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint + soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina + Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit + Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99},{"ID":5,"Name":"Cranberry + Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":6,"Name":"Pink + Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":7,"Name":"DVD + Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD + HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, + refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk + size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:04 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?$expand=Categories + uri: https://services.odata.org/V4/OData/OData.svc/Products/$count body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '292' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + content-length: + - '2' + connection: + - close + content-type: + - text/plain;charset=utf-8 + date: + - Thu, 20 Mar 2025 17:53:05 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: + access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Sat, 27 Jan 2018 00:23:54 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(1)?$expand=Categories - recorded_at: Sat, 27 Jan 2018 00:23:53 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories%2CSupplier - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion cache-control: - no-cache - content-length: - - '559' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 vary: - Accept-Encoding - server: - - Microsoft-IIS/10.0 x-content-type-options: - nosniff odata-version: @@ -1383,38 +232,20 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:48 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}],"Supplier":{"ID":0,"Name":"Exotic - Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0}}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:49 GMT + string: '11' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:05 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories%2CSupplier%2CProductDetail + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1422,16 +253,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '589' + - '889' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:05 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding x-content-type-options: - nosniff odata-version: @@ -1440,39 +283,25 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:49 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}],"Supplier":{"ID":0,"Name":"Exotic - Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0},"ProductDetail":{"ProductID":1,"Details":"Details - of product 1"}}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:49 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint + soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina + Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit + Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:06 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24top=1 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1480,16 +309,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '339' + - '237' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:06 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding x-content-type-options: - nosniff odata-version: @@ -1498,37 +339,21 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:49 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:49 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:06 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=1 + uri: https://services.odata.org/V4/OData/OData.svc/Products(0) body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1536,16 +361,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '308' + - '233' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:06 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding x-content-type-options: - nosniff odata-version: @@ -1554,93 +391,70 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:49 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:50 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:06 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products(99) body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: status: - code: 200 - message: OK + code: 404 + message: Not Found headers: - cache-control: - - no-cache content-length: - - '523' + - '80' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:06 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache x-content-type-options: - nosniff odata-version: - - 4.0; + - '4.0' x-aspnet-version: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:50 GMT - connection: - - close body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit - Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:50 GMT + encoding: UTF-8 + string: '{"error":{"code":"","message":"Resource not found for the segment ''Products''."}}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:06 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories&%7B%22%24expand%22=%3E%22Categories%22%7D + uri: https://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories%2CSupplier&%7B%22%24expand%22+=%3E+%22Categories%2CSupplier%22%7D body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1648,16 +462,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '339' + - '609' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:07 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding x-content-type-options: - nosniff odata-version: @@ -1666,33 +492,22 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Mon, 04 Jun 2018 19:07:17 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}]}' - http_version: - recorded_at: Mon, 04 Jun 2018 19:07:17 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}],"Supplier":{"@odata.etag":"W/\"0\"","ID":0,"Name":"Exotic + Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0}}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:07 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories%2CSupplier%2CProductDetail&%7B%22%24expand%22=%3E%22Categories%2CSupplier%2CProductDetail%22%7D + uri: https://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories%2CSupplier%2CProductDetail&%7B%22%24expand%22+=%3E+%22Categories%2CSupplier%2CProductDetail%22%7D body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1700,16 +515,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '589' + - '674' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:07 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding x-content-type-options: - nosniff odata-version: @@ -1718,35 +545,23 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Mon, 04 Jun 2018 19:07:17 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}],"Supplier":{"ID":0,"Name":"Exotic + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}],"Supplier":{"@odata.etag":"W/\"0\"","ID":0,"Name":"Exotic Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0},"ProductDetail":{"ProductID":1,"Details":"Details of product 1"}}' - http_version: - recorded_at: Mon, 04 Jun 2018 19:07:17 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:07 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories%2CSupplier&%7B%22%24expand%22=%3E%22Categories%2CSupplier%22%7D + uri: https://services.odata.org/V4/OData/OData.svc/Products(1)?%24expand=Categories&%7B%22%24expand%22+=%3E+%22Categories%22%7D body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1754,16 +569,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '559' + - '293' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:08 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding x-content-type-options: - nosniff odata-version: @@ -1772,23 +599,10 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Mon, 04 Jun 2018 19:07:17 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}],"Supplier":{"ID":0,"Name":"Exotic - Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0}}' - http_version: - recorded_at: Mon, 04 Jun 2018 19:07:18 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5,"Categories":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:08 GMT recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/entity_set_specs/bad_entry.yml b/spec/fixtures/vcr_cassettes/entity_set_specs/bad_entry.yml deleted file mode 100644 index 862c7d2..0000000 --- a/spec/fixtures/vcr_cassettes/entity_set_specs/bad_entry.yml +++ /dev/null @@ -1,183 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '6742' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:44:57 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema - Namespace="ODataDemo" xmlns="http://docs.oasis-open.org/odata/ns/edm"><EntityType - Name="Product"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" - Nullable="false" /><Property Name="Name" Type="Edm.String" /><Property Name="Description" - Type="Edm.String" /><Property Name="ReleaseDate" Type="Edm.DateTimeOffset" - Nullable="false" /><Property Name="DiscontinuedDate" Type="Edm.DateTimeOffset" - /><Property Name="Rating" Type="Edm.Int16" Nullable="false" /><Property Name="Price" - Type="Edm.Double" Nullable="false" /><NavigationProperty Name="Categories" - Type="Collection(ODataDemo.Category)" Partner="Products" /><NavigationProperty - Name="Supplier" Type="ODataDemo.Supplier" Partner="Products" /><NavigationProperty - Name="ProductDetail" Type="ODataDemo.ProductDetail" Partner="Product" /></EntityType><EntityType - Name="FeaturedProduct" BaseType="ODataDemo.Product"><NavigationProperty Name="Advertisement" - Type="ODataDemo.Advertisement" Partner="FeaturedProduct" /></EntityType><EntityType - Name="ProductDetail"><Key><PropertyRef Name="ProductID" /></Key><Property - Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="Details" - Type="Edm.String" /><NavigationProperty Name="Product" Type="ODataDemo.Product" - Partner="ProductDetail" /></EntityType><EntityType Name="Category" OpenType="true"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Categories" /></EntityType><EntityType Name="Supplier"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Location" Type="Edm.GeographyPoint" SRID="Variable" /><Property - Name="Concurrency" Type="Edm.Int32" ConcurrencyMode="Fixed" Nullable="false" - /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Supplier" /></EntityType><ComplexType Name="Address"><Property Name="Street" - Type="Edm.String" /><Property Name="City" Type="Edm.String" /><Property Name="State" - Type="Edm.String" /><Property Name="ZipCode" Type="Edm.String" /><Property - Name="Country" Type="Edm.String" /></ComplexType><EntityType Name="Person"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="PersonDetail" Type="ODataDemo.PersonDetail" - Partner="Person" /></EntityType><EntityType Name="Customer" BaseType="ODataDemo.Person"><Property - Name="TotalExpense" Type="Edm.Decimal" Nullable="false" /></EntityType><EntityType - Name="Employee" BaseType="ODataDemo.Person"><Property Name="EmployeeID" Type="Edm.Int64" - Nullable="false" /><Property Name="HireDate" Type="Edm.DateTimeOffset" Nullable="false" - /><Property Name="Salary" Type="Edm.Single" Nullable="false" /></EntityType><EntityType - Name="PersonDetail"><Key><PropertyRef Name="PersonID" /></Key><Property Name="PersonID" - Type="Edm.Int32" Nullable="false" /><Property Name="Age" Type="Edm.Byte" Nullable="false" - /><Property Name="Gender" Type="Edm.Boolean" Nullable="false" /><Property - Name="Phone" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Photo" Type="Edm.Stream" Nullable="false" /><NavigationProperty - Name="Person" Type="ODataDemo.Person" Partner="PersonDetail" /></EntityType><EntityType - Name="Advertisement" HasStream="true"><Key><PropertyRef Name="ID" /></Key><Property - Name="ID" Type="Edm.Guid" Nullable="false" /><Property Name="Name" Type="Edm.String" - /><Property Name="AirDate" Type="Edm.DateTimeOffset" Nullable="false" /><NavigationProperty - Name="FeaturedProduct" Type="ODataDemo.FeaturedProduct" Partner="Advertisement" - /></EntityType><EntityContainer Name="DemoService"><EntitySet Name="Products" - EntityType="ODataDemo.Product"><NavigationPropertyBinding Path="ODataDemo.FeaturedProduct/Advertisement" - Target="Advertisements" /><NavigationPropertyBinding Path="Categories" Target="Categories" - /><NavigationPropertyBinding Path="Supplier" Target="Suppliers" /><NavigationPropertyBinding - Path="ProductDetail" Target="ProductDetails" /></EntitySet><EntitySet Name="ProductDetails" - EntityType="ODataDemo.ProductDetail"><NavigationPropertyBinding Path="Product" - Target="Products" /></EntitySet><EntitySet Name="Categories" EntityType="ODataDemo.Category"><NavigationPropertyBinding - Path="Products" Target="Products" /></EntitySet><EntitySet Name="Suppliers" - EntityType="ODataDemo.Supplier"><NavigationPropertyBinding Path="Products" - Target="Products" /></EntitySet><EntitySet Name="Persons" EntityType="ODataDemo.Person"><NavigationPropertyBinding - Path="PersonDetail" Target="PersonDetails" /></EntitySet><EntitySet Name="PersonDetails" - EntityType="ODataDemo.PersonDetail"><NavigationPropertyBinding Path="Person" - Target="Persons" /></EntitySet><EntitySet Name="Advertisements" EntityType="ODataDemo.Advertisement"><NavigationPropertyBinding - Path="FeaturedProduct" Target="Products" /></EntitySet></EntityContainer><Annotations - Target="ODataDemo.DemoService"><Annotation Term="Org.OData.Display.V1.Description" - String="This is a sample OData service with vocabularies" /></Annotations><Annotations - Target="ODataDemo.Product"><Annotation Term="Org.OData.Display.V1.Description" - String="All Products available in the online store" /></Annotations><Annotations - Target="ODataDemo.Product/Name"><Annotation Term="Org.OData.Display.V1.DisplayName" - String="Product Name" /></Annotations><Annotations Target="ODataDemo.DemoService/Suppliers"><Annotation - Term="Org.OData.Publication.V1.PublisherName" String="Microsoft Corp." /><Annotation - Term="Org.OData.Publication.V1.PublisherId" String="MSFT" /><Annotation Term="Org.OData.Publication.V1.Keywords" - String="Inventory, Supplier, Advertisers, Sales, Finance" /><Annotation Term="Org.OData.Publication.V1.AttributionUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.AttributionDescription" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.DocumentationUrl - " String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.TermsOfUseUrl" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.PrivacyPolicyUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" - String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " - String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Wed, 29 Nov 2017 01:44:57 GMT -- request: - method: post - uri: http://services.odata.org/V4/OData/OData.svc/Products - body: - encoding: UTF-8 - string: | - <?xml version="1.0"?> - <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.DateTimeOffset" metadata:null="true"/><data:DiscontinuedDate metadata:type="Edm.DateTimeOffset" metadata:null="true"/><data:Rating metadata:type="Edm.Int16" metadata:null="true"/><data:Price metadata:type="Edm.Double" metadata:null="true"/></metadata:properties></content> - </entry> - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - Accept: - - application/atom+xml - Content-Type: - - application/atom+xml - response: - status: - code: 400 - message: Bad Request - headers: - Cache-Control: - - private - Content-Length: - - '253' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - '4.0' - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 01:44:57 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://docs.oasis-open.org/odata/ns/metadata"><m:code - /><m:message>Error processing request stream. Type information must be specified - for types that take part in inheritance.</m:message></m:error> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products - recorded_at: Wed, 29 Nov 2017 01:44:57 GMT -recorded_with: VCR 2.9.3 diff --git a/spec/fixtures/vcr_cassettes/entity_set_specs/existing_entry.yml b/spec/fixtures/vcr_cassettes/entity_set_specs/existing_entry.yml deleted file mode 100644 index 5b27782..0000000 --- a/spec/fixtures/vcr_cassettes/entity_set_specs/existing_entry.yml +++ /dev/null @@ -1,256 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$top=1 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '2179' - Content-Type: - - application/atom+xml;type=feed;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 20:54:13 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://services.odata.org/V4/OData/OData.svc/" - xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://docs.oasis-open.org/odata/ns/data" - xmlns:m="http://docs.oasis-open.org/odata/ns/metadata" xmlns:georss="http://www.georss.org/georss" - xmlns:gml="http://www.opengis.net/gml" m:context="http://services.odata.org/V4/OData/OData.svc/$metadata#Products"><id>http://services.odata.org/V4/OData/OData.svc/Products</id><title - type="text">Products2017-11-29T20:54:14Zhttp://services.odata.org/V4/OData/OData.svc/Products(0)<updated>2017-11-29T20:54:14Z</updated><author><name - /></author><content type="application/xml"><m:properties><d:ID m:type="Int32">0</d:ID><d:Name>Bread</d:Name><d:Description>Whole - grain bread</d:Description><d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate><d:DiscontinuedDate - m:null="true" /><d:Rating m:type="Int16">4</d:Rating><d:Price m:type="Double">2.5</d:Price></m:properties></content></entry></feed> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$top=1 - recorded_at: Wed, 29 Nov 2017 20:54:14 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '6742' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 20:54:13 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema - Namespace="ODataDemo" xmlns="http://docs.oasis-open.org/odata/ns/edm"><EntityType - Name="Product"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" - Nullable="false" /><Property Name="Name" Type="Edm.String" /><Property Name="Description" - Type="Edm.String" /><Property Name="ReleaseDate" Type="Edm.DateTimeOffset" - Nullable="false" /><Property Name="DiscontinuedDate" Type="Edm.DateTimeOffset" - /><Property Name="Rating" Type="Edm.Int16" Nullable="false" /><Property Name="Price" - Type="Edm.Double" Nullable="false" /><NavigationProperty Name="Categories" - Type="Collection(ODataDemo.Category)" Partner="Products" /><NavigationProperty - Name="Supplier" Type="ODataDemo.Supplier" Partner="Products" /><NavigationProperty - Name="ProductDetail" Type="ODataDemo.ProductDetail" Partner="Product" /></EntityType><EntityType - Name="FeaturedProduct" BaseType="ODataDemo.Product"><NavigationProperty Name="Advertisement" - Type="ODataDemo.Advertisement" Partner="FeaturedProduct" /></EntityType><EntityType - Name="ProductDetail"><Key><PropertyRef Name="ProductID" /></Key><Property - Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="Details" - Type="Edm.String" /><NavigationProperty Name="Product" Type="ODataDemo.Product" - Partner="ProductDetail" /></EntityType><EntityType Name="Category" OpenType="true"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Categories" /></EntityType><EntityType Name="Supplier"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Location" Type="Edm.GeographyPoint" SRID="Variable" /><Property - Name="Concurrency" Type="Edm.Int32" ConcurrencyMode="Fixed" Nullable="false" - /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Supplier" /></EntityType><ComplexType Name="Address"><Property Name="Street" - Type="Edm.String" /><Property Name="City" Type="Edm.String" /><Property Name="State" - Type="Edm.String" /><Property Name="ZipCode" Type="Edm.String" /><Property - Name="Country" Type="Edm.String" /></ComplexType><EntityType Name="Person"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="PersonDetail" Type="ODataDemo.PersonDetail" - Partner="Person" /></EntityType><EntityType Name="Customer" BaseType="ODataDemo.Person"><Property - Name="TotalExpense" Type="Edm.Decimal" Nullable="false" /></EntityType><EntityType - Name="Employee" BaseType="ODataDemo.Person"><Property Name="EmployeeID" Type="Edm.Int64" - Nullable="false" /><Property Name="HireDate" Type="Edm.DateTimeOffset" Nullable="false" - /><Property Name="Salary" Type="Edm.Single" Nullable="false" /></EntityType><EntityType - Name="PersonDetail"><Key><PropertyRef Name="PersonID" /></Key><Property Name="PersonID" - Type="Edm.Int32" Nullable="false" /><Property Name="Age" Type="Edm.Byte" Nullable="false" - /><Property Name="Gender" Type="Edm.Boolean" Nullable="false" /><Property - Name="Phone" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Photo" Type="Edm.Stream" Nullable="false" /><NavigationProperty - Name="Person" Type="ODataDemo.Person" Partner="PersonDetail" /></EntityType><EntityType - Name="Advertisement" HasStream="true"><Key><PropertyRef Name="ID" /></Key><Property - Name="ID" Type="Edm.Guid" Nullable="false" /><Property Name="Name" Type="Edm.String" - /><Property Name="AirDate" Type="Edm.DateTimeOffset" Nullable="false" /><NavigationProperty - Name="FeaturedProduct" Type="ODataDemo.FeaturedProduct" Partner="Advertisement" - /></EntityType><EntityContainer Name="DemoService"><EntitySet Name="Products" - EntityType="ODataDemo.Product"><NavigationPropertyBinding Path="ODataDemo.FeaturedProduct/Advertisement" - Target="Advertisements" /><NavigationPropertyBinding Path="Categories" Target="Categories" - /><NavigationPropertyBinding Path="Supplier" Target="Suppliers" /><NavigationPropertyBinding - Path="ProductDetail" Target="ProductDetails" /></EntitySet><EntitySet Name="ProductDetails" - EntityType="ODataDemo.ProductDetail"><NavigationPropertyBinding Path="Product" - Target="Products" /></EntitySet><EntitySet Name="Categories" EntityType="ODataDemo.Category"><NavigationPropertyBinding - Path="Products" Target="Products" /></EntitySet><EntitySet Name="Suppliers" - EntityType="ODataDemo.Supplier"><NavigationPropertyBinding Path="Products" - Target="Products" /></EntitySet><EntitySet Name="Persons" EntityType="ODataDemo.Person"><NavigationPropertyBinding - Path="PersonDetail" Target="PersonDetails" /></EntitySet><EntitySet Name="PersonDetails" - EntityType="ODataDemo.PersonDetail"><NavigationPropertyBinding Path="Person" - Target="Persons" /></EntitySet><EntitySet Name="Advertisements" EntityType="ODataDemo.Advertisement"><NavigationPropertyBinding - Path="FeaturedProduct" Target="Products" /></EntitySet></EntityContainer><Annotations - Target="ODataDemo.DemoService"><Annotation Term="Org.OData.Display.V1.Description" - String="This is a sample OData service with vocabularies" /></Annotations><Annotations - Target="ODataDemo.Product"><Annotation Term="Org.OData.Display.V1.Description" - String="All Products available in the online store" /></Annotations><Annotations - Target="ODataDemo.Product/Name"><Annotation Term="Org.OData.Display.V1.DisplayName" - String="Product Name" /></Annotations><Annotations Target="ODataDemo.DemoService/Suppliers"><Annotation - Term="Org.OData.Publication.V1.PublisherName" String="Microsoft Corp." /><Annotation - Term="Org.OData.Publication.V1.PublisherId" String="MSFT" /><Annotation Term="Org.OData.Publication.V1.Keywords" - String="Inventory, Supplier, Advertisers, Sales, Finance" /><Annotation Term="Org.OData.Publication.V1.AttributionUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.AttributionDescription" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.DocumentationUrl - " String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.TermsOfUseUrl" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.PrivacyPolicyUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" - String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " - String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Wed, 29 Nov 2017 20:54:14 GMT -- request: - method: post - uri: http://services.odata.org/V4/OData/OData.svc/Products(0) - body: - encoding: UTF-8 - string: | - <?xml version="1.0"?> - <entry xmlns="http://www.w3.org/2005/Atom" xmlns:data="http://docs.oasis-open.org/odata/ns/data" xmlns:metadata="http://docs.oasis-open.org/odata/ns/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" xml:base="http://services.odata.org/V4/OData/OData.svc"><category term="ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme"/><author><name/></author><content type="application/xml"><metadata:properties/></content> - </entry> - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - Accept: - - application/atom+xml - Content-Type: - - application/atom+xml - response: - status: - code: 405 - message: Method Not Allowed - headers: - Cache-Control: - - private - Allow: - - GET, PUT, PATCH, DELETE - Content-Length: - - '325' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - '4.0' - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 20:54:13 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://docs.oasis-open.org/odata/ns/metadata"><m:code - /><m:message>The URI 'http://services.odata.org/V4/OData/OData.svc/Products(0)' - is not valid for POST operation. For POST operations, the URI must refer to - a service operation or an entity set.</m:message></m:error> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0) - recorded_at: Wed, 29 Nov 2017 20:54:14 GMT -recorded_with: VCR 2.9.3 diff --git a/spec/fixtures/vcr_cassettes/entity_set_specs/new_entry.yml b/spec/fixtures/vcr_cassettes/entity_set_specs/new_entry.yml deleted file mode 100644 index d10a07a..0000000 --- a/spec/fixtures/vcr_cassettes/entity_set_specs/new_entry.yml +++ /dev/null @@ -1,185 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '6742' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 20:59:10 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema - Namespace="ODataDemo" xmlns="http://docs.oasis-open.org/odata/ns/edm"><EntityType - Name="Product"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" - Nullable="false" /><Property Name="Name" Type="Edm.String" /><Property Name="Description" - Type="Edm.String" /><Property Name="ReleaseDate" Type="Edm.DateTimeOffset" - Nullable="false" /><Property Name="DiscontinuedDate" Type="Edm.DateTimeOffset" - /><Property Name="Rating" Type="Edm.Int16" Nullable="false" /><Property Name="Price" - Type="Edm.Double" Nullable="false" /><NavigationProperty Name="Categories" - Type="Collection(ODataDemo.Category)" Partner="Products" /><NavigationProperty - Name="Supplier" Type="ODataDemo.Supplier" Partner="Products" /><NavigationProperty - Name="ProductDetail" Type="ODataDemo.ProductDetail" Partner="Product" /></EntityType><EntityType - Name="FeaturedProduct" BaseType="ODataDemo.Product"><NavigationProperty Name="Advertisement" - Type="ODataDemo.Advertisement" Partner="FeaturedProduct" /></EntityType><EntityType - Name="ProductDetail"><Key><PropertyRef Name="ProductID" /></Key><Property - Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="Details" - Type="Edm.String" /><NavigationProperty Name="Product" Type="ODataDemo.Product" - Partner="ProductDetail" /></EntityType><EntityType Name="Category" OpenType="true"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Categories" /></EntityType><EntityType Name="Supplier"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Location" Type="Edm.GeographyPoint" SRID="Variable" /><Property - Name="Concurrency" Type="Edm.Int32" ConcurrencyMode="Fixed" Nullable="false" - /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Supplier" /></EntityType><ComplexType Name="Address"><Property Name="Street" - Type="Edm.String" /><Property Name="City" Type="Edm.String" /><Property Name="State" - Type="Edm.String" /><Property Name="ZipCode" Type="Edm.String" /><Property - Name="Country" Type="Edm.String" /></ComplexType><EntityType Name="Person"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="PersonDetail" Type="ODataDemo.PersonDetail" - Partner="Person" /></EntityType><EntityType Name="Customer" BaseType="ODataDemo.Person"><Property - Name="TotalExpense" Type="Edm.Decimal" Nullable="false" /></EntityType><EntityType - Name="Employee" BaseType="ODataDemo.Person"><Property Name="EmployeeID" Type="Edm.Int64" - Nullable="false" /><Property Name="HireDate" Type="Edm.DateTimeOffset" Nullable="false" - /><Property Name="Salary" Type="Edm.Single" Nullable="false" /></EntityType><EntityType - Name="PersonDetail"><Key><PropertyRef Name="PersonID" /></Key><Property Name="PersonID" - Type="Edm.Int32" Nullable="false" /><Property Name="Age" Type="Edm.Byte" Nullable="false" - /><Property Name="Gender" Type="Edm.Boolean" Nullable="false" /><Property - Name="Phone" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Photo" Type="Edm.Stream" Nullable="false" /><NavigationProperty - Name="Person" Type="ODataDemo.Person" Partner="PersonDetail" /></EntityType><EntityType - Name="Advertisement" HasStream="true"><Key><PropertyRef Name="ID" /></Key><Property - Name="ID" Type="Edm.Guid" Nullable="false" /><Property Name="Name" Type="Edm.String" - /><Property Name="AirDate" Type="Edm.DateTimeOffset" Nullable="false" /><NavigationProperty - Name="FeaturedProduct" Type="ODataDemo.FeaturedProduct" Partner="Advertisement" - /></EntityType><EntityContainer Name="DemoService"><EntitySet Name="Products" - EntityType="ODataDemo.Product"><NavigationPropertyBinding Path="ODataDemo.FeaturedProduct/Advertisement" - Target="Advertisements" /><NavigationPropertyBinding Path="Categories" Target="Categories" - /><NavigationPropertyBinding Path="Supplier" Target="Suppliers" /><NavigationPropertyBinding - Path="ProductDetail" Target="ProductDetails" /></EntitySet><EntitySet Name="ProductDetails" - EntityType="ODataDemo.ProductDetail"><NavigationPropertyBinding Path="Product" - Target="Products" /></EntitySet><EntitySet Name="Categories" EntityType="ODataDemo.Category"><NavigationPropertyBinding - Path="Products" Target="Products" /></EntitySet><EntitySet Name="Suppliers" - EntityType="ODataDemo.Supplier"><NavigationPropertyBinding Path="Products" - Target="Products" /></EntitySet><EntitySet Name="Persons" EntityType="ODataDemo.Person"><NavigationPropertyBinding - Path="PersonDetail" Target="PersonDetails" /></EntitySet><EntitySet Name="PersonDetails" - EntityType="ODataDemo.PersonDetail"><NavigationPropertyBinding Path="Person" - Target="Persons" /></EntitySet><EntitySet Name="Advertisements" EntityType="ODataDemo.Advertisement"><NavigationPropertyBinding - Path="FeaturedProduct" Target="Products" /></EntitySet></EntityContainer><Annotations - Target="ODataDemo.DemoService"><Annotation Term="Org.OData.Display.V1.Description" - String="This is a sample OData service with vocabularies" /></Annotations><Annotations - Target="ODataDemo.Product"><Annotation Term="Org.OData.Display.V1.Description" - String="All Products available in the online store" /></Annotations><Annotations - Target="ODataDemo.Product/Name"><Annotation Term="Org.OData.Display.V1.DisplayName" - String="Product Name" /></Annotations><Annotations Target="ODataDemo.DemoService/Suppliers"><Annotation - Term="Org.OData.Publication.V1.PublisherName" String="Microsoft Corp." /><Annotation - Term="Org.OData.Publication.V1.PublisherId" String="MSFT" /><Annotation Term="Org.OData.Publication.V1.Keywords" - String="Inventory, Supplier, Advertisers, Sales, Finance" /><Annotation Term="Org.OData.Publication.V1.AttributionUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.AttributionDescription" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.DocumentationUrl - " String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.TermsOfUseUrl" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.PrivacyPolicyUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" - String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " - String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Wed, 29 Nov 2017 20:59:11 GMT -- request: - method: post - uri: http://services.odata.org/V4/OData/OData.svc/Products - body: - encoding: UTF-8 - string: | - <?xml version="1.0"?> - <entry xmlns="http://www.w3.org/2005/Atom" xmlns:data="http://docs.oasis-open.org/odata/ns/data" xmlns:metadata="http://docs.oasis-open.org/odata/ns/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" xml:base="http://services.odata.org/V4/OData/OData.svc"><category term="ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme"/><author><name/></author><content type="application/xml"><metadata:properties><data:Name metadata:type="Edm.String">Widget</data:Name><data:Description metadata:type="Edm.String">Just a simple widget</data:Description><data:ReleaseDate metadata:type="Edm.DateTimeOffset">2017-11-29T20:59:09+00:00</data:ReleaseDate><data:DiscontinuedDate metadata:type="Edm.DateTimeOffset" metadata:null="true"/><data:Rating metadata:type="Edm.Int16">4</data:Rating><data:Price metadata:type="Edm.Double">3.5</data:Price></metadata:properties></content> - </entry> - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - Accept: - - application/atom+xml - Content-Type: - - application/atom+xml - response: - status: - code: 403 - message: Forbidden - headers: - Cache-Control: - - private - Content-Length: - - '1254' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - '4.0' - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 29 Nov 2017 20:59:10 GMT - body: - encoding: UTF-8 - string: |- - <?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://docs.oasis-open.org/odata/ns/metadata"><m:code /><m:message>You are connected to a read-only data session. Update operations are not permitted for your session</m:message><m:innererror><m:message>Exception has been thrown by the target of an invocation.</m:message><m:type>System.Reflection.TargetInvocationException</m:type><m:stacktrace> at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) - at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) - at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) - at Microsoft.OData.Service.UpdateTracker.FireNotifications()</m:stacktrace><m:internalexception><m:message>You are connected to a read-only data session. Update operations are not permitted for your session</m:message><m:type>Microsoft.OData.Service.DataServiceException</m:type><m:stacktrace> at ODataWebExperimental.OData.ODataService.OnUpdateOperation(Object source, UpdateOperations action)</m:stacktrace></m:internalexception></m:innererror></m:error> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products - recorded_at: Wed, 29 Nov 2017 20:59:11 GMT -recorded_with: VCR 2.9.3 diff --git a/spec/fixtures/vcr_cassettes/entity_specs.yml b/spec/fixtures/vcr_cassettes/entity_specs.yml index 5516d57..4592901 100644 --- a/spec/fixtures/vcr_cassettes/entity_specs.yml +++ b/spec/fixtures/vcr_cassettes/entity_specs.yml @@ -2,46 +2,48 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata + uri: https://services.odata.org/V4/OData/OData.svc/$metadata body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - DataServiceVersion: - - '3.0' + - Faraday v0.17.6 + OData-Version: + - '4.0' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '6742' - Content-Type: + connection: + - close + content-type: - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: + date: + - Thu, 20 Mar 2025 17:53:01 GMT + server: + - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 22 Nov 2017 22:11:38 GMT body: encoding: UTF-8 string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema @@ -120,166 +122,156 @@ http_interactions: String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Wed, 22 Nov 2017 22:11:41 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:02 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)/ProductDetail + uri: https://services.odata.org/V4/OData/OData.svc/Products(0)/ProductDetail body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 204 message: No Content headers: - Cache-Control: - - no-cache - Server: + connection: + - close + date: + - Thu, 20 Mar 2025 17:53:02 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:35 GMT body: encoding: UTF-8 string: '' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0)/ProductDetail - recorded_at: Tue, 16 Jan 2018 20:30:36 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:03 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)/Supplier + uri: https://services.odata.org/V4/OData/OData.svc/Products(0)/Supplier body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '369' - Content-Type: + content-length: + - '394' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - ETag: - - W/"0" - Server: + date: + - Thu, 20 Mar 2025 17:53:02 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + etag: + - W/"0" + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:35 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity","ID":1,"Name":"Tokyo + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity","@odata.etag":"W/\"0\"","ID":1,"Name":"Tokyo Traders","Address":{"Street":"NE 40th","City":"Redmond","State":"WA","ZipCode":"98052","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.107711791992,47.6472206115723],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0)/Supplier - recorded_at: Tue, 16 Jan 2018 20:30:36 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:03 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)/Categories + uri: https://services.odata.org/V4/OData/OData.svc/Products(0)/Categories body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '119' - Content-Type: + content-length: + - '120' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:02 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:35 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Categories","value":[{"ID":0,"Name":"Food"}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0)/Categories - recorded_at: Tue, 16 Jan 2018 20:30:36 GMT -recorded_with: VCR 2.9.3 + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Categories","value":[{"ID":0,"Name":"Food"}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:03 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/navigation_property_proxy_specs.yml b/spec/fixtures/vcr_cassettes/navigation_property_proxy_specs.yml index 9270cda..0ad7f24 100644 --- a/spec/fixtures/vcr_cassettes/navigation_property_proxy_specs.yml +++ b/spec/fixtures/vcr_cassettes/navigation_property_proxy_specs.yml @@ -2,48 +2,48 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata + uri: https://services.odata.org/V4/OData/OData.svc/$metadata body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '6742' - Content-Type: + connection: + - close + content-type: - application/xml;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:08 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:31:42 GMT body: encoding: UTF-8 string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema @@ -122,225 +122,215 @@ http_interactions: String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Tue, 16 Jan 2018 20:31:43 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:08 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1) + uri: https://services.odata.org/V4/OData/OData.svc/Products(1) body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '226' - Content-Type: + content-length: + - '227' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:08 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:31:42 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(1) - recorded_at: Tue, 16 Jan 2018 20:31:43 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:08 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)/Supplier + uri: https://services.odata.org/V4/OData/OData.svc/Products(1)/Categories body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '372' - Content-Type: + content-length: + - '148' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - ETag: - - W/"0" - Server: + date: + - Thu, 20 Mar 2025 17:53:08 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:31:42 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity","ID":0,"Name":"Exotic - Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(1)/Supplier - recorded_at: Tue, 16 Jan 2018 20:31:43 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Categories","value":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:09 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)/ProductDetail + uri: https://services.odata.org/V4/OData/OData.svc/Products(1)/Supplier body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '145' - Content-Type: + content-length: + - '397' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:09 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + etag: + - W/"0" + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:31:43 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#ProductDetails/$entity","ProductID":1,"Details":"Details - of product 1"}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(1)/ProductDetail - recorded_at: Tue, 16 Jan 2018 20:31:43 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity","@odata.etag":"W/\"0\"","ID":0,"Name":"Exotic + Liquids","Address":{"Street":"NE 228th","City":"Sammamish","State":"WA","ZipCode":"98074","Country":"USA"},"Location":{"type":"Point","coordinates":[-122.03547668457,47.6316604614258],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"Concurrency":0}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:09 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1)/Categories + uri: https://services.odata.org/V4/OData/OData.svc/Products(1)/ProductDetail body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '147' - Content-Type: + content-length: + - '146' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:09 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:31:43 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Categories","value":[{"ID":0,"Name":"Food"},{"ID":1,"Name":"Beverages"}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(1)/Categories - recorded_at: Tue, 16 Jan 2018 20:31:43 GMT -recorded_with: VCR 2.9.3 + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#ProductDetails/$entity","ProductID":1,"Details":"Details + of product 1"}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:09 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/query/result_specs.yml b/spec/fixtures/vcr_cassettes/query/result_specs.yml deleted file mode 100644 index 2d19b0e..0000000 --- a/spec/fixtures/vcr_cassettes/query/result_specs.yml +++ /dev/null @@ -1,189 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '6742' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Fri, 08 Dec 2017 06:10:20 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema - Namespace="ODataDemo" xmlns="http://docs.oasis-open.org/odata/ns/edm"><EntityType - Name="Product"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" - Nullable="false" /><Property Name="Name" Type="Edm.String" /><Property Name="Description" - Type="Edm.String" /><Property Name="ReleaseDate" Type="Edm.DateTimeOffset" - Nullable="false" /><Property Name="DiscontinuedDate" Type="Edm.DateTimeOffset" - /><Property Name="Rating" Type="Edm.Int16" Nullable="false" /><Property Name="Price" - Type="Edm.Double" Nullable="false" /><NavigationProperty Name="Categories" - Type="Collection(ODataDemo.Category)" Partner="Products" /><NavigationProperty - Name="Supplier" Type="ODataDemo.Supplier" Partner="Products" /><NavigationProperty - Name="ProductDetail" Type="ODataDemo.ProductDetail" Partner="Product" /></EntityType><EntityType - Name="FeaturedProduct" BaseType="ODataDemo.Product"><NavigationProperty Name="Advertisement" - Type="ODataDemo.Advertisement" Partner="FeaturedProduct" /></EntityType><EntityType - Name="ProductDetail"><Key><PropertyRef Name="ProductID" /></Key><Property - Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="Details" - Type="Edm.String" /><NavigationProperty Name="Product" Type="ODataDemo.Product" - Partner="ProductDetail" /></EntityType><EntityType Name="Category" OpenType="true"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Categories" /></EntityType><EntityType Name="Supplier"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Location" Type="Edm.GeographyPoint" SRID="Variable" /><Property - Name="Concurrency" Type="Edm.Int32" ConcurrencyMode="Fixed" Nullable="false" - /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Supplier" /></EntityType><ComplexType Name="Address"><Property Name="Street" - Type="Edm.String" /><Property Name="City" Type="Edm.String" /><Property Name="State" - Type="Edm.String" /><Property Name="ZipCode" Type="Edm.String" /><Property - Name="Country" Type="Edm.String" /></ComplexType><EntityType Name="Person"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="PersonDetail" Type="ODataDemo.PersonDetail" - Partner="Person" /></EntityType><EntityType Name="Customer" BaseType="ODataDemo.Person"><Property - Name="TotalExpense" Type="Edm.Decimal" Nullable="false" /></EntityType><EntityType - Name="Employee" BaseType="ODataDemo.Person"><Property Name="EmployeeID" Type="Edm.Int64" - Nullable="false" /><Property Name="HireDate" Type="Edm.DateTimeOffset" Nullable="false" - /><Property Name="Salary" Type="Edm.Single" Nullable="false" /></EntityType><EntityType - Name="PersonDetail"><Key><PropertyRef Name="PersonID" /></Key><Property Name="PersonID" - Type="Edm.Int32" Nullable="false" /><Property Name="Age" Type="Edm.Byte" Nullable="false" - /><Property Name="Gender" Type="Edm.Boolean" Nullable="false" /><Property - Name="Phone" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Photo" Type="Edm.Stream" Nullable="false" /><NavigationProperty - Name="Person" Type="ODataDemo.Person" Partner="PersonDetail" /></EntityType><EntityType - Name="Advertisement" HasStream="true"><Key><PropertyRef Name="ID" /></Key><Property - Name="ID" Type="Edm.Guid" Nullable="false" /><Property Name="Name" Type="Edm.String" - /><Property Name="AirDate" Type="Edm.DateTimeOffset" Nullable="false" /><NavigationProperty - Name="FeaturedProduct" Type="ODataDemo.FeaturedProduct" Partner="Advertisement" - /></EntityType><EntityContainer Name="DemoService"><EntitySet Name="Products" - EntityType="ODataDemo.Product"><NavigationPropertyBinding Path="ODataDemo.FeaturedProduct/Advertisement" - Target="Advertisements" /><NavigationPropertyBinding Path="Categories" Target="Categories" - /><NavigationPropertyBinding Path="Supplier" Target="Suppliers" /><NavigationPropertyBinding - Path="ProductDetail" Target="ProductDetails" /></EntitySet><EntitySet Name="ProductDetails" - EntityType="ODataDemo.ProductDetail"><NavigationPropertyBinding Path="Product" - Target="Products" /></EntitySet><EntitySet Name="Categories" EntityType="ODataDemo.Category"><NavigationPropertyBinding - Path="Products" Target="Products" /></EntitySet><EntitySet Name="Suppliers" - EntityType="ODataDemo.Supplier"><NavigationPropertyBinding Path="Products" - Target="Products" /></EntitySet><EntitySet Name="Persons" EntityType="ODataDemo.Person"><NavigationPropertyBinding - Path="PersonDetail" Target="PersonDetails" /></EntitySet><EntitySet Name="PersonDetails" - EntityType="ODataDemo.PersonDetail"><NavigationPropertyBinding Path="Person" - Target="Persons" /></EntitySet><EntitySet Name="Advertisements" EntityType="ODataDemo.Advertisement"><NavigationPropertyBinding - Path="FeaturedProduct" Target="Products" /></EntitySet></EntityContainer><Annotations - Target="ODataDemo.DemoService"><Annotation Term="Org.OData.Display.V1.Description" - String="This is a sample OData service with vocabularies" /></Annotations><Annotations - Target="ODataDemo.Product"><Annotation Term="Org.OData.Display.V1.Description" - String="All Products available in the online store" /></Annotations><Annotations - Target="ODataDemo.Product/Name"><Annotation Term="Org.OData.Display.V1.DisplayName" - String="Product Name" /></Annotations><Annotations Target="ODataDemo.DemoService/Suppliers"><Annotation - Term="Org.OData.Publication.V1.PublisherName" String="Microsoft Corp." /><Annotation - Term="Org.OData.Publication.V1.PublisherId" String="MSFT" /><Annotation Term="Org.OData.Publication.V1.Keywords" - String="Inventory, Supplier, Advertisers, Sales, Finance" /><Annotation Term="Org.OData.Publication.V1.AttributionUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.AttributionDescription" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.DocumentationUrl - " String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.TermsOfUseUrl" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.PrivacyPolicyUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" - String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " - String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Fri, 08 Dec 2017 06:10:21 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '1981' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Fri, 08 Dec 2017 06:10:21 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit - Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99},{"ID":5,"Name":"Cranberry - Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":6,"Name":"Pink - Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":7,"Name":"DVD - Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD - HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, - refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk - size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products - recorded_at: Fri, 08 Dec 2017 06:10:21 GMT -recorded_with: VCR 2.9.3 diff --git a/spec/fixtures/vcr_cassettes/query_specs.yml b/spec/fixtures/vcr_cassettes/query_specs.yml index 776afc4..d537e51 100644 --- a/spec/fixtures/vcr_cassettes/query_specs.yml +++ b/spec/fixtures/vcr_cassettes/query_specs.yml @@ -2,13 +2,13 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata + uri: https://services.odata.org/V4/OData/OData.svc/$metadata body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -16,32 +16,34 @@ http_interactions: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '6742' - Content-Type: + connection: + - close + content-type: - application/xml;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:52:57 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:22 GMT body: encoding: UTF-8 string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema @@ -120,159 +122,159 @@ http_interactions: String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Mon, 18 Dec 2017 20:35:22 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:52:58 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count + uri: https://services.odata.org/V4/OData/OData.svc/Products/$count body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '2' - Content-Type: + connection: + - close + content-type: - text/plain;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:52:57 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT body: - encoding: UTF-8 + encoding: ASCII-8BIT string: '11' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products/$count - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:52:58 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count?$filter=Name%20eq%20'Bread' + uri: https://services.odata.org/V4/OData/OData.svc/Products/$count?%24filter=Name+eq+%27Bread%27 body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '1' - Content-Type: + connection: + - close + content-type: - text/plain;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:52:58 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT body: - encoding: UTF-8 + encoding: ASCII-8BIT string: '1' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products/$count?$filter=Name%20eq%20'Bread' - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:52:59 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products + uri: https://services.odata.org/V4/OData/OData.svc/Products body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '1981' - Content-Type: + content-length: + - '1982' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:52:58 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina @@ -284,681 +286,228 @@ http_interactions: HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:52:59 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products/$count?%24filter=Name+eq+%27NonExistent%27 body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '888' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + content-length: + - '1' + connection: + - close + content-type: + - text/plain;charset=utf-8 + date: + - Thu, 20 Mar 2025 17:52:58 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit - Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$top=5 - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT + encoding: ASCII-8BIT + string: '0' + http_version: + recorded_at: Thu, 20 Mar 2025 17:52:59 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$skip=5&$top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products(0)?%24expand=Categories&%7B%22%24expand%22+=%3E+%22Categories%22%7D body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '985' - Content-Type: + content-length: + - '271' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:52:59 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":5,"Name":"Cranberry - Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":6,"Name":"Pink - Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":7,"Name":"DVD - Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD - HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, - refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$skip=5&$top=5 - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5,"Categories":[{"ID":0,"Name":"Food"}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:52:59 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$skip=10&$top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products(0) body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '296' - Content-Type: + content-length: + - '233' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:52:59 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk - size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$skip=10&$top=5 - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:00 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$skip=15&$top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '95' - Content-Type: + content-length: + - '889' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:52:59 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$skip=15&$top=5 - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0) - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '232' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0) - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count?$filter=Name%20eq%20'NonExistent' - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '1' - Content-Type: - - text/plain;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Mon, 18 Dec 2017 20:35:23 GMT - body: - encoding: UTF-8 - string: '0' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products/$count?$filter=Name%20eq%20'NonExistent' - recorded_at: Mon, 18 Dec 2017 20:35:23 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)?$expand=Categories - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '270' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Fri, 26 Jan 2018 21:54:45 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5,"Categories":[{"ID":0,"Name":"Food"}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(0)?$expand=Categories - recorded_at: Fri, 26 Jan 2018 21:54:45 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=5 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - cache-control: - - no-cache - content-length: - - '523' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding - server: - - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:53 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit - Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:53 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=5&%24top=5 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - cache-control: - - no-cache - content-length: - - '578' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding - server: - - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:53 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":5,"Name":"Cranberry - Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":6,"Name":"Pink - Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":7,"Name":"DVD - Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD - HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, - refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:53 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=10&%24top=5 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - cache-control: - - no-cache - content-length: - - '343' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding - server: - - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:52 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk - size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:53 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=15&%24top=5 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - cache-control: - - no-cache - content-length: - - '200' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding - server: - - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:53 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:53 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count?%24filter=Name+eq+%27Bread%27 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - text/plain;charset=utf-8 - vary: - - Accept-Encoding - server: - - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:53 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '1' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:54 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint + soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina + Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit + Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:00 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)?%24expand=Categories + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24skip=5&%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -966,123 +515,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '326' + - '986' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:52:59 GMT server: - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:53 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5,"Categories":[{"ID":0,"Name":"Food"}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:54 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count?%24filter=Name+eq+%27NonExistent%27 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: - cache-control: - - no-cache - content-length: - - '120' - content-type: - - text/plain;charset=utf-8 - vary: - - Accept-Encoding - server: - - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" access-control-allow-methods: - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-origin: + - "*" access-control-expose-headers: - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:54 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '0' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:54 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count?%24filter=Name+eq+%27Bread%27&%7B%22%24filter%22=%3E%22Name+eq+%27Bread%27%22%7D - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: cache-control: - no-cache - content-length: - - '120' - content-type: - - text/plain;charset=utf-8 vary: - Accept-Encoding - server: - - Microsoft-IIS/10.0 x-content-type-options: - nosniff odata-version: @@ -1091,32 +545,25 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Mon, 04 Jun 2018 18:44:51 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '1' - http_version: - recorded_at: Mon, 04 Jun 2018 18:44:51 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":5,"Name":"Cranberry + Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":6,"Name":"Pink + Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":7,"Name":"DVD + Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD + HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, + refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:00 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)?%24expand=Categories&%7B%22%24expand%22=%3E%22Categories%22%7D + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24skip=10&%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1124,68 +571,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '326' + - '297' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:00 GMT server: - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" access-control-expose-headers: - DataServiceVersion - date: - - Mon, 04 Jun 2018 18:44:51 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5,"Categories":[{"ID":0,"Name":"Food"}]}' - http_version: - recorded_at: Mon, 04 Jun 2018 18:44:52 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count?%24filter=Name+eq+%27NonExistent%27&%7B%22%24filter%22=%3E%22Name+eq+%27NonExistent%27%22%7D - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: cache-control: - no-cache - content-length: - - '120' - content-type: - - text/plain;charset=utf-8 vary: - Accept-Encoding - server: - - Microsoft-IIS/10.0 x-content-type-options: - nosniff odata-version: @@ -1194,32 +601,21 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Mon, 04 Jun 2018 18:44:51 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '0' - http_version: - recorded_at: Mon, 04 Jun 2018 18:44:52 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk + size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:01 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count?%7B%7D + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24skip=15&%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1227,67 +623,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '121' + - '96' + connection: + - close content-type: - - text/plain;charset=utf-8 - vary: - - Accept-Encoding + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 20 Mar 2025 17:53:00 GMT server: - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" access-control-expose-headers: - DataServiceVersion - date: - - Mon, 04 Jun 2018 18:47:10 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '11' - http_version: - recorded_at: Mon, 04 Jun 2018 18:47:10 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(0)?%7B%7D - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: cache-control: - no-cache - content-length: - - '302' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 vary: - Accept-Encoding - server: - - Microsoft-IIS/10.0 x-content-type-options: - nosniff odata-version: @@ -1296,22 +653,9 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Mon, 04 Jun 2018 18:47:10 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}' - http_version: - recorded_at: Mon, 04 Jun 2018 18:47:11 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:01 GMT recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/schema/complex_type_specs.yml b/spec/fixtures/vcr_cassettes/schema/complex_type_specs.yml index b062141..e1b9e73 100644 --- a/spec/fixtures/vcr_cassettes/schema/complex_type_specs.yml +++ b/spec/fixtures/vcr_cassettes/schema/complex_type_specs.yml @@ -2,13 +2,13 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata + uri: https://services.odata.org/V4/OData/OData.svc/$metadata body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -16,32 +16,34 @@ http_interactions: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '6742' - Content-Type: + connection: + - close + content-type: - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: + date: + - Thu, 20 Mar 2025 17:53:00 GMT + server: + - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Fri, 01 Dec 2017 18:18:14 GMT body: encoding: UTF-8 string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema @@ -120,8 +122,6 @@ http_interactions: String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Fri, 01 Dec 2017 18:18:15 GMT -recorded_with: VCR 2.9.3 + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:01 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/service/request_specs.yml b/spec/fixtures/vcr_cassettes/service/request_specs.yml index 521e81c..c3e5519 100644 --- a/spec/fixtures/vcr_cassettes/service/request_specs.yml +++ b/spec/fixtures/vcr_cassettes/service/request_specs.yml @@ -2,53 +2,53 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products + uri: https://services.odata.org/V4/OData/OData.svc/Products body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '1981' - Content-Type: + content-length: + - '1982' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:01 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Thu, 15 Feb 2018 19:55:09 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina @@ -60,134 +60,6 @@ http_interactions: HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products - recorded_at: Thu, 15 Feb 2018 19:55:10 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '6742' - Content-Type: - - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Thu, 15 Feb 2018 20:48:14 GMT - body: - encoding: UTF-8 - string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema - Namespace="ODataDemo" xmlns="http://docs.oasis-open.org/odata/ns/edm"><EntityType - Name="Product"><Key><PropertyRef Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" - Nullable="false" /><Property Name="Name" Type="Edm.String" /><Property Name="Description" - Type="Edm.String" /><Property Name="ReleaseDate" Type="Edm.DateTimeOffset" - Nullable="false" /><Property Name="DiscontinuedDate" Type="Edm.DateTimeOffset" - /><Property Name="Rating" Type="Edm.Int16" Nullable="false" /><Property Name="Price" - Type="Edm.Double" Nullable="false" /><NavigationProperty Name="Categories" - Type="Collection(ODataDemo.Category)" Partner="Products" /><NavigationProperty - Name="Supplier" Type="ODataDemo.Supplier" Partner="Products" /><NavigationProperty - Name="ProductDetail" Type="ODataDemo.ProductDetail" Partner="Product" /></EntityType><EntityType - Name="FeaturedProduct" BaseType="ODataDemo.Product"><NavigationProperty Name="Advertisement" - Type="ODataDemo.Advertisement" Partner="FeaturedProduct" /></EntityType><EntityType - Name="ProductDetail"><Key><PropertyRef Name="ProductID" /></Key><Property - Name="ProductID" Type="Edm.Int32" Nullable="false" /><Property Name="Details" - Type="Edm.String" /><NavigationProperty Name="Product" Type="ODataDemo.Product" - Partner="ProductDetail" /></EntityType><EntityType Name="Category" OpenType="true"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Categories" /></EntityType><EntityType Name="Supplier"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Location" Type="Edm.GeographyPoint" SRID="Variable" /><Property - Name="Concurrency" Type="Edm.Int32" ConcurrencyMode="Fixed" Nullable="false" - /><NavigationProperty Name="Products" Type="Collection(ODataDemo.Product)" - Partner="Supplier" /></EntityType><ComplexType Name="Address"><Property Name="Street" - Type="Edm.String" /><Property Name="City" Type="Edm.String" /><Property Name="State" - Type="Edm.String" /><Property Name="ZipCode" Type="Edm.String" /><Property - Name="Country" Type="Edm.String" /></ComplexType><EntityType Name="Person"><Key><PropertyRef - Name="ID" /></Key><Property Name="ID" Type="Edm.Int32" Nullable="false" /><Property - Name="Name" Type="Edm.String" /><NavigationProperty Name="PersonDetail" Type="ODataDemo.PersonDetail" - Partner="Person" /></EntityType><EntityType Name="Customer" BaseType="ODataDemo.Person"><Property - Name="TotalExpense" Type="Edm.Decimal" Nullable="false" /></EntityType><EntityType - Name="Employee" BaseType="ODataDemo.Person"><Property Name="EmployeeID" Type="Edm.Int64" - Nullable="false" /><Property Name="HireDate" Type="Edm.DateTimeOffset" Nullable="false" - /><Property Name="Salary" Type="Edm.Single" Nullable="false" /></EntityType><EntityType - Name="PersonDetail"><Key><PropertyRef Name="PersonID" /></Key><Property Name="PersonID" - Type="Edm.Int32" Nullable="false" /><Property Name="Age" Type="Edm.Byte" Nullable="false" - /><Property Name="Gender" Type="Edm.Boolean" Nullable="false" /><Property - Name="Phone" Type="Edm.String" /><Property Name="Address" Type="ODataDemo.Address" - /><Property Name="Photo" Type="Edm.Stream" Nullable="false" /><NavigationProperty - Name="Person" Type="ODataDemo.Person" Partner="PersonDetail" /></EntityType><EntityType - Name="Advertisement" HasStream="true"><Key><PropertyRef Name="ID" /></Key><Property - Name="ID" Type="Edm.Guid" Nullable="false" /><Property Name="Name" Type="Edm.String" - /><Property Name="AirDate" Type="Edm.DateTimeOffset" Nullable="false" /><NavigationProperty - Name="FeaturedProduct" Type="ODataDemo.FeaturedProduct" Partner="Advertisement" - /></EntityType><EntityContainer Name="DemoService"><EntitySet Name="Products" - EntityType="ODataDemo.Product"><NavigationPropertyBinding Path="ODataDemo.FeaturedProduct/Advertisement" - Target="Advertisements" /><NavigationPropertyBinding Path="Categories" Target="Categories" - /><NavigationPropertyBinding Path="Supplier" Target="Suppliers" /><NavigationPropertyBinding - Path="ProductDetail" Target="ProductDetails" /></EntitySet><EntitySet Name="ProductDetails" - EntityType="ODataDemo.ProductDetail"><NavigationPropertyBinding Path="Product" - Target="Products" /></EntitySet><EntitySet Name="Categories" EntityType="ODataDemo.Category"><NavigationPropertyBinding - Path="Products" Target="Products" /></EntitySet><EntitySet Name="Suppliers" - EntityType="ODataDemo.Supplier"><NavigationPropertyBinding Path="Products" - Target="Products" /></EntitySet><EntitySet Name="Persons" EntityType="ODataDemo.Person"><NavigationPropertyBinding - Path="PersonDetail" Target="PersonDetails" /></EntitySet><EntitySet Name="PersonDetails" - EntityType="ODataDemo.PersonDetail"><NavigationPropertyBinding Path="Person" - Target="Persons" /></EntitySet><EntitySet Name="Advertisements" EntityType="ODataDemo.Advertisement"><NavigationPropertyBinding - Path="FeaturedProduct" Target="Products" /></EntitySet></EntityContainer><Annotations - Target="ODataDemo.DemoService"><Annotation Term="Org.OData.Display.V1.Description" - String="This is a sample OData service with vocabularies" /></Annotations><Annotations - Target="ODataDemo.Product"><Annotation Term="Org.OData.Display.V1.Description" - String="All Products available in the online store" /></Annotations><Annotations - Target="ODataDemo.Product/Name"><Annotation Term="Org.OData.Display.V1.DisplayName" - String="Product Name" /></Annotations><Annotations Target="ODataDemo.DemoService/Suppliers"><Annotation - Term="Org.OData.Publication.V1.PublisherName" String="Microsoft Corp." /><Annotation - Term="Org.OData.Publication.V1.PublisherId" String="MSFT" /><Annotation Term="Org.OData.Publication.V1.Keywords" - String="Inventory, Supplier, Advertisers, Sales, Finance" /><Annotation Term="Org.OData.Publication.V1.AttributionUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.AttributionDescription" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.DocumentationUrl - " String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.TermsOfUseUrl" - String="All rights reserved" /><Annotation Term="Org.OData.Publication.V1.PrivacyPolicyUrl" - String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" - String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " - String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Thu, 15 Feb 2018 20:48:14 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:02 GMT recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/service_registry_specs.yml b/spec/fixtures/vcr_cassettes/service_registry_specs.yml index 04b38e4..1be29b7 100644 --- a/spec/fixtures/vcr_cassettes/service_registry_specs.yml +++ b/spec/fixtures/vcr_cassettes/service_registry_specs.yml @@ -2,48 +2,48 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata + uri: https://services.odata.org/V4/OData/OData.svc/$metadata body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '6742' - Content-Type: + connection: + - close + content-type: - application/xml;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:52:57 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: encoding: UTF-8 string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema @@ -122,8 +122,6 @@ http_interactions: String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Tue, 16 Jan 2018 20:30:39 GMT -recorded_with: VCR 2.9.3 + http_version: + recorded_at: Thu, 20 Mar 2025 17:52:58 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/service_specs.yml b/spec/fixtures/vcr_cassettes/service_specs.yml index 9bc1475..cef03d7 100644 --- a/spec/fixtures/vcr_cassettes/service_specs.yml +++ b/spec/fixtures/vcr_cassettes/service_specs.yml @@ -2,46 +2,50 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata + uri: https://services.odata.org/V4/OData/OData.svc/$metadata body: encoding: US-ASCII string: '' headers: + X-Custom-Header: + - foo User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - DataServiceVersion: - - '3.0' + - Faraday v0.17.6 + OData-Version: + - '4.0' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '6742' - Content-Type: + connection: + - close + content-type: - application/xml;charset=utf-8 - Server: - - Microsoft-IIS/8.0 - X-Content-Type-Options: + date: + - Thu, 20 Mar 2025 17:53:01 GMT + server: + - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Wed, 22 Nov 2017 21:56:21 GMT body: encoding: UTF-8 string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema @@ -120,8 +124,6 @@ http_interactions: String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Wed, 22 Nov 2017 21:56:24 GMT -recorded_with: VCR 2.9.3 + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:02 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/usage_example_specs.yml b/spec/fixtures/vcr_cassettes/usage_example_specs.yml index d5a4c59..6dc263b 100644 --- a/spec/fixtures/vcr_cassettes/usage_example_specs.yml +++ b/spec/fixtures/vcr_cassettes/usage_example_specs.yml @@ -2,48 +2,48 @@ http_interactions: - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/$metadata + uri: https://services.odata.org/V4/OData/OData.svc/$metadata body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: + content-length: - '6742' - Content-Type: + connection: + - close + content-type: - application/xml;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:09 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: encoding: UTF-8 string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:DataServices><Schema @@ -122,643 +122,394 @@ http_interactions: String="http://www.odata.org/" /><Annotation Term="Org.OData.Publication.V1.LastModified" String="4/2/2013" /><Annotation Term="Org.OData.Publication.V1.ImageUrl " String="http://www.odata.org/" /></Annotations></Schema></edmx:DataServices></edmx:Edmx> - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata - recorded_at: Tue, 16 Jan 2018 20:30:38 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:09 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(1) + uri: https://services.odata.org/V4/OData/OData.svc/Products(2) body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 + Authorization: + - Basic dXNlcm5hbWU6cGFzc3dvcmQ= OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '226' - Content-Type: + content-length: + - '257' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:09 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products(1) - recorded_at: Tue, 16 Jan 2018 20:30:38 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":2,"Name":"Vint + soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:10 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products/$count + uri: https://services.odata.org/V4/OData/OData.svc/Products(3) body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 + Authorization: + - Bearer token OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '2' - Content-Type: - - text/plain;charset=utf-8 - Server: + content-length: + - '267' + connection: + - close + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Thu, 20 Mar 2025 17:53:10 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: - encoding: UTF-8 - string: '11' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products/$count - recorded_at: Tue, 16 Jan 2018 20:30:38 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":3,"Name":"Havina + Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:10 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$top=1 + uri: https://services.odata.org/V4/OData/OData.svc/Products(1) body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '236' - Content-Type: + content-length: + - '227' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:10 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$top=1 - recorded_at: Tue, 16 Jan 2018 20:30:38 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:10 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$top=1 + uri: https://services.odata.org/V4/OData/OData.svc/Products/$count body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '236' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + content-length: + - '2' + connection: + - close + content-type: + - text/plain;charset=utf-8 + date: + - Thu, 20 Mar 2025 17:53:10 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$top=1 - recorded_at: Tue, 16 Jan 2018 20:30:38 GMT + encoding: ASCII-8BIT + string: '11' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:11 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24top=1 body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '1981' - Content-Type: + content-length: + - '237' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:11 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit - Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99},{"ID":5,"Name":"Cranberry - Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":6,"Name":"Pink - Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":7,"Name":"DVD - Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD - HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, - refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk - size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products - recorded_at: Tue, 16 Jan 2018 20:30:38 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:11 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$filter=Name%20eq%20'Milk' + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24top=1 body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '230' - Content-Type: + content-length: + - '237' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:11 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$filter=Name%20eq%20'Milk' - recorded_at: Tue, 16 Jan 2018 20:30:38 GMT + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:11 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products body: encoding: US-ASCII string: '' headers: User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus + - Faraday v0.17.6 OData-Version: - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' response: status: code: 200 message: OK headers: - Cache-Control: - - no-cache - Content-Length: - - '888' - Content-Type: + content-length: + - '1982' + connection: + - close + content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: + date: + - Thu, 20 Mar 2025 17:53:11 GMT + server: - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: + access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit - Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$top=5 - recorded_at: Tue, 16 Jan 2018 20:30:39 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$skip=5&$top=5 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: - no-cache - Content-Length: - - '985' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: + vary: + - Accept-Encoding + x-content-type-options: - nosniff - OData-Version: + odata-version: - 4.0; - X-AspNet-Version: + x-aspnet-version: - 4.0.30319 - X-Powered-By: + x-powered-by: - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":5,"Name":"Cranberry + encoding: ASCII-8BIT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint + soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina + Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit + Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99},{"ID":5,"Name":"Cranberry Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":6,"Name":"Pink Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":7,"Name":"DVD Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, - refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$skip=5&$top=5 - recorded_at: Tue, 16 Jan 2018 20:30:39 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$skip=10&$top=5 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '296' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk + refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$skip=10&$top=5 - recorded_at: Tue, 16 Jan 2018 20:30:39 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$skip=15&$top=5 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '95' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$skip=15&$top=5 - recorded_at: Tue, 16 Jan 2018 20:30:39 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?$orderby=Name - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - OData-Version: - - '4.0' - Accept: - - application/atom+xml,application/json,text/plain - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-cache - Content-Length: - - '1981' - Content-Type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - Server: - - Microsoft-IIS/10.0 - X-Content-Type-Options: - - nosniff - OData-Version: - - 4.0; - X-AspNet-Version: - - 4.0.30319 - X-Powered-By: - - ASP.NET - Access-Control-Allow-Origin: - - "*" - Access-Control-Allow-Methods: - - GET - Access-Control-Allow-Headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - Access-Control-Expose-Headers: - - DataServiceVersion - Date: - - Tue, 16 Jan 2018 20:30:37 GMT - body: - encoding: UTF-8 - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk - size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99},{"ID":5,"Name":"Cranberry - Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":7,"Name":"DVD - Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":4,"Name":"Fruit - Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99},{"ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":8,"Name":"LCD - HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, - refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":6,"Name":"Pink - Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9}]}' - http_version: '1.1' - adapter_metadata: - effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$orderby=Name - recorded_at: Tue, 16 Jan 2018 20:30:39 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:11 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24filter=Name+eq+%27Milk%27 + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -766,72 +517,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '304' + - '889' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:11 GMT server: - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" access-control-expose-headers: - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:50 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:50 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=5 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: cache-control: - no-cache - content-length: - - '523' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 vary: - Accept-Encoding - server: - - Microsoft-IIS/10.0 x-content-type-options: - nosniff odata-version: @@ -840,41 +547,25 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:50 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9},{"ID":3,"Name":"Havina Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":4,"Name":"Fruit Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:51 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:12 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=5&%24top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24skip=5&%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -882,16 +573,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '578' + - '986' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:12 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding x-content-type-options: - nosniff odata-version: @@ -900,41 +603,25 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:50 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":5,"Name":"Cranberry + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":5,"Name":"Cranberry Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":6,"Name":"Pink Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":7,"Name":"DVD Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:51 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:12 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=10&%24top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24skip=10&%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -942,16 +629,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '343' + - '297' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:12 GMT server: - Microsoft-IIS/10.0 + access-control-allow-headers: + - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" + access-control-expose-headers: + - DataServiceVersion + cache-control: + - no-cache + vary: + - Accept-Encoding x-content-type-options: - nosniff odata-version: @@ -960,37 +659,21 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:50 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:51 GMT + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:12 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=15&%24top=5 + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24skip=15&%24top=5 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -998,71 +681,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '200' + - '96' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:12 GMT server: - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" access-control-expose-headers: - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:51 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:51 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24orderby=Name - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: cache-control: - no-cache - content-length: - - '882' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 vary: - Accept-Encoding - server: - - Microsoft-IIS/10.0 x-content-type-options: - nosniff odata-version: @@ -1071,47 +711,20 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:50 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk - size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99},{"ID":5,"Name":"Cranberry - Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":7,"Name":"DVD - Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":4,"Name":"Fruit - Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99},{"ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":8,"Name":"LCD - HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, - refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"ID":1,"Name":"Milk","Description":"Low - fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":6,"Name":"Pink - Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:51 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:12 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=1 + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24orderby=Name body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1119,72 +732,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '308' + - '1982' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:13 GMT server: - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" access-control-expose-headers: - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:51 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:51 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=1 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: cache-control: - no-cache - content-length: - - '308' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 vary: - Accept-Encoding - server: - - Microsoft-IIS/10.0 x-content-type-options: - nosniff odata-version: @@ -1193,39 +762,31 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Tue, 24 Apr 2018 01:58:51 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole - grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}' - http_version: - recorded_at: Tue, 24 Apr 2018 01:58:51 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole + grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk + size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99},{"ID":5,"Name":"Cranberry + Juice","Description":"16-Ounce Plastic Bottles (Pack of 12)","ReleaseDate":"2006-08-04T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.8},{"ID":7,"Name":"DVD + Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":4,"Name":"Fruit + Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99},{"ID":3,"Name":"Havina + Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9},{"ID":8,"Name":"LCD + HDTV","Description":"42 inch 1080p LCD with Built-in Blu-ray Disc Player","ReleaseDate":"2008-05-08T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":1088.8},{"@odata.type":"#ODataDemo.FeaturedProduct","ID":9,"Name":"Lemonade","Description":"Classic, + refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":6,"Name":"Pink + Lemonade","Description":"36 Ounce Cans (Pack of 3)","ReleaseDate":"2006-11-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":18.8},{"ID":2,"Name":"Vint + soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:13 GMT - request: method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(2) + uri: https://services.odata.org/V4/OData/OData.svc/Products?%24filter=Name+eq+%27Milk%27 body: encoding: US-ASCII string: '' headers: User-Agent: - - Faraday v0.15.0 - Authorization: - - Basic dXNlcm5hbWU6cGFzc3dvcmQ= - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain + - Faraday v0.17.6 OData-Version: - '4.0' response: @@ -1233,74 +794,28 @@ http_interactions: code: 200 message: OK headers: - cache-control: - - no-cache content-length: - - '325' + - '231' + connection: + - close content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 - vary: - - Accept-Encoding + date: + - Thu, 20 Mar 2025 17:53:13 GMT server: - Microsoft-IIS/10.0 - x-content-type-options: - - nosniff - odata-version: - - 4.0; - x-aspnet-version: - - 4.0.30319 - x-powered-by: - - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET access-control-allow-headers: - Accept, Origin, Content-Type, MaxDataServiceVersion + access-control-allow-methods: + - GET + access-control-allow-origin: + - "*" access-control-expose-headers: - DataServiceVersion - date: - - Thu, 26 Apr 2018 21:29:37 GMT - connection: - - close - body: - encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":2,"Name":"Vint - soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9}' - http_version: - recorded_at: Thu, 26 Apr 2018 21:29:37 GMT -- request: - method: get - uri: http://services.odata.org/V4/OData/OData.svc/Products(3) - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Faraday v0.15.0 - Authorization: - - Bearer token - Accept: - - application/atom+xml,application/json,application/xml,text/plain - Content-Type: - - application/atom+xml,application/json,application/xml,text/plain - OData-Version: - - '4.0' - response: - status: - code: 200 - message: OK - headers: cache-control: - no-cache - content-length: - - '312' - content-type: - - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 vary: - Accept-Encoding - server: - - Microsoft-IIS/10.0 x-content-type-options: - nosniff odata-version: @@ -1309,22 +824,10 @@ http_interactions: - 4.0.30319 x-powered-by: - ASP.NET - access-control-allow-origin: - - "*" - access-control-allow-methods: - - GET - access-control-allow-headers: - - Accept, Origin, Content-Type, MaxDataServiceVersion - access-control-expose-headers: - - DataServiceVersion - date: - - Thu, 26 Apr 2018 21:41:27 GMT - connection: - - close body: encoding: ASCII-8BIT - string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":3,"Name":"Havina - Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9}' - http_version: - recorded_at: Thu, 26 Apr 2018 21:41:27 GMT + string: '{"@odata.context":"https://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":1,"Name":"Milk","Description":"Low + fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5}]}' + http_version: + recorded_at: Thu, 20 Mar 2025 17:53:14 GMT recorded_with: VCR 4.0.0 diff --git a/spec/frodata/entity/shared_examples.rb b/spec/frodata/entity/shared_examples.rb index 0f9b24c..1fcc33d 100644 --- a/spec/frodata/entity/shared_examples.rb +++ b/spec/frodata/entity/shared_examples.rb @@ -5,7 +5,7 @@ it { expect(subject.type).to eq('ODataDemo.Product') } it { expect(subject.namespace).to eq('ODataDemo') } it { expect(subject.service_name).to eq('ODataDemo') } - it { expect(subject.context).to eq('http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity') } + it { expect(subject.context).to eq('https://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity') } it { expect(subject.id).to eq('Products(0)') } # Check property types @@ -59,7 +59,7 @@ it { expect(subject.type).to eq('ODataDemo.Supplier') } it { expect(subject.namespace).to eq('ODataDemo') } it { expect(subject.service_name).to eq('ODataDemo') } - it { expect(subject.context).to eq('http://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity') } + it { expect(subject.context).to eq('https://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity') } it { expect(subject.id).to eq('Suppliers(0)') } # Check property types diff --git a/spec/frodata/entity_container_spec.rb b/spec/frodata/entity_container_spec.rb index 1cb83f2..7742087 100644 --- a/spec/frodata/entity_container_spec.rb +++ b/spec/frodata/entity_container_spec.rb @@ -3,7 +3,7 @@ describe FrOData::EntityContainer do let(:subject) { FrOData::EntityContainer.new(service) } let(:service) do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', metadata_file: metadata_file) + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', metadata_file: metadata_file) end let(:metadata_file) { 'spec/fixtures/files/metadata.xml' } diff --git a/spec/frodata/entity_set_spec.rb b/spec/frodata/entity_set_spec.rb index 1fdd1e9..93b160b 100644 --- a/spec/frodata/entity_set_spec.rb +++ b/spec/frodata/entity_set_spec.rb @@ -2,7 +2,7 @@ describe FrOData::EntitySet, vcr: {cassette_name: 'entity_set_specs'} do before(:example) do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') end let(:subject) { FrOData::EntitySet.new(options) } diff --git a/spec/frodata/entity_spec.rb b/spec/frodata/entity_spec.rb index 77ecd7b..b48726c 100644 --- a/spec/frodata/entity_spec.rb +++ b/spec/frodata/entity_spec.rb @@ -3,7 +3,7 @@ describe FrOData::Entity, vcr: {cassette_name: 'entity_specs'} do before(:example) do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') end let(:subject) { FrOData::Entity.new(options) } diff --git a/spec/frodata/navigation_property/proxy_spec.rb b/spec/frodata/navigation_property/proxy_spec.rb index a4f9e5a..d34a2d9 100644 --- a/spec/frodata/navigation_property/proxy_spec.rb +++ b/spec/frodata/navigation_property/proxy_spec.rb @@ -2,7 +2,7 @@ describe FrOData::NavigationProperty::Proxy, vcr: {cassette_name: 'navigation_property_proxy_specs'} do before :each do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') end let(:entity) { FrOData::ServiceRegistry['ODataDemo']['Products'][1] } diff --git a/spec/frodata/property_spec.rb b/spec/frodata/property_spec.rb index 51b0a71..9e147f1 100644 --- a/spec/frodata/property_spec.rb +++ b/spec/frodata/property_spec.rb @@ -2,7 +2,7 @@ describe FrOData::Property do let(:service) do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', metadata_file: metadata_file) + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', metadata_file: metadata_file) end let(:metadata_file) { 'spec/fixtures/files/metadata.xml' } let(:subject) { FrOData::Property.new('PropertyName', '1') } diff --git a/spec/frodata/query_spec.rb b/spec/frodata/query_spec.rb index f7eacdc..7e9a82d 100644 --- a/spec/frodata/query_spec.rb +++ b/spec/frodata/query_spec.rb @@ -2,7 +2,7 @@ describe FrOData::Query, vcr: {cassette_name: 'query_specs'} do before(:example) do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') end let(:subject) { FrOData::Query.new(entity_set) } diff --git a/spec/frodata/schema/complex_type_spec.rb b/spec/frodata/schema/complex_type_spec.rb index aed405b..e1572cd 100644 --- a/spec/frodata/schema/complex_type_spec.rb +++ b/spec/frodata/schema/complex_type_spec.rb @@ -2,7 +2,7 @@ describe FrOData::Schema::ComplexType, vcr: {cassette_name: 'schema/complex_type_specs'} do before(:example) do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo') end let(:service) { FrOData::ServiceRegistry['ODataDemo'] } diff --git a/spec/frodata/schema/enum_type_spec.rb b/spec/frodata/schema/enum_type_spec.rb index 1ef6294..d85dd8f 100644 --- a/spec/frodata/schema/enum_type_spec.rb +++ b/spec/frodata/schema/enum_type_spec.rb @@ -2,7 +2,7 @@ describe FrOData::Schema::EnumType, vcr: {cassette_name: 'schema/enum_type_specs'} do before(:example) do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo', metadata_file: metadata_file) + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', name: 'ODataDemo', metadata_file: metadata_file) end let(:metadata_file) { 'spec/fixtures/files/metadata.xml' } diff --git a/spec/frodata/schema_spec.rb b/spec/frodata/schema_spec.rb index 6f592ed..7c2ae16 100644 --- a/spec/frodata/schema_spec.rb +++ b/spec/frodata/schema_spec.rb @@ -3,7 +3,7 @@ describe FrOData::Schema do let(:subject) { FrOData::Schema.new(schema_xml, service) } let(:service) do - FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', metadata_file: metadata_file) + FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', metadata_file: metadata_file) end let(:metadata_file) { 'spec/fixtures/files/metadata.xml' } let(:schema_xml) { service.metadata.xpath('//Schema').first } diff --git a/spec/frodata/service/request_spec.rb b/spec/frodata/service/request_spec.rb index c43313f..a9c12db 100644 --- a/spec/frodata/service/request_spec.rb +++ b/spec/frodata/service/request_spec.rb @@ -3,12 +3,12 @@ describe FrOData::Service::Request, vcr: {cassette_name: 'service/request_specs'} do let(:subject) { FrOData::Service::Request.new(service, 'Products') } let(:service) { FrOData::Service.new(service_url, name: 'ODataDemo', metadata_file: metadata_file) } - let(:service_url) { 'http://services.odata.org/V4/OData/OData.svc' } + let(:service_url) { 'https://services.odata.org/V4/OData/OData.svc' } let(:metadata_file) { 'spec/fixtures/files/metadata.xml' } describe '#url' do it 'returns the full request URL' do - expect(subject.url).to eq('http://services.odata.org/V4/OData/OData.svc/Products') + expect(subject.url).to eq('https://services.odata.org/V4/OData/OData.svc/Products') end it 'properly escapes control characters' do diff --git a/spec/frodata/service/response_spec.rb b/spec/frodata/service/response_spec.rb index 94128a0..1eaae3a 100644 --- a/spec/frodata/service/response_spec.rb +++ b/spec/frodata/service/response_spec.rb @@ -23,7 +23,7 @@ describe FrOData::Service::Response, vcr: {cassette_name: 'service/response_specs'} do let(:subject) { FrOData::Service::Response.new(service, entity_set.query) { response } } let(:service) { FrOData::Service.new(service_url, name: 'ODataDemo', metadata_file: metadata_file) } - let(:service_url) { 'http://services.odata.org/V4/OData/OData.svc' } + let(:service_url) { 'https://services.odata.org/V4/OData/OData.svc' } let(:metadata_file) { 'spec/fixtures/files/metadata.xml' } let(:entity_set) { service['Products'] } let(:response) do diff --git a/spec/frodata/service_registry_spec.rb b/spec/frodata/service_registry_spec.rb index 83b317e..f4a6054 100644 --- a/spec/frodata/service_registry_spec.rb +++ b/spec/frodata/service_registry_spec.rb @@ -2,7 +2,7 @@ describe FrOData::ServiceRegistry, vcr: {cassette_name: 'service_registry_specs'} do let(:subject) { FrOData::ServiceRegistry } - let(:sample_service) { FrOData::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'demoService') } + let(:sample_service) { FrOData::Service.new('https://services.odata.org/V4/OData/OData.svc', name: 'demoService') } it { expect(subject).to respond_to(:add) } it { expect(subject).to respond_to(:[]) } @@ -13,6 +13,6 @@ end it { expect(subject['demoService']).to eq(sample_service) } - it { expect(subject['http://services.odata.org/V4/OData/OData.svc']).to eq(sample_service) } + it { expect(subject['https://services.odata.org/V4/OData/OData.svc']).to eq(sample_service) } end end diff --git a/spec/frodata/service_spec.rb b/spec/frodata/service_spec.rb index c6a294d..8cafd24 100644 --- a/spec/frodata/service_spec.rb +++ b/spec/frodata/service_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe FrOData::Service, vcr: {cassette_name: 'service_specs'} do - let(:service_url) { 'http://services.odata.org/V4/OData/OData.svc' } + let(:service_url) { 'https://services.odata.org/V4/OData/OData.svc' } let(:metadata_file) { 'spec/fixtures/files/metadata.xml' } let(:subject) { FrOData::Service.new(service_url, name: 'ODataDemo', metadata_file: metadata_file) } diff --git a/spec/frodata/usage_example_spec.rb b/spec/frodata/usage_example_spec.rb index cb7a5ba..6148035 100644 --- a/spec/frodata/usage_example_spec.rb +++ b/spec/frodata/usage_example_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe 'Usage examples', vcr: { cassette_name: 'usage_example_specs' } do - let(:service_url) { 'http://services.odata.org/V4/OData/OData.svc' } + let(:service_url) { 'https://services.odata.org/V4/OData/OData.svc' } let(:service) { FrOData::Service.new(service_url, name: 'ODataDemo') } describe 'getting information' do From faf28837300a1a43756b3724299da4797a178b5a Mon Sep 17 00:00:00 2001 From: Elijah Miller <elijah.miller@gmail.com> Date: Thu, 20 Mar 2025 14:50:59 -0400 Subject: [PATCH 10/14] Address deprecation warning about logger becoming a gem as well. --- frodata.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/frodata.gemspec b/frodata.gemspec index a41652b..0ab28c3 100644 --- a/frodata.gemspec +++ b/frodata.gemspec @@ -25,6 +25,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'andand', '~> 1.3' spec.add_dependency 'bigdecimal' spec.add_dependency 'base64' + spec.add_dependency 'logger' spec.add_development_dependency 'bundler', '>= 2.6' spec.add_development_dependency 'rake', '>= 13.2' From 16fe4dfb27167f3617872bf6b47cbe55ceb6c732 Mon Sep 17 00:00:00 2001 From: Elijah Miller <elijah.miller@gmail.com> Date: Thu, 20 Mar 2025 14:56:12 -0400 Subject: [PATCH 11/14] Address all rspec deprecation warnings. --- spec/frodata/properties/date_time_offset_spec.rb | 8 ++++---- spec/frodata/property_spec.rb | 2 +- spec/spec_helper.rb | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/spec/frodata/properties/date_time_offset_spec.rb b/spec/frodata/properties/date_time_offset_spec.rb index 953f421..44b1419 100644 --- a/spec/frodata/properties/date_time_offset_spec.rb +++ b/spec/frodata/properties/date_time_offset_spec.rb @@ -16,15 +16,15 @@ subject.value }.call).to eq(new_datetime) } - it { expect(lambda { + it { expect { subject.value = nil - }).not_to raise_error } + }.not_to raise_error } context 'with allows_nil option set to false' do let(:subject) { FrOData::Properties::DateTimeOffset.new('DateTime', '2000-01-01T16:00:00Z-09:00', allows_nil: false) } - it { expect(lambda { + it { expect { subject.value = nil - }).to raise_error(ArgumentError) } + }.to raise_error(ArgumentError) } end end diff --git a/spec/frodata/property_spec.rb b/spec/frodata/property_spec.rb index 9e147f1..93ebc97 100644 --- a/spec/frodata/property_spec.rb +++ b/spec/frodata/property_spec.rb @@ -31,7 +31,7 @@ describe '#type' do it { expect(subject).to respond_to(:type) } - it { expect(lambda {subject.type}).to raise_error(NotImplementedError) } + it { expect { subject.type }.to raise_error(NotImplementedError) } end describe '#allows_nil?' do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d9ccf5e..01eb041 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -29,4 +29,6 @@ # reasons to have to flush the service registry except in testing. FrOData::ServiceRegistry.instance.send(:flush) end + + # config.raise_errors_for_deprecations! end From 5077eccf8d281622b0fd3b86115b088b92e0c360 Mon Sep 17 00:00:00 2001 From: Elijah Miller <elijah.miller@gmail.com> Date: Thu, 20 Mar 2025 15:08:13 -0400 Subject: [PATCH 12/14] Remove andand dependency in favor of safe navigation operator(&.). --- frodata.gemspec | 1 - lib/frodata.rb | 1 - lib/frodata/entity.rb | 9 +++++---- lib/frodata/properties/date_time.rb | 2 +- lib/frodata/properties/geography/base.rb | 2 +- lib/frodata/property.rb | 4 ++-- lib/frodata/schema/enum_type.rb | 2 +- lib/frodata/service/response/atom.rb | 2 +- lib/frodata/service/response/json.rb | 2 +- lib/frodata/service/response/xml.rb | 2 +- 10 files changed, 13 insertions(+), 14 deletions(-) diff --git a/frodata.gemspec b/frodata.gemspec index 0ab28c3..763785a 100644 --- a/frodata.gemspec +++ b/frodata.gemspec @@ -22,7 +22,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'nokogiri', '~> 1.8' spec.add_dependency 'faraday', '~> 0.15' - spec.add_dependency 'andand', '~> 1.3' spec.add_dependency 'bigdecimal' spec.add_dependency 'base64' spec.add_dependency 'logger' diff --git a/lib/frodata.rb b/lib/frodata.rb index 9581280..e0377a5 100644 --- a/lib/frodata.rb +++ b/lib/frodata.rb @@ -5,7 +5,6 @@ require 'nokogiri' require 'faraday' require 'logger' -require 'andand' require 'json' # require 'active_support' diff --git a/lib/frodata/entity.rb b/lib/frodata/entity.rb index 31c5ac2..4969ad0 100644 --- a/lib/frodata/entity.rb +++ b/lib/frodata/entity.rb @@ -90,8 +90,8 @@ def get_property(property_name) def property_names [ - @properties_xml_value.andand.keys, - @properties.andand.keys + @properties_xml_value&.keys, + @properties&.keys ].compact.flatten end @@ -205,7 +205,7 @@ def to_hash # @return [String] def id @id ||= lambda { - entity_set = self.entity_set.andand.name + entity_set = self.entity_set&.name entity_set ||= context.split('#').last.split('/').first "#{entity_set}(#{self[primary_key]})" }.call @@ -279,7 +279,8 @@ def set_property_lazy_load(name, xml_value ) def self.process_properties(entity, xml_doc) entity.instance_eval do unless instance_variable_get(:@context) - context = xml_doc.xpath('/entry').first.andand['context'] + first_entry = xml_doc.xpath('/entry').first + context = first_entry['context'] if first_entry instance_variable_set(:@context, context) end diff --git a/lib/frodata/properties/date_time.rb b/lib/frodata/properties/date_time.rb index fa7fef7..c773292 100644 --- a/lib/frodata/properties/date_time.rb +++ b/lib/frodata/properties/date_time.rb @@ -31,7 +31,7 @@ def type # Value to be used in JSON. # @return [String] def xml_value - @value.andand.sub(/[\+\-]00:00$/, 'Z') + @value&.sub(/[\+\-]00:00$/, 'Z') end # Value to be used in JSON. diff --git a/lib/frodata/properties/geography/base.rb b/lib/frodata/properties/geography/base.rb index 42b6b76..c15e2cb 100644 --- a/lib/frodata/properties/geography/base.rb +++ b/lib/frodata/properties/geography/base.rb @@ -105,7 +105,7 @@ def to_xml(xml_builder) # @param options [Hash] # @return [FrOData::Properties::Geography] def self.from_xml(property_xml, options = {}) - if property_xml.attributes['null'].andand.value == 'true' + if property_xml.attributes['null']&.value == 'true' content = nil else content = parse_xml(property_xml) diff --git a/lib/frodata/property.rb b/lib/frodata/property.rb index 1e0d930..db1ad25 100644 --- a/lib/frodata/property.rb +++ b/lib/frodata/property.rb @@ -100,7 +100,7 @@ def to_xml(xml_builder) # @param options [Hash] # @return [FrOData::Property] def self.from_xml(property_xml, options = {}) - if property_xml.attributes['null'].andand.value == 'true' + if property_xml.attributes['null']&.value == 'true' content = nil else content = property_xml.content @@ -124,7 +124,7 @@ def service def logger # Use a dummy logger if service is not available (-> unit tests) - @logger ||= service.andand.logger || Logger.new('/dev/null') + @logger ||= service&.logger || Logger.new('/dev/null') end def validation_error(message) diff --git a/lib/frodata/schema/enum_type.rb b/lib/frodata/schema/enum_type.rb index c3151c3..2e4aae0 100644 --- a/lib/frodata/schema/enum_type.rb +++ b/lib/frodata/schema/enum_type.rb @@ -86,7 +86,7 @@ def options def collect_members Hash[type_definition.xpath('./Member').map.with_index do |member_xml, index| member_name = member_xml.attributes['Name'].value - member_value = member_xml.attributes['Value'].andand.value.andand.to_i + member_value = member_xml.attributes['Value']&.value&.to_i [member_value || index, member_name] end] end diff --git a/lib/frodata/service/response/atom.rb b/lib/frodata/service/response/atom.rb index 4512a53..aabae3d 100644 --- a/lib/frodata/service/response/atom.rb +++ b/lib/frodata/service/response/atom.rb @@ -15,7 +15,7 @@ def next_page_url end def error_message - result_xml.xpath('//error/message').first.andand.text + result_xml.xpath('//error/message').first&.text end def parsed_body diff --git a/lib/frodata/service/response/json.rb b/lib/frodata/service/response/json.rb index 37c4886..054c585 100644 --- a/lib/frodata/service/response/json.rb +++ b/lib/frodata/service/response/json.rb @@ -15,7 +15,7 @@ def next_page_url end def error_message - result_json['error'].andand['message'] + result_json.dig('error', 'message') end def parsed_body diff --git a/lib/frodata/service/response/xml.rb b/lib/frodata/service/response/xml.rb index c92ee0a..a366b1b 100644 --- a/lib/frodata/service/response/xml.rb +++ b/lib/frodata/service/response/xml.rb @@ -15,7 +15,7 @@ def next_page_url end def error_message - response_xml.xpath('//error/message').first.andand.text + response_xml.xpath('//error/message').first&.text end def parsed_body From e3f5a1b07170db6a458e98af854009b95ae0dd19 Mon Sep 17 00:00:00 2001 From: Elijah Miller <elijah.miller@gmail.com> Date: Thu, 20 Mar 2025 15:09:53 -0400 Subject: [PATCH 13/14] Loosen nokogiri dependency which works for all versions. --- frodata.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frodata.gemspec b/frodata.gemspec index 763785a..bb4a199 100644 --- a/frodata.gemspec +++ b/frodata.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.2.0' - spec.add_dependency 'nokogiri', '~> 1.8' + spec.add_dependency 'nokogiri' spec.add_dependency 'faraday', '~> 0.15' spec.add_dependency 'bigdecimal' spec.add_dependency 'base64' From e8d21605b8e66ecbd65602d30123bd0a7e32a4a2 Mon Sep 17 00:00:00 2001 From: Elijah Miller <elijah.miller@gmail.com> Date: Thu, 20 Mar 2025 15:36:13 -0400 Subject: [PATCH 14/14] Switch to retest for simple test run on save which works currently. --- .autotest | 2 -- frodata.gemspec | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .autotest diff --git a/.autotest b/.autotest deleted file mode 100644 index 5753004..0000000 --- a/.autotest +++ /dev/null @@ -1,2 +0,0 @@ -require 'autotest/bundler' - diff --git a/frodata.gemspec b/frodata.gemspec index bb4a199..5cad9e1 100644 --- a/frodata.gemspec +++ b/frodata.gemspec @@ -30,8 +30,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rake', '>= 13.2' spec.add_development_dependency 'simplecov', '~> 0.15' spec.add_development_dependency 'rspec', '~> 3.7' - spec.add_development_dependency 'rspec-autotest', '~> 1.0' - spec.add_development_dependency 'autotest', '~> 4.4' + spec.add_development_dependency 'retest' spec.add_development_dependency 'vcr', '~> 4.0' spec.add_development_dependency 'timecop', '~> 0.9' spec.add_development_dependency 'equivalent-xml', '~> 0.6'