Commit 8c0b23eb authored by canterafonsj's avatar canterafonsj
Browse files

Entities closer and closer

parent e588196b
Loading
Loading
Loading
Loading
+234 −173
Original line number Original line Diff line number Diff line
@@ -102,6 +102,16 @@
					"type": "string",
					"type": "string",
					"minLength": 1
					"minLength": 1
				}
				}
			},
			"limit": {
			  "name": "limit",
			  "description": "Pagination limit",
			  "in": "query",
			  "required": false,
			  "schema": {
			    "type": "integer",
			    "minimum": 1
			  }
			}
			}
		}
		}
	},
	},
@@ -110,8 +120,7 @@
			"get": {
			"get": {
				"description": "Retrieve a set of entities which matches a specific query from an NGSI-LD system",
				"description": "Retrieve a set of entities which matches a specific query from an NGSI-LD system",
				"operationId": "queryEntities",
				"operationId": "queryEntities",
        "parameters": [
				"parameters": [{
          {
						"$ref": "#/components/parameters/id"
						"$ref": "#/components/parameters/id"
					},
					},
					{
					{
@@ -140,6 +149,9 @@
					},
					},
					{
					{
						"$ref": "#/components/parameters/csf"
						"$ref": "#/components/parameters/csf"
					},
					{
						"$ref": "#/components/parameters/limit"
					}
					}
				],
				],
				"responses": {
				"responses": {
@@ -161,9 +173,58 @@
					"400": {
					"400": {
						"description": "Bad request",
						"description": "Bad request",
						"content": {
						"content": {
              "application/json": {
							"application/json;application/ld+json": {
								"schema": {
									"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
								}
							}
						}
					}
				}
			},
			"post": {
				"description": "Create a new Entity within an NGSI-LD system",
				"operationId": "createEntity",
				"requestBody": {
				  "required": true,
				  "content": {
				    "application/json;application/ld+json": {
				      "schema": {
									"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#"
				      },
				    }
				  }
				},
				"responses": {
					"201": {
						"description": "Created. Contains the resource URI of the created Entity"
					},
					"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"
								}
							}
						}
					},
					"409": {
						"description": "Already exists",
						"content": {
							"application/json;application/ld+json": {
								"schema": {
									"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
								}
							}
						}
					},
					"422": {
						"description": "Unprocessable Entity",
						"content": {
							"application/json;application/ld+json": {
								"schema": {
								"schema": {
                  "$ref": ""
									"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
								}
								}
							}
							}
						}
						}