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
51
swagger.json
51
swagger.json
|
@ -187,7 +187,29 @@
|
|||
}
|
||||
},
|
||||
"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",
|
||||
"required": [
|
||||
"id",
|
||||
|
@ -221,7 +243,8 @@
|
|||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Event type: scheduled, forecast, unscheduled"
|
||||
"description": "Event type",
|
||||
"enum": ["scheduled", "forecast", "unscheduled"]
|
||||
},
|
||||
"what": {
|
||||
"type": "string",
|
||||
|
@ -233,6 +256,28 @@
|
|||
"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