Commit fdb77329 authored by canterafonsj's avatar canterafonsj
Browse files

Time rel in common

parent 09538f0b
Loading
Loading
Loading
Loading
+160 −148
Original line number Diff line number Diff line
@@ -23,7 +23,8 @@
      "format": "date-time"
    },
    "LdContext": {
			"anyOf": [{
      "anyOf": [
        {
          "type": "object"
        },
        {
@@ -34,7 +35,8 @@
          "type": "array",
          "minItems": 1,
          "items": {
						"anyOf": [{
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
@@ -103,7 +105,8 @@
      ]
    },
    "georel": {
			"anyOf": [{
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "equals",
@@ -121,7 +124,8 @@
      ]
    },
    "coordinates": {
			"oneOf": [{
      "oneOf": [
        {
          "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/position"
        },
        {
@@ -145,6 +149,14 @@
        "Polygon",
        "MultiPolygon"
      ]
    },
	"timerel": {
		"type": "string",
		"enum": [
			"before",
			"after",
			"between"
		]
	}
  }
}
+14 −1
Original line number Diff line number Diff line
@@ -44,6 +44,16 @@
          "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name"
        }
      },
      "lastN": {
        "name": "lastN",
        "description": "Only retrieve last N instances",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "minValue": 1
        }
      },
      "options": {
        "name": "options",
        "description": "Options dictionary",
@@ -93,7 +103,7 @@
            "$ref": "#/components/parameters/timerel"
          },
          {
            "$ref": "#/components/parameters/temporalproperty"
            "$ref": "#/components/parameters/timeproperty"
          },
          {
            "$ref": "#/components/parameters/time"
@@ -109,6 +119,9 @@
          },
          {
            "$ref": "#/components/parameters/options"
          },
          {
            "$ref": "#/components/parameters/lastN"
          }
        ],
        "responses": {