frodo 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. checksums.yaml +7 -0
  2. data/.autotest +2 -0
  3. data/.circleci/config.yml +54 -0
  4. data/.gitignore +24 -0
  5. data/.gitlab-ci.yml +9 -0
  6. data/.rspec +2 -0
  7. data/.ruby-gemset +1 -0
  8. data/.ruby-version +1 -0
  9. data/.travis.yml +75 -0
  10. data/CHANGELOG.md +163 -0
  11. data/Gemfile +4 -0
  12. data/LICENSE.txt +23 -0
  13. data/README.md +479 -0
  14. data/Rakefile +7 -0
  15. data/TODO.md +55 -0
  16. data/frodo.gemspec +39 -0
  17. data/images/frodo.jpg +0 -0
  18. data/lib/frodo/abstract_client.rb +11 -0
  19. data/lib/frodo/client.rb +6 -0
  20. data/lib/frodo/concerns/api.rb +292 -0
  21. data/lib/frodo/concerns/authentication.rb +32 -0
  22. data/lib/frodo/concerns/base.rb +84 -0
  23. data/lib/frodo/concerns/caching.rb +26 -0
  24. data/lib/frodo/concerns/connection.rb +79 -0
  25. data/lib/frodo/concerns/verbs.rb +68 -0
  26. data/lib/frodo/config.rb +143 -0
  27. data/lib/frodo/entity.rb +335 -0
  28. data/lib/frodo/entity_container.rb +75 -0
  29. data/lib/frodo/entity_set.rb +131 -0
  30. data/lib/frodo/errors.rb +70 -0
  31. data/lib/frodo/middleware/authentication/token.rb +13 -0
  32. data/lib/frodo/middleware/authentication.rb +87 -0
  33. data/lib/frodo/middleware/authorization.rb +18 -0
  34. data/lib/frodo/middleware/caching.rb +30 -0
  35. data/lib/frodo/middleware/custom_headers.rb +14 -0
  36. data/lib/frodo/middleware/gzip.rb +33 -0
  37. data/lib/frodo/middleware/instance_url.rb +20 -0
  38. data/lib/frodo/middleware/logger.rb +42 -0
  39. data/lib/frodo/middleware/multipart.rb +64 -0
  40. data/lib/frodo/middleware/odata_headers.rb +13 -0
  41. data/lib/frodo/middleware/raise_error.rb +47 -0
  42. data/lib/frodo/middleware.rb +33 -0
  43. data/lib/frodo/navigation_property/proxy.rb +80 -0
  44. data/lib/frodo/navigation_property.rb +29 -0
  45. data/lib/frodo/properties/binary.rb +50 -0
  46. data/lib/frodo/properties/boolean.rb +37 -0
  47. data/lib/frodo/properties/collection.rb +50 -0
  48. data/lib/frodo/properties/complex.rb +114 -0
  49. data/lib/frodo/properties/date.rb +27 -0
  50. data/lib/frodo/properties/date_time.rb +83 -0
  51. data/lib/frodo/properties/date_time_offset.rb +17 -0
  52. data/lib/frodo/properties/decimal.rb +54 -0
  53. data/lib/frodo/properties/enum.rb +62 -0
  54. data/lib/frodo/properties/float.rb +67 -0
  55. data/lib/frodo/properties/geography/base.rb +162 -0
  56. data/lib/frodo/properties/geography/line_string.rb +33 -0
  57. data/lib/frodo/properties/geography/point.rb +31 -0
  58. data/lib/frodo/properties/geography/polygon.rb +38 -0
  59. data/lib/frodo/properties/geography.rb +13 -0
  60. data/lib/frodo/properties/guid.rb +17 -0
  61. data/lib/frodo/properties/integer.rb +107 -0
  62. data/lib/frodo/properties/number.rb +14 -0
  63. data/lib/frodo/properties/string.rb +72 -0
  64. data/lib/frodo/properties/time.rb +40 -0
  65. data/lib/frodo/properties/time_of_day.rb +27 -0
  66. data/lib/frodo/properties.rb +32 -0
  67. data/lib/frodo/property.rb +139 -0
  68. data/lib/frodo/property_registry.rb +41 -0
  69. data/lib/frodo/query/criteria/comparison_operators.rb +49 -0
  70. data/lib/frodo/query/criteria/date_functions.rb +61 -0
  71. data/lib/frodo/query/criteria/geography_functions.rb +21 -0
  72. data/lib/frodo/query/criteria/lambda_operators.rb +27 -0
  73. data/lib/frodo/query/criteria/string_functions.rb +40 -0
  74. data/lib/frodo/query/criteria.rb +92 -0
  75. data/lib/frodo/query/in_batches.rb +58 -0
  76. data/lib/frodo/query.rb +221 -0
  77. data/lib/frodo/railtie.rb +19 -0
  78. data/lib/frodo/schema/complex_type.rb +79 -0
  79. data/lib/frodo/schema/enum_type.rb +95 -0
  80. data/lib/frodo/schema.rb +164 -0
  81. data/lib/frodo/service.rb +199 -0
  82. data/lib/frodo/service_registry.rb +52 -0
  83. data/lib/frodo/version.rb +3 -0
  84. data/lib/frodo.rb +67 -0
  85. data/spec/fixtures/auth_success_response.json +11 -0
  86. data/spec/fixtures/error.json +11 -0
  87. data/spec/fixtures/files/entity_to_xml.xml +18 -0
  88. data/spec/fixtures/files/error.xml +5 -0
  89. data/spec/fixtures/files/metadata.xml +150 -0
  90. data/spec/fixtures/files/metadata_with_error.xml +157 -0
  91. data/spec/fixtures/files/product_0.json +10 -0
  92. data/spec/fixtures/files/product_0.xml +28 -0
  93. data/spec/fixtures/files/products.json +106 -0
  94. data/spec/fixtures/files/products.xml +308 -0
  95. data/spec/fixtures/files/supplier_0.json +26 -0
  96. data/spec/fixtures/files/supplier_0.xml +32 -0
  97. data/spec/fixtures/leads.json +923 -0
  98. data/spec/fixtures/refresh_error_response.json +8 -0
  99. data/spec/frodo/abstract_client_spec.rb +13 -0
  100. data/spec/frodo/client_spec.rb +57 -0
  101. data/spec/frodo/concerns/authentication_spec.rb +79 -0
  102. data/spec/frodo/concerns/base_spec.rb +68 -0
  103. data/spec/frodo/concerns/caching_spec.rb +40 -0
  104. data/spec/frodo/concerns/connection_spec.rb +65 -0
  105. data/spec/frodo/config_spec.rb +127 -0
  106. data/spec/frodo/entity/shared_examples.rb +83 -0
  107. data/spec/frodo/entity_container_spec.rb +38 -0
  108. data/spec/frodo/entity_set_spec.rb +169 -0
  109. data/spec/frodo/entity_spec.rb +153 -0
  110. data/spec/frodo/errors_spec.rb +48 -0
  111. data/spec/frodo/middleware/authentication/token_spec.rb +87 -0
  112. data/spec/frodo/middleware/authentication_spec.rb +83 -0
  113. data/spec/frodo/middleware/authorization_spec.rb +17 -0
  114. data/spec/frodo/middleware/custom_headers_spec.rb +21 -0
  115. data/spec/frodo/middleware/gzip_spec.rb +68 -0
  116. data/spec/frodo/middleware/instance_url_spec.rb +27 -0
  117. data/spec/frodo/middleware/logger_spec.rb +21 -0
  118. data/spec/frodo/middleware/odata_headers_spec.rb +15 -0
  119. data/spec/frodo/middleware/raise_error_spec.rb +66 -0
  120. data/spec/frodo/navigation_property/proxy_spec.rb +46 -0
  121. data/spec/frodo/navigation_property_spec.rb +55 -0
  122. data/spec/frodo/properties/binary_spec.rb +50 -0
  123. data/spec/frodo/properties/boolean_spec.rb +72 -0
  124. data/spec/frodo/properties/collection_spec.rb +44 -0
  125. data/spec/frodo/properties/date_spec.rb +23 -0
  126. data/spec/frodo/properties/date_time_offset_spec.rb +30 -0
  127. data/spec/frodo/properties/date_time_spec.rb +23 -0
  128. data/spec/frodo/properties/decimal_spec.rb +50 -0
  129. data/spec/frodo/properties/float_spec.rb +45 -0
  130. data/spec/frodo/properties/geography/line_string_spec.rb +33 -0
  131. data/spec/frodo/properties/geography/point_spec.rb +29 -0
  132. data/spec/frodo/properties/geography/polygon_spec.rb +55 -0
  133. data/spec/frodo/properties/geography/shared_examples.rb +72 -0
  134. data/spec/frodo/properties/guid_spec.rb +17 -0
  135. data/spec/frodo/properties/integer_spec.rb +58 -0
  136. data/spec/frodo/properties/string_spec.rb +46 -0
  137. data/spec/frodo/properties/time_of_day_spec.rb +23 -0
  138. data/spec/frodo/properties/time_spec.rb +15 -0
  139. data/spec/frodo/property_registry_spec.rb +16 -0
  140. data/spec/frodo/property_spec.rb +71 -0
  141. data/spec/frodo/query/criteria_spec.rb +229 -0
  142. data/spec/frodo/query_spec.rb +156 -0
  143. data/spec/frodo/schema/complex_type_spec.rb +97 -0
  144. data/spec/frodo/schema/enum_type_spec.rb +112 -0
  145. data/spec/frodo/schema_spec.rb +113 -0
  146. data/spec/frodo/service_registry_spec.rb +19 -0
  147. data/spec/frodo/service_spec.rb +153 -0
  148. data/spec/frodo/usage_example_spec.rb +161 -0
  149. data/spec/spec_helper.rb +35 -0
  150. data/spec/support/coverage.rb +2 -0
  151. data/spec/support/fixture_helpers.rb +14 -0
  152. data/spec/support/middleware.rb +19 -0
  153. metadata +479 -0
@@ -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>
@@ -0,0 +1,26 @@
1
+ {
2
+ "@odata.context": "http://services.odata.org/V4/OData/OData.svc/$metadata#Suppliers/$entity",
3
+ "ID": 0,
4
+ "Name": "Exotic Liquids",
5
+ "Address": {
6
+ "Street": "NE 228th",
7
+ "City": "Sammamish",
8
+ "State": "WA",
9
+ "ZipCode": "98074",
10
+ "Country": "USA"
11
+ },
12
+ "Location": {
13
+ "type": "Point",
14
+ "coordinates": [
15
+ -122.03547668457,
16
+ 47.6316604614258
17
+ ],
18
+ "crs": {
19
+ "type": "name",
20
+ "properties": {
21
+ "name": "EPSG:4326"
22
+ }
23
+ }
24
+ },
25
+ "Concurrency": 0
26
+ }
@@ -0,0 +1,32 @@
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#Suppliers/$entity" m:etag="W/&quot;0&quot;">
3
+ <id>http://services.odata.org/V4/OData/OData.svc/Suppliers(0)</id>
4
+ <category term="#ODataDemo.Supplier" scheme="http://docs.oasis-open.org/odata/ns/scheme" />
5
+ <link rel="edit" title="Supplier" href="Suppliers(0)" />
6
+ <link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Products" type="application/xml" title="Products" href="Suppliers(0)/Products/$ref" />
7
+ <link rel="http://docs.oasis-open.org/odata/ns/related/Products" type="application/atom+xml;type=feed" title="Products" href="Suppliers(0)/Products" />
8
+ <title />
9
+ <updated>2017-11-28T19:17:33Z</updated>
10
+ <author>
11
+ <name />
12
+ </author>
13
+ <content type="application/xml">
14
+ <m:properties>
15
+ <d:ID m:type="Int32">0</d:ID>
16
+ <d:Name>Exotic Liquids</d:Name>
17
+ <d:Address m:type="#ODataDemo.Address">
18
+ <d:Street>NE 228th</d:Street>
19
+ <d:City>Sammamish</d:City>
20
+ <d:State>WA</d:State>
21
+ <d:ZipCode>98074</d:ZipCode>
22
+ <d:Country>USA</d:Country>
23
+ </d:Address>
24
+ <d:Location m:type="GeographyPoint">
25
+ <gml:Point gml:srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
26
+ <gml:pos>47.6316604614258 -122.03547668457</gml:pos>
27
+ </gml:Point>
28
+ </d:Location>
29
+ <d:Concurrency m:type="Int32">0</d:Concurrency>
30
+ </m:properties>
31
+ </content>
32
+ </entry>