odata4 0.8.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +112 -54
- data/lib/odata4.rb +2 -1
- data/lib/odata4/service.rb +31 -29
- data/lib/odata4/service/request.rb +26 -22
- data/lib/odata4/service/response.rb +31 -22
- data/lib/odata4/version.rb +1 -1
- data/odata4.gemspec +1 -1
- data/spec/fixtures/vcr_cassettes/entity_set_specs.yml +287 -0
- data/spec/fixtures/vcr_cassettes/query_specs.yml +397 -0
- data/spec/fixtures/vcr_cassettes/usage_example_specs.yml +582 -1
- data/spec/odata4/entity_container_spec.rb +1 -1
- data/spec/odata4/entity_set_spec.rb +1 -1
- data/spec/odata4/entity_spec.rb +1 -1
- data/spec/odata4/navigation_property/proxy_spec.rb +1 -1
- data/spec/odata4/property_spec.rb +1 -1
- data/spec/odata4/query_spec.rb +1 -1
- data/spec/odata4/schema/complex_type_spec.rb +1 -1
- data/spec/odata4/schema/enum_type_spec.rb +1 -1
- data/spec/odata4/schema_spec.rb +1 -1
- data/spec/odata4/service/request_spec.rb +1 -1
- data/spec/odata4/service/response_spec.rb +3 -3
- data/spec/odata4/service_registry_spec.rb +1 -1
- data/spec/odata4/service_spec.rb +66 -5
- data/spec/odata4/usage_example_spec.rb +13 -1
- data/spec/support/vcr.rb +1 -1
- metadata +5 -5
@@ -746,4 +746,585 @@ http_interactions:
|
|
746
746
|
adapter_metadata:
|
747
747
|
effective_url: http://services.odata.org/V4/OData/OData.svc/Products?$orderby=Name
|
748
748
|
recorded_at: Tue, 16 Jan 2018 20:30:39 GMT
|
749
|
-
|
749
|
+
- request:
|
750
|
+
method: get
|
751
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products?%24filter=Name+eq+%27Milk%27
|
752
|
+
body:
|
753
|
+
encoding: US-ASCII
|
754
|
+
string: ''
|
755
|
+
headers:
|
756
|
+
User-Agent:
|
757
|
+
- Faraday v0.15.0
|
758
|
+
Accept:
|
759
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
760
|
+
Content-Type:
|
761
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
762
|
+
OData-Version:
|
763
|
+
- '4.0'
|
764
|
+
response:
|
765
|
+
status:
|
766
|
+
code: 200
|
767
|
+
message: OK
|
768
|
+
headers:
|
769
|
+
cache-control:
|
770
|
+
- no-cache
|
771
|
+
content-length:
|
772
|
+
- '304'
|
773
|
+
content-type:
|
774
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
775
|
+
vary:
|
776
|
+
- Accept-Encoding
|
777
|
+
server:
|
778
|
+
- Microsoft-IIS/10.0
|
779
|
+
x-content-type-options:
|
780
|
+
- nosniff
|
781
|
+
odata-version:
|
782
|
+
- 4.0;
|
783
|
+
x-aspnet-version:
|
784
|
+
- 4.0.30319
|
785
|
+
x-powered-by:
|
786
|
+
- ASP.NET
|
787
|
+
access-control-allow-origin:
|
788
|
+
- "*"
|
789
|
+
access-control-allow-methods:
|
790
|
+
- GET
|
791
|
+
access-control-allow-headers:
|
792
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
793
|
+
access-control-expose-headers:
|
794
|
+
- DataServiceVersion
|
795
|
+
date:
|
796
|
+
- Tue, 24 Apr 2018 01:58:50 GMT
|
797
|
+
connection:
|
798
|
+
- close
|
799
|
+
body:
|
800
|
+
encoding: ASCII-8BIT
|
801
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":1,"Name":"Milk","Description":"Low
|
802
|
+
fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5}]}'
|
803
|
+
http_version:
|
804
|
+
recorded_at: Tue, 24 Apr 2018 01:58:50 GMT
|
805
|
+
- request:
|
806
|
+
method: get
|
807
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=5
|
808
|
+
body:
|
809
|
+
encoding: US-ASCII
|
810
|
+
string: ''
|
811
|
+
headers:
|
812
|
+
User-Agent:
|
813
|
+
- Faraday v0.15.0
|
814
|
+
Accept:
|
815
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
816
|
+
Content-Type:
|
817
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
818
|
+
OData-Version:
|
819
|
+
- '4.0'
|
820
|
+
response:
|
821
|
+
status:
|
822
|
+
code: 200
|
823
|
+
message: OK
|
824
|
+
headers:
|
825
|
+
cache-control:
|
826
|
+
- no-cache
|
827
|
+
content-length:
|
828
|
+
- '523'
|
829
|
+
content-type:
|
830
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
831
|
+
vary:
|
832
|
+
- Accept-Encoding
|
833
|
+
server:
|
834
|
+
- Microsoft-IIS/10.0
|
835
|
+
x-content-type-options:
|
836
|
+
- nosniff
|
837
|
+
odata-version:
|
838
|
+
- 4.0;
|
839
|
+
x-aspnet-version:
|
840
|
+
- 4.0.30319
|
841
|
+
x-powered-by:
|
842
|
+
- ASP.NET
|
843
|
+
access-control-allow-origin:
|
844
|
+
- "*"
|
845
|
+
access-control-allow-methods:
|
846
|
+
- GET
|
847
|
+
access-control-allow-headers:
|
848
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
849
|
+
access-control-expose-headers:
|
850
|
+
- DataServiceVersion
|
851
|
+
date:
|
852
|
+
- Tue, 24 Apr 2018 01:58:50 GMT
|
853
|
+
connection:
|
854
|
+
- close
|
855
|
+
body:
|
856
|
+
encoding: ASCII-8BIT
|
857
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole
|
858
|
+
grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5},{"ID":1,"Name":"Milk","Description":"Low
|
859
|
+
fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":2,"Name":"Vint
|
860
|
+
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
|
861
|
+
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
|
862
|
+
Punch","Description":"Mango flavor, 8.3 Ounce Cans (Pack of 24)","ReleaseDate":"2003-01-05T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":22.99}]}'
|
863
|
+
http_version:
|
864
|
+
recorded_at: Tue, 24 Apr 2018 01:58:51 GMT
|
865
|
+
- request:
|
866
|
+
method: get
|
867
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=5&%24top=5
|
868
|
+
body:
|
869
|
+
encoding: US-ASCII
|
870
|
+
string: ''
|
871
|
+
headers:
|
872
|
+
User-Agent:
|
873
|
+
- Faraday v0.15.0
|
874
|
+
Accept:
|
875
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
876
|
+
Content-Type:
|
877
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
878
|
+
OData-Version:
|
879
|
+
- '4.0'
|
880
|
+
response:
|
881
|
+
status:
|
882
|
+
code: 200
|
883
|
+
message: OK
|
884
|
+
headers:
|
885
|
+
cache-control:
|
886
|
+
- no-cache
|
887
|
+
content-length:
|
888
|
+
- '578'
|
889
|
+
content-type:
|
890
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
891
|
+
vary:
|
892
|
+
- Accept-Encoding
|
893
|
+
server:
|
894
|
+
- Microsoft-IIS/10.0
|
895
|
+
x-content-type-options:
|
896
|
+
- nosniff
|
897
|
+
odata-version:
|
898
|
+
- 4.0;
|
899
|
+
x-aspnet-version:
|
900
|
+
- 4.0.30319
|
901
|
+
x-powered-by:
|
902
|
+
- ASP.NET
|
903
|
+
access-control-allow-origin:
|
904
|
+
- "*"
|
905
|
+
access-control-allow-methods:
|
906
|
+
- GET
|
907
|
+
access-control-allow-headers:
|
908
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
909
|
+
access-control-expose-headers:
|
910
|
+
- DataServiceVersion
|
911
|
+
date:
|
912
|
+
- Tue, 24 Apr 2018 01:58:50 GMT
|
913
|
+
connection:
|
914
|
+
- close
|
915
|
+
body:
|
916
|
+
encoding: ASCII-8BIT
|
917
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":5,"Name":"Cranberry
|
918
|
+
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
|
919
|
+
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
|
920
|
+
Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":8,"Name":"LCD
|
921
|
+
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,
|
922
|
+
refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01}]}'
|
923
|
+
http_version:
|
924
|
+
recorded_at: Tue, 24 Apr 2018 01:58:51 GMT
|
925
|
+
- request:
|
926
|
+
method: get
|
927
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=10&%24top=5
|
928
|
+
body:
|
929
|
+
encoding: US-ASCII
|
930
|
+
string: ''
|
931
|
+
headers:
|
932
|
+
User-Agent:
|
933
|
+
- Faraday v0.15.0
|
934
|
+
Accept:
|
935
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
936
|
+
Content-Type:
|
937
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
938
|
+
OData-Version:
|
939
|
+
- '4.0'
|
940
|
+
response:
|
941
|
+
status:
|
942
|
+
code: 200
|
943
|
+
message: OK
|
944
|
+
headers:
|
945
|
+
cache-control:
|
946
|
+
- no-cache
|
947
|
+
content-length:
|
948
|
+
- '343'
|
949
|
+
content-type:
|
950
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
951
|
+
vary:
|
952
|
+
- Accept-Encoding
|
953
|
+
server:
|
954
|
+
- Microsoft-IIS/10.0
|
955
|
+
x-content-type-options:
|
956
|
+
- nosniff
|
957
|
+
odata-version:
|
958
|
+
- 4.0;
|
959
|
+
x-aspnet-version:
|
960
|
+
- 4.0.30319
|
961
|
+
x-powered-by:
|
962
|
+
- ASP.NET
|
963
|
+
access-control-allow-origin:
|
964
|
+
- "*"
|
965
|
+
access-control-allow-methods:
|
966
|
+
- GET
|
967
|
+
access-control-allow-headers:
|
968
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
969
|
+
access-control-expose-headers:
|
970
|
+
- DataServiceVersion
|
971
|
+
date:
|
972
|
+
- Tue, 24 Apr 2018 01:58:50 GMT
|
973
|
+
connection:
|
974
|
+
- close
|
975
|
+
body:
|
976
|
+
encoding: ASCII-8BIT
|
977
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"@odata.type":"#ODataDemo.FeaturedProduct","ID":10,"Name":"Coffee","Description":"Bulk
|
978
|
+
size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99}]}'
|
979
|
+
http_version:
|
980
|
+
recorded_at: Tue, 24 Apr 2018 01:58:51 GMT
|
981
|
+
- request:
|
982
|
+
method: get
|
983
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products?%24skip=15&%24top=5
|
984
|
+
body:
|
985
|
+
encoding: US-ASCII
|
986
|
+
string: ''
|
987
|
+
headers:
|
988
|
+
User-Agent:
|
989
|
+
- Faraday v0.15.0
|
990
|
+
Accept:
|
991
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
992
|
+
Content-Type:
|
993
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
994
|
+
OData-Version:
|
995
|
+
- '4.0'
|
996
|
+
response:
|
997
|
+
status:
|
998
|
+
code: 200
|
999
|
+
message: OK
|
1000
|
+
headers:
|
1001
|
+
cache-control:
|
1002
|
+
- no-cache
|
1003
|
+
content-length:
|
1004
|
+
- '200'
|
1005
|
+
content-type:
|
1006
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
1007
|
+
vary:
|
1008
|
+
- Accept-Encoding
|
1009
|
+
server:
|
1010
|
+
- Microsoft-IIS/10.0
|
1011
|
+
x-content-type-options:
|
1012
|
+
- nosniff
|
1013
|
+
odata-version:
|
1014
|
+
- 4.0;
|
1015
|
+
x-aspnet-version:
|
1016
|
+
- 4.0.30319
|
1017
|
+
x-powered-by:
|
1018
|
+
- ASP.NET
|
1019
|
+
access-control-allow-origin:
|
1020
|
+
- "*"
|
1021
|
+
access-control-allow-methods:
|
1022
|
+
- GET
|
1023
|
+
access-control-allow-headers:
|
1024
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
1025
|
+
access-control-expose-headers:
|
1026
|
+
- DataServiceVersion
|
1027
|
+
date:
|
1028
|
+
- Tue, 24 Apr 2018 01:58:51 GMT
|
1029
|
+
connection:
|
1030
|
+
- close
|
1031
|
+
body:
|
1032
|
+
encoding: ASCII-8BIT
|
1033
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[]}'
|
1034
|
+
http_version:
|
1035
|
+
recorded_at: Tue, 24 Apr 2018 01:58:51 GMT
|
1036
|
+
- request:
|
1037
|
+
method: get
|
1038
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products?%24orderby=Name
|
1039
|
+
body:
|
1040
|
+
encoding: US-ASCII
|
1041
|
+
string: ''
|
1042
|
+
headers:
|
1043
|
+
User-Agent:
|
1044
|
+
- Faraday v0.15.0
|
1045
|
+
Accept:
|
1046
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1047
|
+
Content-Type:
|
1048
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1049
|
+
OData-Version:
|
1050
|
+
- '4.0'
|
1051
|
+
response:
|
1052
|
+
status:
|
1053
|
+
code: 200
|
1054
|
+
message: OK
|
1055
|
+
headers:
|
1056
|
+
cache-control:
|
1057
|
+
- no-cache
|
1058
|
+
content-length:
|
1059
|
+
- '882'
|
1060
|
+
content-type:
|
1061
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
1062
|
+
vary:
|
1063
|
+
- Accept-Encoding
|
1064
|
+
server:
|
1065
|
+
- Microsoft-IIS/10.0
|
1066
|
+
x-content-type-options:
|
1067
|
+
- nosniff
|
1068
|
+
odata-version:
|
1069
|
+
- 4.0;
|
1070
|
+
x-aspnet-version:
|
1071
|
+
- 4.0.30319
|
1072
|
+
x-powered-by:
|
1073
|
+
- ASP.NET
|
1074
|
+
access-control-allow-origin:
|
1075
|
+
- "*"
|
1076
|
+
access-control-allow-methods:
|
1077
|
+
- GET
|
1078
|
+
access-control-allow-headers:
|
1079
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
1080
|
+
access-control-expose-headers:
|
1081
|
+
- DataServiceVersion
|
1082
|
+
date:
|
1083
|
+
- Tue, 24 Apr 2018 01:58:50 GMT
|
1084
|
+
connection:
|
1085
|
+
- close
|
1086
|
+
body:
|
1087
|
+
encoding: ASCII-8BIT
|
1088
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole
|
1089
|
+
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
|
1090
|
+
size can of instant coffee","ReleaseDate":"1982-12-31T00:00:00Z","DiscontinuedDate":null,"Rating":1,"Price":6.99},{"ID":5,"Name":"Cranberry
|
1091
|
+
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
|
1092
|
+
Player","Description":"1080P Upconversion DVD Player","ReleaseDate":"2006-11-15T00:00:00Z","DiscontinuedDate":null,"Rating":5,"Price":35.88},{"ID":4,"Name":"Fruit
|
1093
|
+
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
|
1094
|
+
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
|
1095
|
+
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,
|
1096
|
+
refreshing lemonade (Single bottle)","ReleaseDate":"1970-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":7,"Price":1.01},{"ID":1,"Name":"Milk","Description":"Low
|
1097
|
+
fat milk","ReleaseDate":"1995-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":3.5},{"ID":6,"Name":"Pink
|
1098
|
+
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
|
1099
|
+
soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9}]}'
|
1100
|
+
http_version:
|
1101
|
+
recorded_at: Tue, 24 Apr 2018 01:58:51 GMT
|
1102
|
+
- request:
|
1103
|
+
method: get
|
1104
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=1
|
1105
|
+
body:
|
1106
|
+
encoding: US-ASCII
|
1107
|
+
string: ''
|
1108
|
+
headers:
|
1109
|
+
User-Agent:
|
1110
|
+
- Faraday v0.15.0
|
1111
|
+
Accept:
|
1112
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1113
|
+
Content-Type:
|
1114
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1115
|
+
OData-Version:
|
1116
|
+
- '4.0'
|
1117
|
+
response:
|
1118
|
+
status:
|
1119
|
+
code: 200
|
1120
|
+
message: OK
|
1121
|
+
headers:
|
1122
|
+
cache-control:
|
1123
|
+
- no-cache
|
1124
|
+
content-length:
|
1125
|
+
- '308'
|
1126
|
+
content-type:
|
1127
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
1128
|
+
vary:
|
1129
|
+
- Accept-Encoding
|
1130
|
+
server:
|
1131
|
+
- Microsoft-IIS/10.0
|
1132
|
+
x-content-type-options:
|
1133
|
+
- nosniff
|
1134
|
+
odata-version:
|
1135
|
+
- 4.0;
|
1136
|
+
x-aspnet-version:
|
1137
|
+
- 4.0.30319
|
1138
|
+
x-powered-by:
|
1139
|
+
- ASP.NET
|
1140
|
+
access-control-allow-origin:
|
1141
|
+
- "*"
|
1142
|
+
access-control-allow-methods:
|
1143
|
+
- GET
|
1144
|
+
access-control-allow-headers:
|
1145
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
1146
|
+
access-control-expose-headers:
|
1147
|
+
- DataServiceVersion
|
1148
|
+
date:
|
1149
|
+
- Tue, 24 Apr 2018 01:58:51 GMT
|
1150
|
+
connection:
|
1151
|
+
- close
|
1152
|
+
body:
|
1153
|
+
encoding: ASCII-8BIT
|
1154
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole
|
1155
|
+
grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}'
|
1156
|
+
http_version:
|
1157
|
+
recorded_at: Tue, 24 Apr 2018 01:58:51 GMT
|
1158
|
+
- request:
|
1159
|
+
method: get
|
1160
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products?%24top=1
|
1161
|
+
body:
|
1162
|
+
encoding: US-ASCII
|
1163
|
+
string: ''
|
1164
|
+
headers:
|
1165
|
+
User-Agent:
|
1166
|
+
- Faraday v0.15.0
|
1167
|
+
Accept:
|
1168
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1169
|
+
Content-Type:
|
1170
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1171
|
+
OData-Version:
|
1172
|
+
- '4.0'
|
1173
|
+
response:
|
1174
|
+
status:
|
1175
|
+
code: 200
|
1176
|
+
message: OK
|
1177
|
+
headers:
|
1178
|
+
cache-control:
|
1179
|
+
- no-cache
|
1180
|
+
content-length:
|
1181
|
+
- '308'
|
1182
|
+
content-type:
|
1183
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
1184
|
+
vary:
|
1185
|
+
- Accept-Encoding
|
1186
|
+
server:
|
1187
|
+
- Microsoft-IIS/10.0
|
1188
|
+
x-content-type-options:
|
1189
|
+
- nosniff
|
1190
|
+
odata-version:
|
1191
|
+
- 4.0;
|
1192
|
+
x-aspnet-version:
|
1193
|
+
- 4.0.30319
|
1194
|
+
x-powered-by:
|
1195
|
+
- ASP.NET
|
1196
|
+
access-control-allow-origin:
|
1197
|
+
- "*"
|
1198
|
+
access-control-allow-methods:
|
1199
|
+
- GET
|
1200
|
+
access-control-allow-headers:
|
1201
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
1202
|
+
access-control-expose-headers:
|
1203
|
+
- DataServiceVersion
|
1204
|
+
date:
|
1205
|
+
- Tue, 24 Apr 2018 01:58:51 GMT
|
1206
|
+
connection:
|
1207
|
+
- close
|
1208
|
+
body:
|
1209
|
+
encoding: ASCII-8BIT
|
1210
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products","value":[{"ID":0,"Name":"Bread","Description":"Whole
|
1211
|
+
grain bread","ReleaseDate":"1992-01-01T00:00:00Z","DiscontinuedDate":null,"Rating":4,"Price":2.5}]}'
|
1212
|
+
http_version:
|
1213
|
+
recorded_at: Tue, 24 Apr 2018 01:58:51 GMT
|
1214
|
+
- request:
|
1215
|
+
method: get
|
1216
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products(2)
|
1217
|
+
body:
|
1218
|
+
encoding: US-ASCII
|
1219
|
+
string: ''
|
1220
|
+
headers:
|
1221
|
+
User-Agent:
|
1222
|
+
- Faraday v0.15.0
|
1223
|
+
Authorization:
|
1224
|
+
- Basic dXNlcm5hbWU6cGFzc3dvcmQ=
|
1225
|
+
Accept:
|
1226
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1227
|
+
Content-Type:
|
1228
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1229
|
+
OData-Version:
|
1230
|
+
- '4.0'
|
1231
|
+
response:
|
1232
|
+
status:
|
1233
|
+
code: 200
|
1234
|
+
message: OK
|
1235
|
+
headers:
|
1236
|
+
cache-control:
|
1237
|
+
- no-cache
|
1238
|
+
content-length:
|
1239
|
+
- '325'
|
1240
|
+
content-type:
|
1241
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
1242
|
+
vary:
|
1243
|
+
- Accept-Encoding
|
1244
|
+
server:
|
1245
|
+
- Microsoft-IIS/10.0
|
1246
|
+
x-content-type-options:
|
1247
|
+
- nosniff
|
1248
|
+
odata-version:
|
1249
|
+
- 4.0;
|
1250
|
+
x-aspnet-version:
|
1251
|
+
- 4.0.30319
|
1252
|
+
x-powered-by:
|
1253
|
+
- ASP.NET
|
1254
|
+
access-control-allow-origin:
|
1255
|
+
- "*"
|
1256
|
+
access-control-allow-methods:
|
1257
|
+
- GET
|
1258
|
+
access-control-allow-headers:
|
1259
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
1260
|
+
access-control-expose-headers:
|
1261
|
+
- DataServiceVersion
|
1262
|
+
date:
|
1263
|
+
- Thu, 26 Apr 2018 21:29:37 GMT
|
1264
|
+
connection:
|
1265
|
+
- close
|
1266
|
+
body:
|
1267
|
+
encoding: ASCII-8BIT
|
1268
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":2,"Name":"Vint
|
1269
|
+
soda","Description":"Americana Variety - Mix of 6 flavors","ReleaseDate":"2000-10-01T00:00:00Z","DiscontinuedDate":null,"Rating":3,"Price":20.9}'
|
1270
|
+
http_version:
|
1271
|
+
recorded_at: Thu, 26 Apr 2018 21:29:37 GMT
|
1272
|
+
- request:
|
1273
|
+
method: get
|
1274
|
+
uri: http://services.odata.org/V4/OData/OData.svc/Products(3)
|
1275
|
+
body:
|
1276
|
+
encoding: US-ASCII
|
1277
|
+
string: ''
|
1278
|
+
headers:
|
1279
|
+
User-Agent:
|
1280
|
+
- Faraday v0.15.0
|
1281
|
+
Authorization:
|
1282
|
+
- Bearer token
|
1283
|
+
Accept:
|
1284
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1285
|
+
Content-Type:
|
1286
|
+
- application/atom+xml,application/json,application/xml,text/plain
|
1287
|
+
OData-Version:
|
1288
|
+
- '4.0'
|
1289
|
+
response:
|
1290
|
+
status:
|
1291
|
+
code: 200
|
1292
|
+
message: OK
|
1293
|
+
headers:
|
1294
|
+
cache-control:
|
1295
|
+
- no-cache
|
1296
|
+
content-length:
|
1297
|
+
- '312'
|
1298
|
+
content-type:
|
1299
|
+
- application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
|
1300
|
+
vary:
|
1301
|
+
- Accept-Encoding
|
1302
|
+
server:
|
1303
|
+
- Microsoft-IIS/10.0
|
1304
|
+
x-content-type-options:
|
1305
|
+
- nosniff
|
1306
|
+
odata-version:
|
1307
|
+
- 4.0;
|
1308
|
+
x-aspnet-version:
|
1309
|
+
- 4.0.30319
|
1310
|
+
x-powered-by:
|
1311
|
+
- ASP.NET
|
1312
|
+
access-control-allow-origin:
|
1313
|
+
- "*"
|
1314
|
+
access-control-allow-methods:
|
1315
|
+
- GET
|
1316
|
+
access-control-allow-headers:
|
1317
|
+
- Accept, Origin, Content-Type, MaxDataServiceVersion
|
1318
|
+
access-control-expose-headers:
|
1319
|
+
- DataServiceVersion
|
1320
|
+
date:
|
1321
|
+
- Thu, 26 Apr 2018 21:41:27 GMT
|
1322
|
+
connection:
|
1323
|
+
- close
|
1324
|
+
body:
|
1325
|
+
encoding: ASCII-8BIT
|
1326
|
+
string: '{"@odata.context":"http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity","ID":3,"Name":"Havina
|
1327
|
+
Cola","Description":"The Original Key Lime Cola","ReleaseDate":"2005-10-01T00:00:00Z","DiscontinuedDate":"2006-10-01T00:00:00Z","Rating":3,"Price":19.9}'
|
1328
|
+
http_version:
|
1329
|
+
recorded_at: Thu, 26 Apr 2018 21:41:27 GMT
|
1330
|
+
recorded_with: VCR 4.0.0
|