Commit 2eddde67 authored by canterafonsj's avatar canterafonsj
Browse files

Entity Fragment

parent debd3734
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
"content": { "content": {
"application/json;application/ld+json": { "application/json;application/ld+json": {
"schema": { "schema": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/EntityFragment"
} }
} }
} }
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
"content": { "content": {
"application/json;application/ld+json": { "application/json;application/ld+json": {
"schema": { "schema": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/EntityFragment"
} }
} }
} }
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
"content": { "content": {
"application/json;application/ld+json": { "application/json;application/ld+json": {
"schema": { "schema": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/EntityFragment"
} }
} }
} }
......
...@@ -195,6 +195,19 @@ ...@@ -195,6 +195,19 @@
"type": "integer", "type": "integer",
"minimum": 1 "minimum": 1
} }
},
{
"name": "options",
"description": "Options dictionary",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
"keyValues",
"sysAttrs"
]
}
} }
], ],
"responses": { "responses": {
...@@ -203,23 +216,10 @@ ...@@ -203,23 +216,10 @@
"content": { "content": {
"application/json;application/ld+json": { "application/json;application/ld+json": {
"schema": { "schema": {
"$schema": "http://json-schema.org/schema#", "type": "array",
"id": "https://uri.etsi.org/ngsi-ld/schema/EntityList.json", "items": {
"title": "NGSI-LD EntityList", "$ref": "#/paths/~1entities~1%7BentityId%7D~1attrs~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/definitions/Entity"
"description": "NGSI-LD EntityList", }
"definitions": {
"EntityList": {
"type": "array",
"items": {
"$ref": "#/paths/~1entities~1%7BentityId%7D~1attrs~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/definitions/Entity"
}
}
},
"allOf": [
{
"$ref": "#/paths/~1entities~1/get/responses/200/content/application~1json%3Bapplication~1ld%2Bjson/schema/definitions/EntityList"
}
]
}, },
"examples": { "examples": {
"simple": { "simple": {
...@@ -342,6 +342,9 @@ ...@@ -342,6 +342,9 @@
"minLength": 1, "minLength": 1,
"description": "NGSI-LD Name" "description": "NGSI-LD Name"
} }
},
{
"$ref": "#/paths/~1entities~1/get/parameters/11"
} }
], ],
"responses": { "responses": {
...@@ -350,7 +353,7 @@ ...@@ -350,7 +353,7 @@
"content": { "content": {
"application/json;application/ld+json": { "application/json;application/ld+json": {
"schema": { "schema": {
"$ref": "#/paths/~1entities~1%7BentityId%7D~1attrs~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema" "$ref": "#/paths/~1entities~1%7BentityId%7D~1attrs~1/post/requestBody/content/application~1json%3Bapplication~1ld%2Bjson/schema/definitions/Entity"
}, },
"examples": { "examples": {
"simple": { "simple": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment