|
56 | 56 | "SasToken": []
|
57 | 57 | }
|
58 | 58 | ],
|
59 |
| - "responses": { |
60 |
| - "400": { |
61 |
| - "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", |
62 |
| - "schema": { |
63 |
| - "$ref": "#/definitions/ODataErrorResponse" |
64 |
| - } |
65 |
| - }, |
66 |
| - "401": { |
67 |
| - "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", |
68 |
| - "schema": { |
69 |
| - "$ref": "#/definitions/ODataErrorResponse" |
70 |
| - }, |
71 |
| - "headers": { |
72 |
| - "WWW-Authenticate": { |
73 |
| - "type": "string", |
74 |
| - "description": "Bearer realm=\"https://atlas.microsoft.com/\", error=\"invalid_token\", error_description=\"The access token expired\"" |
75 |
| - } |
76 |
| - } |
77 |
| - }, |
78 |
| - "403": { |
79 |
| - "description": "Permission, capacity, or authentication issues.", |
80 |
| - "schema": { |
81 |
| - "$ref": "#/definitions/ODataErrorResponse" |
82 |
| - } |
83 |
| - }, |
84 |
| - "404": { |
85 |
| - "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", |
86 |
| - "schema": { |
87 |
| - "$ref": "#/definitions/ODataErrorResponse" |
88 |
| - } |
89 |
| - }, |
90 |
| - "500": { |
91 |
| - "description": "An error occurred while processing the request. Please try again later.", |
92 |
| - "schema": { |
93 |
| - "$ref": "#/definitions/ODataErrorResponse" |
94 |
| - } |
95 |
| - }, |
96 |
| - "200Async": { |
97 |
| - "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", |
98 |
| - "schema": { |
99 |
| - "$ref": "#/definitions/LongRunningOperationResult" |
100 |
| - }, |
101 |
| - "headers": { |
102 |
| - "Resource-Location": { |
103 |
| - "type": "string", |
104 |
| - "description": "If successful, a URI where details on the newly created resource can be found." |
105 |
| - } |
106 |
| - } |
107 |
| - }, |
108 |
| - "202Accepted": { |
109 |
| - "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", |
110 |
| - "headers": { |
111 |
| - "Operation-Location": { |
112 |
| - "type": "string", |
113 |
| - "description": "New URL to check for the results of the long running process." |
114 |
| - } |
115 |
| - } |
116 |
| - } |
117 |
| - }, |
118 | 59 | "parameters": {
|
119 | 60 | "GeographicResourceLocation": {
|
120 | 61 | "name": "geography",
|
|
249 | 190 | "/mapData": {
|
250 | 191 | "post": {
|
251 | 192 | "x-publish": true,
|
252 |
| - "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nThe Data Upload API allows the caller to upload data content to the Azure Maps service.\nYou can use this API in a scenario like uploading a collection of Geofences in `GeoJSON` \nformat, for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/rest/api/maps/spatial).\n\n## Submit Upload Request\n\nTo upload your content you will use a `POST` request. The request body will contain the data to upload. The `Content-Type` header will be set to the content type of the \ndata.\n\nFor example, to upload a collection of geofences in `GeoJSON` format, set the request body to the geofence \ncontent. Set the `dataFormat` query parameter to _geojson_, and set the `Content-Type` header to either one \nof the following media types:\n\n- `application/json`\n- `application/vnd.geo+json`\n- `application/octet-stream`\n\nHere's a sample request body for uploading a simple Geofence represented as a circle geometry using a center \npoint and a radius. The sample below is in `GeoJSON`:\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```\n\nThe Data Upload API performs a \n[long-running request](https://aka.ms/am-creator-lrt-v2).\n\n## Data Upload Limits\n\nPlease, be aware that currently every Azure Maps account has a [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits). \nOnce the storage limit is reached, all the new upload API calls will return a `409 Conflict` http error response. \nYou can always use the [Data Delete API](https://docs.microsoft.com/rest/api/maps/data-v2/delete-preview) to \ndelete old/unused content and create space for new uploads.", |
| 193 | + "description": "**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nThe Data Upload API allows the caller to upload data content to the Azure Maps service.\nYou can use this API in a scenario like uploading a collection of Geofences in `GeoJSON` \nformat, for use in our [Azure Maps Geofencing Service](https://docs.microsoft.com/rest/api/maps/spatial).\n\n## Submit Upload Request\n\nTo upload your content you will use a `POST` request. The request body will contain the data to upload. The `Content-Type` header will be set to the content type of the \ndata.\n\nFor example, to upload a collection of geofences in `GeoJSON` format, set the request body to the geofence \ncontent. Set the `dataFormat` query parameter to _geojson_, and set the `Content-Type` header to either one \nof the following media types:\n\n- `application/json` if `dataFormat` is `JSON`\n- `application/vnd.geo+json` if `dataFormat` is `geoJSON` \n- `application/octet-stream` if `dataFormat` is `zip`\n\nHere's a sample request body for uploading a simple Geofence represented as a circle geometry using a center \npoint and a radius. The sample below is in `GeoJSON`:\n\n```json\n{\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-122.126986, 47.639754]\n },\n \"properties\": {\n \"geometryId\": \"001\",\n \"radius\": 500\n }\n }]\n}\n```\n\nThe Data Upload API performs a \n[long-running request](https://aka.ms/am-creator-lrt-v2).\n\n## Data Upload Limits\n\nPlease, be aware that currently every Azure Maps account has a [data storage limit](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-maps-limits). \nOnce the storage limit is reached, all the new upload API calls will return a `409 Conflict` http error response. \nYou can always use the [Data Delete API](https://docs.microsoft.com/rest/api/maps/data-v2/delete-preview) to \ndelete old/unused content and create space for new uploads.", |
253 | 194 | "operationId": "Data_UploadPreview",
|
254 | 195 | "x-ms-long-running-operation": true,
|
255 | 196 | "x-ms-long-running-operation-options": {
|
|
294 | 235 | }
|
295 | 236 | },
|
296 | 237 | "202": {
|
297 |
| - "$ref": "#/responses/202Accepted" |
| 238 | + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", |
| 239 | + "headers": { |
| 240 | + "Operation-Location": { |
| 241 | + "type": "string", |
| 242 | + "description": "New URL to check for the results of the long running process." |
| 243 | + } |
| 244 | + } |
298 | 245 | },
|
299 | 246 | "400": {
|
300 |
| - "$ref": "#/responses/400" |
| 247 | + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", |
| 248 | + "schema": { |
| 249 | + "$ref": "#/definitions/ODataErrorResponse" |
| 250 | + } |
301 | 251 | },
|
302 | 252 | "401": {
|
303 |
| - "$ref": "#/responses/401" |
| 253 | + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", |
| 254 | + "schema": { |
| 255 | + "$ref": "#/definitions/ODataErrorResponse" |
| 256 | + } |
304 | 257 | },
|
305 | 258 | "403": {
|
306 |
| - "$ref": "#/responses/403" |
| 259 | + "description": "Permission, capacity, or authentication issues.", |
| 260 | + "schema": { |
| 261 | + "$ref": "#/definitions/ODataErrorResponse" |
| 262 | + } |
307 | 263 | },
|
308 | 264 | "404": {
|
309 |
| - "$ref": "#/responses/404" |
| 265 | + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", |
| 266 | + "schema": { |
| 267 | + "$ref": "#/definitions/ODataErrorResponse" |
| 268 | + } |
310 | 269 | },
|
311 | 270 | "500": {
|
312 |
| - "$ref": "#/responses/500" |
| 271 | + "description": "An error occurred while processing the request. Please try again later.", |
| 272 | + "schema": { |
| 273 | + "$ref": "#/definitions/ODataErrorResponse" |
| 274 | + } |
313 | 275 | }
|
314 | 276 | }
|
315 | 277 | },
|
|
347 | 309 | }
|
348 | 310 | },
|
349 | 311 | "400": {
|
350 |
| - "$ref": "#/responses/400" |
| 312 | + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", |
| 313 | + "schema": { |
| 314 | + "$ref": "#/definitions/ODataErrorResponse" |
| 315 | + } |
351 | 316 | },
|
352 | 317 | "401": {
|
353 |
| - "$ref": "#/responses/401" |
| 318 | + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", |
| 319 | + "schema": { |
| 320 | + "$ref": "#/definitions/ODataErrorResponse" |
| 321 | + } |
354 | 322 | },
|
355 | 323 | "403": {
|
356 |
| - "$ref": "#/responses/403" |
| 324 | + "description": "Permission, capacity, or authentication issues.", |
| 325 | + "schema": { |
| 326 | + "$ref": "#/definitions/ODataErrorResponse" |
| 327 | + } |
357 | 328 | },
|
358 | 329 | "404": {
|
359 |
| - "$ref": "#/responses/404" |
| 330 | + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", |
| 331 | + "schema": { |
| 332 | + "$ref": "#/definitions/ODataErrorResponse" |
| 333 | + } |
360 | 334 | },
|
361 | 335 | "500": {
|
362 |
| - "$ref": "#/responses/500" |
| 336 | + "description": "An error occurred while processing the request. Please try again later.", |
| 337 | + "schema": { |
| 338 | + "$ref": "#/definitions/ODataErrorResponse" |
| 339 | + } |
363 | 340 | }
|
364 | 341 | }
|
365 | 342 | }
|
|
412 | 389 | }
|
413 | 390 | },
|
414 | 391 | "202": {
|
415 |
| - "$ref": "#/responses/202Accepted" |
| 392 | + "description": "Request Accepted: The request has been accepted for processing. Please use the URL in the Operation-Location Header to obtain status.", |
| 393 | + "headers": { |
| 394 | + "Operation-Location": { |
| 395 | + "type": "string", |
| 396 | + "description": "New URL to check for the results of the long running process." |
| 397 | + } |
| 398 | + } |
416 | 399 | },
|
417 | 400 | "400": {
|
418 |
| - "$ref": "#/responses/400" |
| 401 | + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", |
| 402 | + "schema": { |
| 403 | + "$ref": "#/definitions/ODataErrorResponse" |
| 404 | + } |
419 | 405 | },
|
420 | 406 | "401": {
|
421 |
| - "$ref": "#/responses/401" |
| 407 | + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", |
| 408 | + "schema": { |
| 409 | + "$ref": "#/definitions/ODataErrorResponse" |
| 410 | + } |
422 | 411 | },
|
423 | 412 | "403": {
|
424 |
| - "$ref": "#/responses/403" |
| 413 | + "description": "Permission, capacity, or authentication issues.", |
| 414 | + "schema": { |
| 415 | + "$ref": "#/definitions/ODataErrorResponse" |
| 416 | + } |
425 | 417 | },
|
426 | 418 | "404": {
|
427 |
| - "$ref": "#/responses/404" |
| 419 | + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", |
| 420 | + "schema": { |
| 421 | + "$ref": "#/definitions/ODataErrorResponse" |
| 422 | + } |
428 | 423 | },
|
429 | 424 | "500": {
|
430 |
| - "$ref": "#/responses/500" |
| 425 | + "description": "An error occurred while processing the request. Please try again later.", |
| 426 | + "schema": { |
| 427 | + "$ref": "#/definitions/ODataErrorResponse" |
| 428 | + } |
431 | 429 | }
|
432 | 430 | }
|
433 | 431 | },
|
|
468 | 466 | }
|
469 | 467 | },
|
470 | 468 | "400": {
|
471 |
| - "$ref": "#/responses/400" |
| 469 | + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", |
| 470 | + "schema": { |
| 471 | + "$ref": "#/definitions/ODataErrorResponse" |
| 472 | + } |
472 | 473 | },
|
473 | 474 | "401": {
|
474 |
| - "$ref": "#/responses/401" |
| 475 | + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", |
| 476 | + "schema": { |
| 477 | + "$ref": "#/definitions/ODataErrorResponse" |
| 478 | + } |
475 | 479 | },
|
476 | 480 | "403": {
|
477 |
| - "$ref": "#/responses/403" |
| 481 | + "description": "Permission, capacity, or authentication issues.", |
| 482 | + "schema": { |
| 483 | + "$ref": "#/definitions/ODataErrorResponse" |
| 484 | + } |
478 | 485 | },
|
479 | 486 | "404": {
|
480 |
| - "$ref": "#/responses/404" |
| 487 | + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", |
| 488 | + "schema": { |
| 489 | + "$ref": "#/definitions/ODataErrorResponse" |
| 490 | + } |
481 | 491 | },
|
482 | 492 | "500": {
|
483 |
| - "$ref": "#/responses/500" |
| 493 | + "description": "An error occurred while processing the request. Please try again later.", |
| 494 | + "schema": { |
| 495 | + "$ref": "#/definitions/ODataErrorResponse" |
| 496 | + } |
484 | 497 | }
|
485 | 498 | }
|
486 | 499 | },
|
|
512 | 525 | "description": "Data delete request completed successfully. The content for `udid` was deleted on the server."
|
513 | 526 | },
|
514 | 527 | "400": {
|
515 |
| - "$ref": "#/responses/400" |
| 528 | + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", |
| 529 | + "schema": { |
| 530 | + "$ref": "#/definitions/ODataErrorResponse" |
| 531 | + } |
516 | 532 | },
|
517 | 533 | "401": {
|
518 |
| - "$ref": "#/responses/401" |
| 534 | + "description": "Access denied due to invalid subscription key or invalid Azure Active Directory (Azure AD) bearer token. Make sure to provide a valid key for an active Azure subscription and Maps resource. Otherwise, verify the [WWW-Authenticate](https://tools.ietf.org/html/rfc6750#section-3.1) header for error code and description of the provided Azure AD bearer token.", |
| 535 | + "schema": { |
| 536 | + "$ref": "#/definitions/ODataErrorResponse" |
| 537 | + } |
519 | 538 | },
|
520 | 539 | "403": {
|
521 |
| - "$ref": "#/responses/403" |
| 540 | + "description": "Permission, capacity, or authentication issues.", |
| 541 | + "schema": { |
| 542 | + "$ref": "#/definitions/ODataErrorResponse" |
| 543 | + } |
522 | 544 | },
|
523 | 545 | "404": {
|
524 |
| - "$ref": "#/responses/404" |
| 546 | + "description": "Not Found: the requested resource could not be found, but it may be available again in the future.", |
| 547 | + "schema": { |
| 548 | + "$ref": "#/definitions/ODataErrorResponse" |
| 549 | + } |
525 | 550 | },
|
526 | 551 | "500": {
|
527 |
| - "$ref": "#/responses/500" |
| 552 | + "description": "An error occurred while processing the request. Please try again later.", |
| 553 | + "schema": { |
| 554 | + "$ref": "#/definitions/ODataErrorResponse" |
| 555 | + } |
528 | 556 | }
|
529 | 557 | }
|
530 | 558 | }
|
|
554 | 582 | ],
|
555 | 583 | "responses": {
|
556 | 584 | "200": {
|
557 |
| - "$ref": "#/responses/200Async" |
| 585 | + "description": "The operation is running or complete. If the operation was successful, use the Resource-Location header to obtain the path to the result.", |
| 586 | + "schema": { |
| 587 | + "$ref": "#/definitions/LongRunningOperationResult" |
| 588 | + } |
558 | 589 | },
|
559 | 590 | "400": {
|
560 |
| - "$ref": "#/responses/400" |
| 591 | + "description": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive.", |
| 592 | + "schema": { |
| 593 | + "$ref": "#/definitions/ODataErrorResponse" |
| 594 | + } |
561 | 595 | }
|
562 | 596 | }
|
563 | 597 | }
|
|
656 | 690 | },
|
657 | 691 | "MapDataDownloadResponse": {
|
658 | 692 | "description": "The response model for the Data Download API. The response body will contain the content for the passed in `udid`.",
|
659 |
| - "type": "object" |
| 693 | + "type": "object", |
| 694 | + "properties": {} |
660 | 695 | },
|
661 | 696 | "MapDataListResponse": {
|
662 | 697 | "description": "The response model for the Data List API. Returns a list of all the previously uploaded data.",
|
|
0 commit comments