{
	"info": {
		"_postman_id": "22dbfb4b-8a54-4a9f-baed-f9429af0015a",
		"name": "gSquare Estimation API",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "37337350"
	},
	"item": [
		{
			"name": "estimate",
			"item": [
				{
					"name": "Calculate Area",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"wkt\": \"strin\",\n  \"includeEstimate\": true,\n  \"includeImagery\": false,\n  \"includeWeather\": false\n}",
							"options": {
								"raw": {
									"headerFamily": "json",
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{baseUrl}}{{gsquare}}/estimate?model=default",
							"host": [
								"{{baseUrl}}{{gsquare}}"
							],
							"path": [
								"estimate"
							],
							"query": [
								{
									"key": "model",
									"value": "default"
								}
							]
						},
						"description": "Create a new gSquare estimate."
					},
					"response": [
						{
							"name": "Successful Response",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Content-Type",
										"value": "application/json"
									},
									{
										"key": "Accept",
										"value": "application/json"
									},
									{
										"key": "Authorization",
										"value": "Bearer <token>",
										"description": "Added as a part of security scheme: bearer"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"wkt\": \"strin\",\n  \"includeEstimate\": true,\n  \"includeImagery\": false,\n  \"includeWeather\": false\n}",
									"options": {
										"raw": {
											"headerFamily": "json",
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}{{gsquare}}/estimate?model=default",
									"host": [
										"{{baseUrl}}{{gsquare}}"
									],
									"path": [
										"estimate"
									],
									"query": [
										{
											"key": "model",
											"value": "default"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n  \"queryKey\": \"string\"\n}"
						},
						{
							"name": "Validation Error",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Content-Type",
										"value": "application/json"
									},
									{
										"key": "Accept",
										"value": "application/json"
									},
									{
										"key": "Authorization",
										"value": "Bearer <token>",
										"description": "Added as a part of security scheme: bearer"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"wkt\": \"strin\",\n  \"includeEstimate\": true,\n  \"includeImagery\": false,\n  \"includeWeather\": false\n}",
									"options": {
										"raw": {
											"headerFamily": "json",
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}{{gsquare}}/estimate?model=default",
									"host": [
										"{{baseUrl}}{{gsquare}}"
									],
									"path": [
										"estimate"
									],
									"query": [
										{
											"key": "model",
											"value": "default"
										}
									]
								}
							},
							"status": "Unprocessable Entity (WebDAV) (RFC 4918)",
							"code": 422,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"string\",\n        \"string\"\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    },\n    {\n      \"loc\": [\n        \"string\",\n        \"string\"\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    }\n  ]\n}"
						},
						{
							"name": "Example Calculate Area",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"key": "Content-Type",
										"value": "application/json"
									},
									{
										"key": "Accept",
										"value": "application/json"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n  \"wkt\": \"strin\",\n  \"includeEstimate\": true,\n  \"includeImagery\": false,\n  \"includeWeather\": false\n}",
									"options": {
										"raw": {
											"headerFamily": "json",
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}{{gsquare}}/estimate?model=default",
									"host": [
										"{{baseUrl}}{{gsquare}}"
									],
									"path": [
										"estimate"
									],
									"query": [
										{
											"key": "model",
											"value": "default"
										}
									]
								}
							},
							"_postman_previewlanguage": null,
							"header": null,
							"cookie": [],
							"body": null
						}
					]
				}
			]
		},
		{
			"name": "query",
			"item": [
				{
					"name": "{query_key}",
					"item": [
						{
							"name": "Get Query",
							"request": {
								"method": "GET",
								"header": [
									{
										"key": "Accept",
										"value": "application/json"
									}
								],
								"url": {
									"raw": "{{baseUrl}}{{gsquare}}/query/:query_key",
									"host": [
										"{{baseUrl}}{{gsquare}}"
									],
									"path": [
										"query",
										":query_key"
									],
									"variable": [
										{
											"key": "query_key",
											"value": "Query Key",
											"description": "(Required) "
										}
									]
								},
								"description": "Monitor the progress of the gSquare query using the query key returned by `/estimate/`"
							},
							"response": [
								{
									"name": "Successful Response",
									"originalRequest": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "application/json"
											},
											{
												"key": "Authorization",
												"value": "Bearer <token>",
												"description": "Added as a part of security scheme: bearer"
											}
										],
										"url": {
											"raw": "{{baseUrl}}{{gsquare}}/query/:query_key",
											"host": [
												"{{baseUrl}}{{gsquare}}"
											],
											"path": [
												"query",
												":query_key"
											],
											"variable": [
												{
													"key": "query_key"
												}
											]
										}
									},
									"status": "OK",
									"code": 200,
									"_postman_previewlanguage": "json",
									"header": [
										{
											"key": "Content-Type",
											"value": "application/json"
										}
									],
									"cookie": [],
									"body": "{\n  \"state\": \"FAILURE\",\n  \"results\": {\n    \"computedFootprint\": \"st\",\n    \"totalArea\": {\n      \"area\": 9054.335645673826,\n      \"units\": \"string\"\n    },\n    \"pitchResult\": {\n      \"primaryPitch\": 4018,\n      \"deviation\": 3962\n    },\n    \"confidence\": 3143,\n    \"imagery\": [\n      {\n        \"orientation\": \"string\",\n        \"image\": \"string\",\n        \"image-date\": \"string\"\n      },\n      {\n        \"orientation\": \"string\",\n        \"image\": \"string\",\n        \"image-date\": \"string\"\n      }\n    ],\n    \"weather\": [\n      {\n        \"datecode\": \"string\",\n        \"hailSize\": 2383.664272966508,\n        \"distance\": 8919.737283080245\n      },\n      {\n        \"datecode\": \"st\",\n        \"hailSize\": 4886.322453358464,\n        \"distance\": 6392.860031045527\n      }\n    ]\n  }\n}"
								},
								{
									"name": "Validation Error",
									"originalRequest": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "application/json"
											},
											{
												"key": "Authorization",
												"value": "Bearer <token>",
												"description": "Added as a part of security scheme: bearer"
											}
										],
										"url": {
											"raw": "{{baseUrl}}{{gsquare}}/query/:query_key",
											"host": [
												"{{baseUrl}}{{gsquare}}"
											],
											"path": [
												"query",
												":query_key"
											],
											"variable": [
												{
													"key": "query_key"
												}
											]
										}
									},
									"status": "Unprocessable Entity (WebDAV) (RFC 4918)",
									"code": 422,
									"_postman_previewlanguage": "json",
									"header": [
										{
											"key": "Content-Type",
											"value": "application/json"
										}
									],
									"cookie": [],
									"body": "{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"string\",\n        \"string\"\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    },\n    {\n      \"loc\": [\n        \"string\",\n        \"string\"\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    }\n  ]\n}"
								},
								{
									"name": "Example Get Query",
									"originalRequest": {
										"method": "GET",
										"header": [
											{
												"key": "Accept",
												"value": "application/json"
											}
										],
										"url": {
											"raw": "{{baseUrl}}{{gsquare}}/query/:query_key",
											"host": [
												"{{baseUrl}}{{gsquare}}"
											],
											"path": [
												"query",
												":query_key"
											],
											"variable": [
												{
													"key": "query_key",
													"value": "Query Key",
													"description": "(Required) "
												}
											]
										}
									},
									"_postman_previewlanguage": null,
									"header": null,
									"cookie": [],
									"body": null
								}
							]
						}
					]
				}
			]
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "value",
				"value": "API-Key {{token}}",
				"type": "string"
			},
			{
				"key": "key",
				"value": "Authorization",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "baseUrl",
			"value": "https://api.geospan.com/remote4d/v1/api/gsquare/"
		}
	]
}