Add geometry, type and properties parameters on event
This commit is contained in:
parent
0b11aa6d2d
commit
393461d2c1
1 changed files with 48 additions and 3 deletions
49
swagger.json
49
swagger.json
|
@ -187,7 +187,29 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Event": {
|
"EventGeometry": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Geometry type: Point"
|
||||||
|
},
|
||||||
|
"coordinates": {
|
||||||
|
"description": "Geometry coordinates (latitude; longitude)",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "float",
|
||||||
|
"maxItems": 2,
|
||||||
|
"minItems": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"EventProperties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"id",
|
"id",
|
||||||
|
@ -221,7 +243,8 @@
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Event type: scheduled, forecast, unscheduled"
|
"description": "Event type",
|
||||||
|
"enum": ["scheduled", "forecast", "unscheduled"]
|
||||||
},
|
},
|
||||||
"what": {
|
"what": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -233,6 +256,28 @@
|
||||||
"description": "Event timestamp"
|
"description": "Event timestamp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"Event": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"geometry",
|
||||||
|
"properties",
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"geometry": {
|
||||||
|
"$ref": "#/definitions/EventGeometry"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/EventProperties"
|
||||||
|
},
|
||||||
|
"type":
|
||||||
|
{
|
||||||
|
"description": "Type of event",
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["Point"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue