Skip to content

Commit 449b073

Browse files
authored
[Hub Generated] Review request for Creator to add version preview/2022-09-01-preview (#20653)
* swagger doc updates for custom styling apis * rename style import and export to create and get * More docs updates * Fix validation errors * Update to defaultConfiguration * Add Content-Type in request headers * Minior updates on comments * remove extra produces
1 parent e88242f commit 449b073

22 files changed

+130
-103
lines changed

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/mapconfiguration/MapConfiguration_Create.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"parameters": {
33
"geography": "us",
4-
"api-version": "2022-01-01-preview",
4+
"api-version": "2022-09-01-preview",
55
"alias": "sample-alias",
66
"description": "This is my first map configuration.",
77
"MapConfiguration": {
88
"version": 1.0,
99
"description": "This is Microsoft default indoor map configuration",
10-
"defaultStyle": "microsoft_light",
11-
"styles": [
10+
"defaultConfiguration": "microsoft_light",
11+
"configurations": [
1212
{
1313
"name": "indoor_light",
1414
"displayName": "Indoor light",
@@ -17,7 +17,7 @@
1717
"baseMap": "microsoft_light",
1818
"layers": [
1919
{
20-
"tilesetId": "b7485951-f6d9-e5ba-a332-8adb08fc7fb7",
20+
"tilesetId": "{tilesetId}",
2121
"styleId": "microsoft-maps:indoor_2022-01-01"
2222
}
2323
]
@@ -30,7 +30,7 @@
3030
"baseMap": "microsoft_dark",
3131
"layers": [
3232
{
33-
"tilesetId": "b7485951-f6d9-e5ba-a332-8adb08fc7fb7",
33+
"tilesetId": "{tilesetId}",
3434
"styleId": "microsoft-maps:indoor_dark_2022-01-01"
3535
}
3636
]

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/mapconfiguration/MapConfiguration_Delete.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"geography": "us",
44
"api-version": "2022-09-01-preview",
5-
"mapConfigurationId": "25084fb7-307a-4720-8f91-7952a0b91012"
5+
"mapConfigurationId": "{mapConfigurationId}"
66
},
77
"responses": {
88
"204": {}

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/mapconfiguration/MapConfiguration_Get.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"geography": "us",
44
"api-version": "2022-09-01-preview",
5-
"mapConfigurationId": "25084fb7-307a-4720-8f91-7952a0b91012"
5+
"mapConfigurationId": "{mapConfigurationId}"
66
},
77
"responses": {
88
"200": {

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/mapconfiguration/MapConfiguration_GetOperation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"parameters": {
33
"geography": "us",
44
"api-version": "2022-09-01-preview",
5-
"operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c"
5+
"operationId": "{operationId}"
66
},
77
"responses": {
88
"200": {
99
"body": {
10-
"operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c",
10+
"operationId": "{operationId}",
1111
"created": "2021-04-20T22:43:14.9401559+00:00",
1212
"status": "Succeeded"
1313
},
1414
"headers": {
15-
"Resource-Location": "https://us.atlas.microsoft.com/styles/mapConfigurations/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2022-09-01-preview"
15+
"Resource-Location": "https://us.atlas.microsoft.com/styles/mapConfigurations/{operationId}?api-version=2022-09-01-preview"
1616
}
1717
}
1818
}

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/mapconfiguration/MapConfiguration_GetOperationStillRunning.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"parameters": {
33
"geography": "us",
44
"api-version": "2022-09-01-preview",
5-
"operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c"
5+
"operationId": "{operationId}"
66
},
77
"responses": {
88
"200": {
99
"body": {
10-
"operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c",
10+
"operationId": "{operationId}",
1111
"created": "2021-04-23T19:14:03.2452596+00:00",
1212
"status": "Running"
1313
}

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/mapconfiguration/MapConfiguration_List.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"body": {
99
"mapConfigurations": [
1010
{
11-
"mapConfigurationId": "83f95b58-bd21-0c90-f904-341a0eb8f86e",
11+
"mapConfigurationId": "{mapConfigurationId}",
1212
"description": "map configuration with indoor dark style",
1313
"alias": "indoor_dark",
1414
"created": "2022-04-13T06:30:42+00:00"
1515
},
1616
{
17-
"mapConfigurationId": "36f67fb9-893d-019e-32ca-d26db5ee764a",
17+
"mapConfigurationId": "{mapConfigurationId}",
1818
"description": "Auto-generated map configuration for indoor tileset 28b8160a-68d8-4247-be0b-786c51963142.",
1919
"alias": "defaultIndoor_28b8160a-68d8-4247-be0b-786c51963142",
2020
"created": "2022-04-13T22:39:50+00:00"

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/style/Style_Import.json renamed to specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/style/Style_Create.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"geography": "us",
44
"api-version": "2022-09-01-preview",
55
"alias": "test-alias",
6-
"ImportContent": {
6+
"CreateContent": {
77
"layers": [
88
{
99
"id": "background",

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/style/Style_Delete.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"geography": "us",
44
"api-version": "2022-09-01-preview",
5-
"styleId": "25084fb7-307a-4720-8f91-7952a0b91012"
5+
"styleId": "{styleId}"
66
},
77
"responses": {
88
"204": {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"geography": "us",
44
"api-version": "2022-09-01-preview",
5-
"styleId": "25084fb7-307a-4720-8f91-7952a0b91012"
5+
"styleId": "{styleId}"
66
},
77
"responses": {
88
"200": {

specification/maps/data-plane/Creator/preview/2022-09-01-preview/examples/style/Style_GetOperation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"parameters": {
33
"geography": "us",
44
"api-version": "2022-09-01-preview",
5-
"operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c"
5+
"operationId": "{operationId}"
66
},
77
"responses": {
88
"200": {
99
"body": {
10-
"operationId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c",
10+
"operationId": "{operationId}",
1111
"created": "2021-04-20T22:43:14.9401559+00:00",
1212
"status": "Succeeded"
1313
},
1414
"headers": {
15-
"Resource-Location": "https://us.atlas.microsoft.com/styles/3e36b996-f6d1-b068-0fcb-dd6b014c3447?api-version=2022-09-01-preview"
15+
"Resource-Location": "https://us.atlas.microsoft.com/styles/{styleId}?api-version=2022-09-01-preview"
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)