Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
NGSI-LD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NGSI Linked Data
NGSI-LD
Commits
47846e2c
Commit
47846e2c
authored
Nov 22, 2018
by
canterafonsj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing enumeration
parent
6602d101
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
272 additions
and
190 deletions
+272
-190
common.json
schema/common.json
+2
-2
entities-spec.json
spec/updated/entities-spec.json
+123
-179
entity-operations-spec.json
spec/updated/entity-operations-spec.json
+147
-9
No files found.
schema/common.json
View file @
47846e2c
...
...
@@ -141,7 +141,7 @@
},
"geometry"
:
{
"type"
:
"string"
,
"enum
eration
"
:
[
"enum"
:
[
"Point"
,
"MultiPoint"
,
"LineString"
,
...
...
@@ -152,7 +152,7 @@
},
"timerel"
:
{
"type"
:
"string"
,
"enum
eration
"
:
[
"enum"
:
[
"before"
,
"after"
,
"between"
...
...
spec/updated/entities-spec.json
View file @
47846e2c
This diff is collapsed.
Click to expand it.
spec/updated/entity-operations-spec.json
View file @
47846e2c
...
...
@@ -2,14 +2,13 @@
"openapi"
:
"3.0.1"
,
"info"
:
{
"title"
:
"NGSI-LD Entity Operations"
,
"version"
:
"latest"
},
"components"
:
{
"version"
:
"0.1"
},
"components"
:
{},
"paths"
:
{
"/entityOperations/create"
:
{
"post"
:
{
"description"
:
"Batch Entity creation"
,
"description"
:
"Batch Entity creation"
,
"operationId"
:
"batchEntityCreation"
,
"requestBody"
:
{
"required"
:
true
,
...
...
@@ -25,12 +24,63 @@
"200"
:
{
"description"
:
"Success"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/BatchOperationResult.json#/definitions/BatchOperationResult"
}
}
}
},
"400"
:
{
"description"
:
"Bad request"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
}
}
}
}
}
}
},
"/entityOperations/update"
:
{
"post"
:
{
"description"
:
"Batch Entity update"
,
"operationId"
:
"batchEntityUpdate"
,
"parameters"
:
[
{
"name"
:
"options"
,
"in"
:
"query"
,
"required"
:
false
,
"schema"
:
{
"type"
:
"string"
,
"enum"
:
[
"noOverwrite"
]
}
}
],
"requestBody"
:
{
"required"
:
true
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/
BatchOperationResult.json#/definitions/BatchOperationResul
t"
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/
EntityList.json#/definitions/EntityLis
t"
}
}
}
},
"responses"
:
{
"200"
:
{
"description"
:
"Success"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/BatchOperationResult.json#/definitions/BatchOperationResult"
}
}
}
},
"400"
:
{
"description"
:
"Bad request"
,
...
...
@@ -41,16 +91,104 @@
}
}
}
},
}
}
}
},
"/entityOperations/update"
:
{
},
"/entityOperations/upsert"
:
{
"post"
:
{
"description"
:
"Batch Entity upsert"
,
"operationId"
:
"batchEntityUpsert"
,
"parameters"
:
[
{
"name"
:
"options"
,
"in"
:
"query"
,
"required"
:
false
,
"schema"
:
{
"type"
:
"string"
,
"enum"
:
[
"replace"
,
"update"
]
}
}
],
"requestBody"
:
{
"required"
:
true
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/EntityList.json#/definitions/EntityList"
}
}
}
},
"responses"
:
{
"200"
:
{
"description"
:
"Success"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/BatchOperationResult.json#/definitions/BatchOperationResult"
}
}
}
},
"400"
:
{
"description"
:
"Bad request"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
}
}
}
}
}
}
},
"/entityOperations/delete"
:
{
"post"
:
{
"description"
:
"Batch Entity delete"
,
"operationId"
:
"batchEntityDelete"
,
"requestBody"
:
{
"required"
:
true
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"minItems"
:
1
}
}
}
},
"responses"
:
{
"200"
:
{
"description"
:
"Success"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/BatchOperationResult.json#/definitions/BatchOperationResult"
}
}
}
},
"400"
:
{
"description"
:
"Bad request"
,
"content"
:
{
"application/json;application/ld+json"
:
{
"schema"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
}
}
}
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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