-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility between OData and STA #136
Comments
Some more progress:
|
@hylkevds, some other differences that I have noticed:
OData response:
I don't find the OData spec very clear on expand path. But from ABNF expand path should contain only one navigation property that should be the last segment of the path. All segments before the navigation property segment must be type cast segments or complex type property segments in Odata.
|
At the last TC meeting I gave a little demo of using STA/OData in Excel.
Here are the differences I found so far:
@iot.selfLink
@odata.id
@id
@iot.navigationLink
@odata.navigationLink
@navigationLink
@iot.id
id
(@ and . confuse clients)id
(@ and . confuse clients)@odata.context
@context
phenomenonTime
,validTime
phenomenonTime.start
andphenomenonTime.end
phenomenonTime.start
andphenomenonTime.end
404 Not Found
204 No Content
204 No Content
Things that STA has that can not easily be mapped to OData:
Edm.DateTimeOffset
. This is an issue forObservation/phenomenonTime
,Observation/validTime
,Datastream/phenomenonTime
andDatastream/resultTime
.One solution would be to just use
Edm.String
, but this doesn't help clients. A better solution is to split the interval intointervalProperty.start
andintervalProperty.end
in the OData interface.Our test endpoint, for people that would like to try it out:
It's the same server instance, so the database in these three endpoints is the same.
Related to #72
Also in the FROST wiki.
The text was updated successfully, but these errors were encountered: