Open hylkevds opened 2 years ago
Some more progress:
"TimeInterval": {
"$Kind": "ComplexType",
"@Core.Description": "An ISO time interval.",
"start": {
"$Type": "Edm.DateTimeOffset"
},
"end": {
"$Type": "Edm.DateTimeOffset"
}
}
"TimeValue": {
"$Kind": "ComplexType",
"@Core.Description": "An ISO time instant or time interval.",
"start": {
"$Type": "Edm.DateTimeOffset"
},
"end": {
"$Type": "Edm.DateTimeOffset",
"$Nullable": true
}
},
At the last TC meeting I gave a little demo of using STA/OData in Excel.
@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 useEdm.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.