{
	"info": {
		"_postman_id": "b874aaca-1e6c-4c54-9b4c-3296285592ef",
		"name": "Radar",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Radar",
			"item": [
				{
					"name": "Find your future acquisition (for tasking)",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{token}}",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"aoi\": {\r\n    \"type\": \"Polygon\",\r\n    \"coordinates\": [[[9.346, 47.788], [9.291, 47.644], [9.538, 47.592], [9.62, 47.75], [9.511, 47.802], [9.346, 47.788]]]\r\n  },\r\n  \"time\": {\r\n    \"from\": \"2023-10-14T13:28:03.569Z\",\r\n    \"to\": \"2023-10-24T13:28:03.569Z\"\r\n  },\r\n  \"feasibilityLevel\": \"complete\",\r\n  \"sensorMode\": \"SAR_SM_S\",\r\n  \"productType\": \"EEC\",\r\n  \"orbitType\": \"NRT\"\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://sar.api.oneatlas.airbus.com/v1/sar/feasibility",
							"protocol": "https",
							"host": [
								"sar",
								"api",
								"oneatlas",
								"airbus",
								"com"
							],
							"path": [
								"v1",
								"sar",
								"feasibility"
							]
						}
					},
					"response": []
				},
				{
					"name": "Find archive imagery",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{token}}",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"aoi\": {\r\n    \"type\": \"Polygon\",\r\n    \"coordinates\": [\r\n      [[9.346, 47.788], [9.291, 47.644], [9.538, 47.592], [9.62, 47.75], [9.511, 47.802], [9.346, 47.788]]\r\n    ]\r\n  },\r\n  \"time\": {\r\n    \"from\": \"2021-10-14T13:28:03.569Z\",\r\n    \"to\": \"2022-10-29T13:28:03.569Z\"\r\n  }\r\n}\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://sar.api.oneatlas.airbus.com/v1/sar/catalogue",
							"protocol": "https",
							"host": [
								"sar",
								"api",
								"oneatlas",
								"airbus",
								"com"
							],
							"path": [
								"v1",
								"sar",
								"catalogue"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create a basket",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{token}}",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://sar.api.oneatlas.airbus.com/v1/sar/baskets",
							"protocol": "https",
							"host": [
								"sar",
								"api",
								"oneatlas",
								"airbus",
								"com"
							],
							"path": [
								"v1",
								"sar",
								"baskets"
							]
						}
					},
					"response": []
				},
				{
					"name": "Add items to your basket",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{token}}",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"items\": [\r\n        \"23d5f214-1552-c3e0-78dd-436b2ab49ab7\"\r\n    ],\r\n    \"orderOptions\": {\r\n        \"productType\": \"EEC\",\r\n        \"resolutionVariant\": \"RE\",\r\n        \"orbitType\": \"rapid\",\r\n        \"mapProjection\": \"auto\",\r\n        \"gainAttenuation\": 0\r\n    }\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://sar.api.oneatlas.airbus.com/v1/sar/baskets/{{basketId}}/addItems",
							"protocol": "https",
							"host": [
								"sar",
								"api",
								"oneatlas",
								"airbus",
								"com"
							],
							"path": [
								"v1",
								"sar",
								"baskets",
								"{{basketId}}",
								"addItems"
							]
						}
					},
					"response": []
				},
				{
					"name": "Patch your basket",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "{{token}}",
								"type": "default"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"purpose\": \"Aerospace Industry Company\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://sar.api.oneatlas.airbus.com/v1/sar/baskets/{{basketId}}",
							"protocol": "https",
							"host": [
								"sar",
								"api",
								"oneatlas",
								"airbus",
								"com"
							],
							"path": [
								"v1",
								"sar",
								"baskets",
								"{{basketId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Submit your basket",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{token}}",
								"type": "default"
							}
						],
						"url": {
							"raw": "https://sar.api.oneatlas.airbus.com/v1/sar/baskets/{{basketId}}/submit",
							"protocol": "https",
							"host": [
								"sar",
								"api",
								"oneatlas",
								"airbus",
								"com"
							],
							"path": [
								"v1",
								"sar",
								"baskets",
								"{{basketId}}",
								"submit"
							]
						}
					},
					"response": []
				},
				{
					"name": "Check orders status",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{token}}",
								"type": "default"
							}
						],
						"url": {
							"raw": "https://sar.api.oneatlas.airbus.com/v1/sar/orders/{{order_id_or_basket_id}}",
							"protocol": "https",
							"host": [
								"sar",
								"api",
								"oneatlas",
								"airbus",
								"com"
							],
							"path": [
								"v1",
								"sar",
								"orders",
								"{{order_id_or_basket_id}}"
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "basketId",
			"value": "",
			"type": "default"
		},
		{
			"key": "order_id_or_basket_id",
			"value": "",
			"type": "default"
		},
		{
			"key": "token",
			"value": "",
			"type": "default"
		}
	]
}