Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CIM - Context Information Management
NGSI-LD API
Commits
cda579f1
Commit
cda579f1
authored
Nov 06, 2018
by
canterafonsj
Browse files
Subscription
parent
18ffc49c
Changes
1
Show whitespace changes
Inline
Side-by-side
schema/Subscription.json
View file @
cda579f1
...
@@ -4,7 +4,52 @@
...
@@ -4,7 +4,52 @@
"title"
:
"NGSI-LD Subscription"
,
"title"
:
"NGSI-LD Subscription"
,
"description"
:
"NGSI-LD Subscription"
,
"description"
:
"NGSI-LD Subscription"
,
"definitions"
:
{
"definitions"
:
{
"NotificationParams"
:
{},
"NotificationParams"
:
{
"type"
:
"object"
,
"properties"
:
{
"type"
:
"object"
,
"required"
:
[
"endpoint"
],
"properties"
:
{
"attributes"
:
{
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"type"
:
"string"
}
},
"format"
:
{
"type"
:
"string"
},
"endpoint"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EndPoint"
},
"status"
:
{
"type"
:
"string"
,
"enum"
:
[
"ok"
,
"failed"
]
},
"timesSent"
:
{
"type"
:
"number"
,
"minimum"
:
1
},
"lastNotification"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"lastFailure"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"lastSuccess"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
}
}
},
"EntityInfo"
:
{},
"EntityInfo"
:
{},
"GeoQuery"
:
{
"GeoQuery"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
...
@@ -29,17 +74,19 @@
...
@@ -29,17 +74,19 @@
},
},
{
{
"type"
:
"string"
,
"type"
:
"string"
,
"pattern"
:
"near;maxDistance=="
"pattern"
:
"near;
(
maxDistance==
\\
d+)|(minDistance==
\\
d+)$
"
}
}
]
]
},
},
"coordinates"
:
{
"coordinates"
:
{
"oneOf"
:
[{
"oneOf"
:
[
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/position"
,
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/position"
,
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/positionArray"
,
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/positionArray"
,
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/lineString"
,
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/lineString"
,
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/polygon"
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/polygon"
}]
}
]
},
},
"geometry"
:
{
"geometry"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
...
@@ -125,6 +172,7 @@
...
@@ -125,6 +172,7 @@
},
},
"required"
:
[
"required"
:
[
"id"
,
"id"
,
"type"
,
"type"
]
]
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment