frodata 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.autotest +2 -0
- data/.gitignore +24 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +75 -0
- data/CHANGELOG.md +150 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +23 -0
- data/README.md +427 -0
- data/Rakefile +7 -0
- data/TODO.md +55 -0
- data/frodata.gemspec +34 -0
- data/lib/frodata.rb +36 -0
- data/lib/frodata/entity.rb +332 -0
- data/lib/frodata/entity_container.rb +75 -0
- data/lib/frodata/entity_set.rb +161 -0
- data/lib/frodata/errors.rb +68 -0
- data/lib/frodata/navigation_property.rb +29 -0
- data/lib/frodata/navigation_property/proxy.rb +80 -0
- data/lib/frodata/properties.rb +32 -0
- data/lib/frodata/properties/binary.rb +50 -0
- data/lib/frodata/properties/boolean.rb +37 -0
- data/lib/frodata/properties/collection.rb +50 -0
- data/lib/frodata/properties/complex.rb +114 -0
- data/lib/frodata/properties/date.rb +27 -0
- data/lib/frodata/properties/date_time.rb +83 -0
- data/lib/frodata/properties/date_time_offset.rb +17 -0
- data/lib/frodata/properties/decimal.rb +50 -0
- data/lib/frodata/properties/enum.rb +62 -0
- data/lib/frodata/properties/float.rb +67 -0
- data/lib/frodata/properties/geography.rb +13 -0
- data/lib/frodata/properties/geography/base.rb +162 -0
- data/lib/frodata/properties/geography/line_string.rb +33 -0
- data/lib/frodata/properties/geography/point.rb +31 -0
- data/lib/frodata/properties/geography/polygon.rb +38 -0
- data/lib/frodata/properties/guid.rb +17 -0
- data/lib/frodata/properties/integer.rb +107 -0
- data/lib/frodata/properties/number.rb +14 -0
- data/lib/frodata/properties/string.rb +72 -0
- data/lib/frodata/properties/time.rb +40 -0
- data/lib/frodata/properties/time_of_day.rb +27 -0
- data/lib/frodata/property.rb +139 -0
- data/lib/frodata/property_registry.rb +41 -0
- data/lib/frodata/query.rb +233 -0
- data/lib/frodata/query/criteria.rb +92 -0
- data/lib/frodata/query/criteria/comparison_operators.rb +49 -0
- data/lib/frodata/query/criteria/date_functions.rb +61 -0
- data/lib/frodata/query/criteria/geography_functions.rb +21 -0
- data/lib/frodata/query/criteria/lambda_operators.rb +27 -0
- data/lib/frodata/query/criteria/string_functions.rb +40 -0
- data/lib/frodata/query/in_batches.rb +58 -0
- data/lib/frodata/railtie.rb +19 -0
- data/lib/frodata/schema.rb +155 -0
- data/lib/frodata/schema/complex_type.rb +79 -0
- data/lib/frodata/schema/enum_type.rb +95 -0
- data/lib/frodata/service.rb +254 -0
- data/lib/frodata/service/request.rb +85 -0
- data/lib/frodata/service/response.rb +162 -0
- data/lib/frodata/service/response/atom.rb +40 -0
- data/lib/frodata/service/response/json.rb +41 -0
- data/lib/frodata/service/response/plain.rb +36 -0
- data/lib/frodata/service/response/xml.rb +40 -0
- data/lib/frodata/service_registry.rb +52 -0
- data/lib/frodata/version.rb +3 -0
- data/spec/fixtures/files/entity_to_xml.xml +17 -0
- data/spec/fixtures/files/error.xml +5 -0
- data/spec/fixtures/files/metadata.xml +150 -0
- data/spec/fixtures/files/product_0.json +10 -0
- data/spec/fixtures/files/product_0.xml +28 -0
- data/spec/fixtures/files/products.json +106 -0
- data/spec/fixtures/files/products.xml +308 -0
- data/spec/fixtures/files/supplier_0.json +26 -0
- data/spec/fixtures/files/supplier_0.xml +32 -0
- data/spec/fixtures/vcr_cassettes/entity_set_specs.yml +1635 -0
- data/spec/fixtures/vcr_cassettes/entity_set_specs/bad_entry.yml +183 -0
- data/spec/fixtures/vcr_cassettes/entity_set_specs/existing_entry.yml +256 -0
- data/spec/fixtures/vcr_cassettes/entity_set_specs/new_entry.yml +185 -0
- data/spec/fixtures/vcr_cassettes/entity_specs.yml +285 -0
- data/spec/fixtures/vcr_cassettes/navigation_property_proxy_specs.yml +346 -0
- data/spec/fixtures/vcr_cassettes/query/result_specs.yml +189 -0
- data/spec/fixtures/vcr_cassettes/query_specs.yml +1060 -0
- data/spec/fixtures/vcr_cassettes/schema/complex_type_specs.yml +127 -0
- data/spec/fixtures/vcr_cassettes/service/request_specs.yml +193 -0
- data/spec/fixtures/vcr_cassettes/service_registry_specs.yml +129 -0
- data/spec/fixtures/vcr_cassettes/service_specs.yml +127 -0
- data/spec/fixtures/vcr_cassettes/usage_example_specs.yml +1330 -0
- data/spec/frodata/entity/shared_examples.rb +82 -0
- data/spec/frodata/entity_container_spec.rb +38 -0
- data/spec/frodata/entity_set_spec.rb +168 -0
- data/spec/frodata/entity_spec.rb +151 -0
- data/spec/frodata/errors_spec.rb +48 -0
- data/spec/frodata/navigation_property/proxy_spec.rb +44 -0
- data/spec/frodata/navigation_property_spec.rb +55 -0
- data/spec/frodata/properties/binary_spec.rb +50 -0
- data/spec/frodata/properties/boolean_spec.rb +72 -0
- data/spec/frodata/properties/collection_spec.rb +44 -0
- data/spec/frodata/properties/date_spec.rb +23 -0
- data/spec/frodata/properties/date_time_offset_spec.rb +30 -0
- data/spec/frodata/properties/date_time_spec.rb +23 -0
- data/spec/frodata/properties/decimal_spec.rb +51 -0
- data/spec/frodata/properties/float_spec.rb +45 -0
- data/spec/frodata/properties/geography/line_string_spec.rb +33 -0
- data/spec/frodata/properties/geography/point_spec.rb +29 -0
- data/spec/frodata/properties/geography/polygon_spec.rb +55 -0
- data/spec/frodata/properties/geography/shared_examples.rb +72 -0
- data/spec/frodata/properties/guid_spec.rb +17 -0
- data/spec/frodata/properties/integer_spec.rb +58 -0
- data/spec/frodata/properties/string_spec.rb +46 -0
- data/spec/frodata/properties/time_of_day_spec.rb +23 -0
- data/spec/frodata/properties/time_spec.rb +15 -0
- data/spec/frodata/property_registry_spec.rb +16 -0
- data/spec/frodata/property_spec.rb +71 -0
- data/spec/frodata/query/criteria_spec.rb +229 -0
- data/spec/frodata/query_spec.rb +199 -0
- data/spec/frodata/schema/complex_type_spec.rb +96 -0
- data/spec/frodata/schema/enum_type_spec.rb +112 -0
- data/spec/frodata/schema_spec.rb +97 -0
- data/spec/frodata/service/request_spec.rb +49 -0
- data/spec/frodata/service/response_spec.rb +85 -0
- data/spec/frodata/service_registry_spec.rb +18 -0
- data/spec/frodata/service_spec.rb +191 -0
- data/spec/frodata/usage_example_spec.rb +188 -0
- data/spec/spec_helper.rb +32 -0
- data/spec/support/coverage.rb +2 -0
- data/spec/support/vcr.rb +9 -0
- metadata +401 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"@odata.context": "http://services.odata.org/V4/OData/OData.svc/$metadata#Products/$entity",
|
3
|
+
"ID": 0,
|
4
|
+
"Name": "Bread",
|
5
|
+
"Description": "Whole grain bread",
|
6
|
+
"ReleaseDate": "1992-01-01T00:00:00Z",
|
7
|
+
"DiscontinuedDate": null,
|
8
|
+
"Rating": 4,
|
9
|
+
"Price": 2.5
|
10
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<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">
|
3
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(0)</id>
|
4
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
5
|
+
<link rel="edit" title="Product" href="Products(0)" />
|
6
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(0)/Categories/$ref" />
|
7
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(0)/Categories" />
|
8
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(0)/Supplier/$ref" />
|
9
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(0)/Supplier" />
|
10
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(0)/ProductDetail/$ref" />
|
11
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(0)/ProductDetail" />
|
12
|
+
<title />
|
13
|
+
<updated>2017-11-28T19:16:33Z</updated>
|
14
|
+
<author>
|
15
|
+
<name />
|
16
|
+
</author>
|
17
|
+
<content type="application/xml">
|
18
|
+
<m:properties>
|
19
|
+
<d:ID m:type="Int32">0</d:ID>
|
20
|
+
<d:Name>Bread</d:Name>
|
21
|
+
<d:Description>Whole grain bread</d:Description>
|
22
|
+
<d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate>
|
23
|
+
<d:DiscontinuedDate m:null="true" />
|
24
|
+
<d:Rating m:type="Int16">4</d:Rating>
|
25
|
+
<d:Price m:type="Double">2.5</d:Price>
|
26
|
+
</m:properties>
|
27
|
+
</content>
|
28
|
+
</entry>
|
@@ -0,0 +1,106 @@
|
|
1
|
+
{
|
2
|
+
"@odata.context": "http://services.odata.org/V4/OData/OData.svc/$metadata#Products",
|
3
|
+
"value": [
|
4
|
+
{
|
5
|
+
"ID": 0,
|
6
|
+
"Name": "Bread",
|
7
|
+
"Description": "Whole grain bread",
|
8
|
+
"ReleaseDate": "1992-01-01T00:00:00Z",
|
9
|
+
"DiscontinuedDate": null,
|
10
|
+
"Rating": 4,
|
11
|
+
"Price": 2.5
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"ID": 1,
|
15
|
+
"Name": "Milk",
|
16
|
+
"Description": "Low fat milk",
|
17
|
+
"ReleaseDate": "1995-10-01T00:00:00Z",
|
18
|
+
"DiscontinuedDate": null,
|
19
|
+
"Rating": 3,
|
20
|
+
"Price": 3.5
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"ID": 2,
|
24
|
+
"Name": "Vint soda",
|
25
|
+
"Description": "Americana Variety - Mix of 6 flavors",
|
26
|
+
"ReleaseDate": "2000-10-01T00:00:00Z",
|
27
|
+
"DiscontinuedDate": null,
|
28
|
+
"Rating": 3,
|
29
|
+
"Price": 20.9
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"ID": 3,
|
33
|
+
"Name": "Havina Cola",
|
34
|
+
"Description": "The Original Key Lime Cola",
|
35
|
+
"ReleaseDate": "2005-10-01T00:00:00Z",
|
36
|
+
"DiscontinuedDate": "2006-10-01T00:00:00Z",
|
37
|
+
"Rating": 3,
|
38
|
+
"Price": 19.9
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"ID": 4,
|
42
|
+
"Name": "Fruit Punch",
|
43
|
+
"Description": "Mango flavor, 8.3 Ounce Cans (Pack of 24)",
|
44
|
+
"ReleaseDate": "2003-01-05T00:00:00Z",
|
45
|
+
"DiscontinuedDate": null,
|
46
|
+
"Rating": 3,
|
47
|
+
"Price": 22.99
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"ID": 5,
|
51
|
+
"Name": "Cranberry Juice",
|
52
|
+
"Description": "16-Ounce Plastic Bottles (Pack of 12)",
|
53
|
+
"ReleaseDate": "2006-08-04T00:00:00Z",
|
54
|
+
"DiscontinuedDate": null,
|
55
|
+
"Rating": 3,
|
56
|
+
"Price": 22.8
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"ID": 6,
|
60
|
+
"Name": "Pink Lemonade",
|
61
|
+
"Description": "36 Ounce Cans (Pack of 3)",
|
62
|
+
"ReleaseDate": "2006-11-05T00:00:00Z",
|
63
|
+
"DiscontinuedDate": null,
|
64
|
+
"Rating": 3,
|
65
|
+
"Price": 18.8
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"ID": 7,
|
69
|
+
"Name": "DVD Player",
|
70
|
+
"Description": "1080P Upconversion DVD Player",
|
71
|
+
"ReleaseDate": "2006-11-15T00:00:00Z",
|
72
|
+
"DiscontinuedDate": null,
|
73
|
+
"Rating": 5,
|
74
|
+
"Price": 35.88
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"ID": 8,
|
78
|
+
"Name": "LCD HDTV",
|
79
|
+
"Description": "42 inch 1080p LCD with Built-in Blu-ray Disc Player",
|
80
|
+
"ReleaseDate": "2008-05-08T00:00:00Z",
|
81
|
+
"DiscontinuedDate": null,
|
82
|
+
"Rating": 3,
|
83
|
+
"Price": 1088.8
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"@odata.type": "#ODataDemo.FeaturedProduct",
|
87
|
+
"ID": 9,
|
88
|
+
"Name": "Lemonade",
|
89
|
+
"Description": "Classic, refreshing lemonade (Single bottle)",
|
90
|
+
"ReleaseDate": "1970-01-01T00:00:00Z",
|
91
|
+
"DiscontinuedDate": null,
|
92
|
+
"Rating": 7,
|
93
|
+
"Price": 1.01
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"@odata.type": "#ODataDemo.FeaturedProduct",
|
97
|
+
"ID": 10,
|
98
|
+
"Name": "Coffee",
|
99
|
+
"Description": "Bulk size can of instant coffee",
|
100
|
+
"ReleaseDate": "1982-12-31T00:00:00Z",
|
101
|
+
"DiscontinuedDate": null,
|
102
|
+
"Rating": 1,
|
103
|
+
"Price": 6.99
|
104
|
+
}
|
105
|
+
]
|
106
|
+
}
|
@@ -0,0 +1,308 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<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">
|
3
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products</id>
|
4
|
+
<title type="text">Products</title>
|
5
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
6
|
+
<link rel="self" title="Products" href="Products" />
|
7
|
+
<entry>
|
8
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(0)</id>
|
9
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
10
|
+
<link rel="edit" title="Product" href="Products(0)" />
|
11
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(0)/Categories/$ref" />
|
12
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(0)/Categories" />
|
13
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(0)/Supplier/$ref" />
|
14
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(0)/Supplier" />
|
15
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(0)/ProductDetail/$ref" />
|
16
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(0)/ProductDetail" />
|
17
|
+
<title />
|
18
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
19
|
+
<author>
|
20
|
+
<name />
|
21
|
+
</author>
|
22
|
+
<content type="application/xml">
|
23
|
+
<m:properties>
|
24
|
+
<d:ID m:type="Int32">0</d:ID>
|
25
|
+
<d:Name>Bread</d:Name>
|
26
|
+
<d:Description>Whole grain bread</d:Description>
|
27
|
+
<d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate>
|
28
|
+
<d:DiscontinuedDate m:null="true" />
|
29
|
+
<d:Rating m:type="Int16">4</d:Rating>
|
30
|
+
<d:Price m:type="Double">2.5</d:Price>
|
31
|
+
</m:properties>
|
32
|
+
</content>
|
33
|
+
</entry>
|
34
|
+
<entry>
|
35
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(1)</id>
|
36
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
37
|
+
<link rel="edit" title="Product" href="Products(1)" />
|
38
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(1)/Categories/$ref" />
|
39
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(1)/Categories" />
|
40
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(1)/Supplier/$ref" />
|
41
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(1)/Supplier" />
|
42
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(1)/ProductDetail/$ref" />
|
43
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(1)/ProductDetail" />
|
44
|
+
<title />
|
45
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
46
|
+
<author>
|
47
|
+
<name />
|
48
|
+
</author>
|
49
|
+
<content type="application/xml">
|
50
|
+
<m:properties>
|
51
|
+
<d:ID m:type="Int32">1</d:ID>
|
52
|
+
<d:Name>Milk</d:Name>
|
53
|
+
<d:Description>Low fat milk</d:Description>
|
54
|
+
<d:ReleaseDate m:type="DateTimeOffset">1995-10-01T00:00:00Z</d:ReleaseDate>
|
55
|
+
<d:DiscontinuedDate m:null="true" />
|
56
|
+
<d:Rating m:type="Int16">3</d:Rating>
|
57
|
+
<d:Price m:type="Double">3.5</d:Price>
|
58
|
+
</m:properties>
|
59
|
+
</content>
|
60
|
+
</entry>
|
61
|
+
<entry>
|
62
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(2)</id>
|
63
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
64
|
+
<link rel="edit" title="Product" href="Products(2)" />
|
65
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(2)/Categories/$ref" />
|
66
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(2)/Categories" />
|
67
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(2)/Supplier/$ref" />
|
68
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(2)/Supplier" />
|
69
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(2)/ProductDetail/$ref" />
|
70
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(2)/ProductDetail" />
|
71
|
+
<title />
|
72
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
73
|
+
<author>
|
74
|
+
<name />
|
75
|
+
</author>
|
76
|
+
<content type="application/xml">
|
77
|
+
<m:properties>
|
78
|
+
<d:ID m:type="Int32">2</d:ID>
|
79
|
+
<d:Name>Vint soda</d:Name>
|
80
|
+
<d:Description>Americana Variety - Mix of 6 flavors</d:Description>
|
81
|
+
<d:ReleaseDate m:type="DateTimeOffset">2000-10-01T00:00:00Z</d:ReleaseDate>
|
82
|
+
<d:DiscontinuedDate m:null="true" />
|
83
|
+
<d:Rating m:type="Int16">3</d:Rating>
|
84
|
+
<d:Price m:type="Double">20.9</d:Price>
|
85
|
+
</m:properties>
|
86
|
+
</content>
|
87
|
+
</entry>
|
88
|
+
<entry>
|
89
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(3)</id>
|
90
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
91
|
+
<link rel="edit" title="Product" href="Products(3)" />
|
92
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(3)/Categories/$ref" />
|
93
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(3)/Categories" />
|
94
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(3)/Supplier/$ref" />
|
95
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(3)/Supplier" />
|
96
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(3)/ProductDetail/$ref" />
|
97
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(3)/ProductDetail" />
|
98
|
+
<title />
|
99
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
100
|
+
<author>
|
101
|
+
<name />
|
102
|
+
</author>
|
103
|
+
<content type="application/xml">
|
104
|
+
<m:properties>
|
105
|
+
<d:ID m:type="Int32">3</d:ID>
|
106
|
+
<d:Name>Havina Cola</d:Name>
|
107
|
+
<d:Description>The Original Key Lime Cola</d:Description>
|
108
|
+
<d:ReleaseDate m:type="DateTimeOffset">2005-10-01T00:00:00Z</d:ReleaseDate>
|
109
|
+
<d:DiscontinuedDate m:type="DateTimeOffset">2006-10-01T00:00:00Z</d:DiscontinuedDate>
|
110
|
+
<d:Rating m:type="Int16">3</d:Rating>
|
111
|
+
<d:Price m:type="Double">19.9</d:Price>
|
112
|
+
</m:properties>
|
113
|
+
</content>
|
114
|
+
</entry>
|
115
|
+
<entry>
|
116
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(4)</id>
|
117
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
118
|
+
<link rel="edit" title="Product" href="Products(4)" />
|
119
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(4)/Categories/$ref" />
|
120
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(4)/Categories" />
|
121
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(4)/Supplier/$ref" />
|
122
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(4)/Supplier" />
|
123
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(4)/ProductDetail/$ref" />
|
124
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(4)/ProductDetail" />
|
125
|
+
<title />
|
126
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
127
|
+
<author>
|
128
|
+
<name />
|
129
|
+
</author>
|
130
|
+
<content type="application/xml">
|
131
|
+
<m:properties>
|
132
|
+
<d:ID m:type="Int32">4</d:ID>
|
133
|
+
<d:Name>Fruit Punch</d:Name>
|
134
|
+
<d:Description>Mango flavor, 8.3 Ounce Cans (Pack of 24)</d:Description>
|
135
|
+
<d:ReleaseDate m:type="DateTimeOffset">2003-01-05T00:00:00Z</d:ReleaseDate>
|
136
|
+
<d:DiscontinuedDate m:null="true" />
|
137
|
+
<d:Rating m:type="Int16">3</d:Rating>
|
138
|
+
<d:Price m:type="Double">22.99</d:Price>
|
139
|
+
</m:properties>
|
140
|
+
</content>
|
141
|
+
</entry>
|
142
|
+
<entry>
|
143
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(5)</id>
|
144
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
145
|
+
<link rel="edit" title="Product" href="Products(5)" />
|
146
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(5)/Categories/$ref" />
|
147
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(5)/Categories" />
|
148
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(5)/Supplier/$ref" />
|
149
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(5)/Supplier" />
|
150
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(5)/ProductDetail/$ref" />
|
151
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(5)/ProductDetail" />
|
152
|
+
<title />
|
153
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
154
|
+
<author>
|
155
|
+
<name />
|
156
|
+
</author>
|
157
|
+
<content type="application/xml">
|
158
|
+
<m:properties>
|
159
|
+
<d:ID m:type="Int32">5</d:ID>
|
160
|
+
<d:Name>Cranberry Juice</d:Name>
|
161
|
+
<d:Description>16-Ounce Plastic Bottles (Pack of 12)</d:Description>
|
162
|
+
<d:ReleaseDate m:type="DateTimeOffset">2006-08-04T00:00:00Z</d:ReleaseDate>
|
163
|
+
<d:DiscontinuedDate m:null="true" />
|
164
|
+
<d:Rating m:type="Int16">3</d:Rating>
|
165
|
+
<d:Price m:type="Double">22.8</d:Price>
|
166
|
+
</m:properties>
|
167
|
+
</content>
|
168
|
+
</entry>
|
169
|
+
<entry>
|
170
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(6)</id>
|
171
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
172
|
+
<link rel="edit" title="Product" href="Products(6)" />
|
173
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(6)/Categories/$ref" />
|
174
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(6)/Categories" />
|
175
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(6)/Supplier/$ref" />
|
176
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(6)/Supplier" />
|
177
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(6)/ProductDetail/$ref" />
|
178
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(6)/ProductDetail" />
|
179
|
+
<title />
|
180
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
181
|
+
<author>
|
182
|
+
<name />
|
183
|
+
</author>
|
184
|
+
<content type="application/xml">
|
185
|
+
<m:properties>
|
186
|
+
<d:ID m:type="Int32">6</d:ID>
|
187
|
+
<d:Name>Pink Lemonade</d:Name>
|
188
|
+
<d:Description>36 Ounce Cans (Pack of 3)</d:Description>
|
189
|
+
<d:ReleaseDate m:type="DateTimeOffset">2006-11-05T00:00:00Z</d:ReleaseDate>
|
190
|
+
<d:DiscontinuedDate m:null="true" />
|
191
|
+
<d:Rating m:type="Int16">3</d:Rating>
|
192
|
+
<d:Price m:type="Double">18.8</d:Price>
|
193
|
+
</m:properties>
|
194
|
+
</content>
|
195
|
+
</entry>
|
196
|
+
<entry>
|
197
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(7)</id>
|
198
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
199
|
+
<link rel="edit" title="Product" href="Products(7)" />
|
200
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(7)/Categories/$ref" />
|
201
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(7)/Categories" />
|
202
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(7)/Supplier/$ref" />
|
203
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(7)/Supplier" />
|
204
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(7)/ProductDetail/$ref" />
|
205
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(7)/ProductDetail" />
|
206
|
+
<title />
|
207
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
208
|
+
<author>
|
209
|
+
<name />
|
210
|
+
</author>
|
211
|
+
<content type="application/xml">
|
212
|
+
<m:properties>
|
213
|
+
<d:ID m:type="Int32">7</d:ID>
|
214
|
+
<d:Name>DVD Player</d:Name>
|
215
|
+
<d:Description>1080P Upconversion DVD Player</d:Description>
|
216
|
+
<d:ReleaseDate m:type="DateTimeOffset">2006-11-15T00:00:00Z</d:ReleaseDate>
|
217
|
+
<d:DiscontinuedDate m:null="true" />
|
218
|
+
<d:Rating m:type="Int16">5</d:Rating>
|
219
|
+
<d:Price m:type="Double">35.88</d:Price>
|
220
|
+
</m:properties>
|
221
|
+
</content>
|
222
|
+
</entry>
|
223
|
+
<entry>
|
224
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(8)</id>
|
225
|
+
<category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
226
|
+
<link rel="edit" title="Product" href="Products(8)" />
|
227
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(8)/Categories/$ref" />
|
228
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(8)/Categories" />
|
229
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(8)/Supplier/$ref" />
|
230
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(8)/Supplier" />
|
231
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(8)/ProductDetail/$ref" />
|
232
|
+
<link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(8)/ProductDetail" />
|
233
|
+
<title />
|
234
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
235
|
+
<author>
|
236
|
+
<name />
|
237
|
+
</author>
|
238
|
+
<content type="application/xml">
|
239
|
+
<m:properties>
|
240
|
+
<d:ID m:type="Int32">8</d:ID>
|
241
|
+
<d:Name>LCD HDTV</d:Name>
|
242
|
+
<d:Description>42 inch 1080p LCD with Built-in Blu-ray Disc Player</d:Description>
|
243
|
+
<d:ReleaseDate m:type="DateTimeOffset">2008-05-08T00:00:00Z</d:ReleaseDate>
|
244
|
+
<d:DiscontinuedDate m:null="true" />
|
245
|
+
<d:Rating m:type="Int16">3</d:Rating>
|
246
|
+
<d:Price m:type="Double">1088.8</d:Price>
|
247
|
+
</m:properties>
|
248
|
+
</content>
|
249
|
+
</entry>
|
250
|
+
<entry>
|
251
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(9)</id>
|
252
|
+
<category term="#ODataDemo.FeaturedProduct" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
253
|
+
<link rel="edit" title="Product" href="Products(9)/ODataDemo.FeaturedProduct" />
|
254
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(9)/ODataDemo.FeaturedProduct/Categories/$ref" />
|
255
|
+
<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" />
|
256
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(9)/ODataDemo.FeaturedProduct/Supplier/$ref" />
|
257
|
+
<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" />
|
258
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(9)/ODataDemo.FeaturedProduct/ProductDetail/$ref" />
|
259
|
+
<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" />
|
260
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Advertisement" type="application/xml" title="Advertisement" href="Products(9)/ODataDemo.FeaturedProduct/Advertisement/$ref" />
|
261
|
+
<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" />
|
262
|
+
<title />
|
263
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
264
|
+
<author>
|
265
|
+
<name />
|
266
|
+
</author>
|
267
|
+
<content type="application/xml">
|
268
|
+
<m:properties>
|
269
|
+
<d:ID m:type="Int32">9</d:ID>
|
270
|
+
<d:Name>Lemonade</d:Name>
|
271
|
+
<d:Description>Classic, refreshing lemonade (Single bottle)</d:Description>
|
272
|
+
<d:ReleaseDate m:type="DateTimeOffset">1970-01-01T00:00:00Z</d:ReleaseDate>
|
273
|
+
<d:DiscontinuedDate m:null="true" />
|
274
|
+
<d:Rating m:type="Int16">7</d:Rating>
|
275
|
+
<d:Price m:type="Double">1.01</d:Price>
|
276
|
+
</m:properties>
|
277
|
+
</content>
|
278
|
+
</entry>
|
279
|
+
<entry>
|
280
|
+
<id>http://services.odata.org/V4/OData/OData.svc/Products(10)</id>
|
281
|
+
<category term="#ODataDemo.FeaturedProduct" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
|
282
|
+
<link rel="edit" title="Product" href="Products(10)/ODataDemo.FeaturedProduct" />
|
283
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(10)/ODataDemo.FeaturedProduct/Categories/$ref" />
|
284
|
+
<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" />
|
285
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(10)/ODataDemo.FeaturedProduct/Supplier/$ref" />
|
286
|
+
<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" />
|
287
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(10)/ODataDemo.FeaturedProduct/ProductDetail/$ref" />
|
288
|
+
<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" />
|
289
|
+
<link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Advertisement" type="application/xml" title="Advertisement" href="Products(10)/ODataDemo.FeaturedProduct/Advertisement/$ref" />
|
290
|
+
<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" />
|
291
|
+
<title />
|
292
|
+
<updated>2017-12-07T23:31:33Z</updated>
|
293
|
+
<author>
|
294
|
+
<name />
|
295
|
+
</author>
|
296
|
+
<content type="application/xml">
|
297
|
+
<m:properties>
|
298
|
+
<d:ID m:type="Int32">10</d:ID>
|
299
|
+
<d:Name>Coffee</d:Name>
|
300
|
+
<d:Description>Bulk size can of instant coffee</d:Description>
|
301
|
+
<d:ReleaseDate m:type="DateTimeOffset">1982-12-31T00:00:00Z</d:ReleaseDate>
|
302
|
+
<d:DiscontinuedDate m:null="true" />
|
303
|
+
<d:Rating m:type="Int16">1</d:Rating>
|
304
|
+
<d:Price m:type="Double">6.99</d:Price>
|
305
|
+
</m:properties>
|
306
|
+
</content>
|
307
|
+
</entry>
|
308
|
+
</feed>
|