Commit feec0403 authored by Noel Alonso's avatar Noel Alonso
Browse files

Adapta tests a nuevas propiedades

parent e92b2e95
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -95,13 +95,6 @@
		"address": "Edf. Puerto-Ciudad, of. 1b, S/C de Tenerife 38001 Spain ",
		"email": "gis@oag-fundacion.org"
	},
	"activities": [
		{
			"id": "817",
			"name": null,
			"path": null
		}
	],
	"timeDimension": {
		"name": "time",
		"units": "ISO8601",
+12 −3
Original line number Diff line number Diff line
@@ -96,9 +96,9 @@
	},
	"activities": [
		{
			"id": "817",
			"name": null,
			"path": null
			"activity": {
				"id": "817"
			}
		}
	],
	"timeDimension": {
@@ -143,6 +143,15 @@
		"type": "WMS",
		"url" :"https://atlas.redmic.es/geoserver/tn/wms"
	}],
	"downloads": [{
		"name": "geoserver",
		"url" :"https://atlas.redmic.es/geoserver/tn/wms"
	}],
	"timeDefinition": {
		"startDate": "2017-05-23T12:35:12.052+00:00",
		"endDate": "2019-05-23T12:35:12.052+00:00",
		"interval": "1h"
	},
	"description": "Batimetrías de costera de las Islas Canarias (DGC)",
	"alias": "Batimetrías by operator",
	"atlas": true,
+12 −1
Original line number Diff line number Diff line
@@ -5,8 +5,10 @@
	},
	"activities": [
		{
			"activity": {
				"id": "817"
			}
		}
	],
	"themeInspire": {
		"id": "themeInspire-el",
@@ -18,6 +20,15 @@
		"type": "WMS",
		"url" :"https://atlas.redmic.es/geoserver/tn/wms"
	}],
	"downloads": [{
		"name": "geoserver",
		"url" :"https://atlas.redmic.es/geoserver/tn/wms"
	}],
	"timeDefinition": {
		"startDate": "2017-05-23T12:35:12.052+00:00",
		"endDate": "2019-05-23T12:35:12.052+00:00",
		"interval": "1h"
	},
	"latLonBoundsImage": {
		"maxX": -15.826663970947266,
		"maxY": 27.962779998779297,
+42 −0
Original line number Diff line number Diff line
@@ -35,6 +35,17 @@
				"$ref": "#/definitions/ProtocolDTO"
			}
		},
		"downloads": {
			"type": ["array", "null"],
			"uniqueItemsByRequiredProperties": true,
			"uniqueItems": true,
			"items": {
				"$ref": "#/definitions/DownloadDTO"
			}
		},
		"timeDefinition": {
			"$ref": "#/definitions/TimeDefinitionDTO"
		},
		"description": {
			"type": ["string", "null"],
			"maxLength": 1500
@@ -57,6 +68,9 @@
		"parent": {
			"type": "string",
			"url": "/api/atlas/view/category"
		},
		"styles": {
			"type": ["string","null"]
		}
	},
	"required": ["name", "protocols", "atlas", "refresh", "urlSource", "parent"],
@@ -100,6 +114,34 @@
				}
			},
			"required": ["type", "url"]
		},
		"DownloadDTO": {
			"type": "object",
			"properties": {
				"name": {
					"type": "string"
				},
				"url": {
					"type": "string",
					"format": "url"
				}
			},
			"required": ["name", "url"]
		},
		"TimeDefinitionDTO": {
			"type": ["object", "null"],
			"properties": {
				"startDate": {
					"type": "string"
				},
				"endDate": {
					"type": ["string", "null"]
				},
				"interval": {
					"type": ["string", "null"]
				}
			},
			"required": ["startDate"]
		}
	}
}