Skip to content

Commit 206d032

Browse files
yuqi2Yuqi Zhang
andauthored
[Hub Generated] Review request for Microsoft.Maps/DEM to add version preview/1.0 (Azure#11410)
* Adds base for updating Microsoft.Maps from version Alias/preview to version 2020-12-01-preview * Updates readme * Updates API version in new specs and examples * Add DEM API reference docs * Fixing Typos & format * Fix Typos * Add dem in render.json * apply comments * apply comments * Apply comments * Fix validation * Revert change about version Co-authored-by: Yuqi Zhang <[email protected]>
1 parent ce9285a commit 206d032

File tree

8 files changed

+1118
-4
lines changed

8 files changed

+1118
-4
lines changed

specification/maps/data-plane/Microsoft.Maps/DEM/preview/1.0/elevation.json

Lines changed: 639 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"parameters": {
3+
"format": "json",
4+
"api-version": "1.0",
5+
"bounds": "-121.66853362143818, 46.84646479863713,-121.65853362143818, 46.85646479863713",
6+
"subscription-key": "[subscription-key]",
7+
"rows": 2,
8+
"columns": 3
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"data": [
14+
{
15+
"coordinate": {
16+
"latitude": 46.846464798637129,
17+
"longitude": -121.66853362143819
18+
},
19+
"elevationInMeter": 2314.4534201722422
20+
},
21+
{
22+
"coordinate": {
23+
"latitude": 46.846464798637129,
24+
"longitude": -121.66353362143818
25+
},
26+
"elevationInMeter": 2269.6199778812925
27+
},
28+
{
29+
"coordinate": {
30+
"latitude": 46.846464798637129,
31+
"longitude": -121.65853362143818
32+
},
33+
"elevationInMeter": 2146.04531663472
34+
},
35+
{
36+
"coordinate": {
37+
"latitude": 46.856464798637127,
38+
"longitude": -121.66853362143819
39+
},
40+
"elevationInMeter": 2319.0975721859922
41+
},
42+
{
43+
"coordinate": {
44+
"latitude": 46.856464798637127,
45+
"longitude": -121.66353362143818
46+
},
47+
"elevationInMeter": 2109.324863225469
48+
},
49+
{
50+
"coordinate": {
51+
"latitude": 46.856464798637127,
52+
"longitude": -121.65853362143818
53+
},
54+
"elevationInMeter": 1998.6391324692017
55+
}
56+
]
57+
}
58+
},
59+
"400": {
60+
"headers": {},
61+
"body": {
62+
"error": {
63+
"code": "400 BadRequest",
64+
"message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
65+
}
66+
}
67+
},
68+
"401": {
69+
"headers": {},
70+
"body": {
71+
"error": {
72+
"code": "401 Unauthorized",
73+
"message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."
74+
}
75+
}
76+
},
77+
"403": {
78+
"headers": {},
79+
"body": {
80+
"error": {
81+
"code": "403 Forbidden",
82+
"message": "Permission, capacity, or authentication issues."
83+
}
84+
}
85+
},
86+
"404": {
87+
"headers": {},
88+
"body": {
89+
"error": {
90+
"code": "404 NotFound",
91+
"message": "Not Found: the requested resource could not be found, but it may be available again in the future."
92+
}
93+
}
94+
},
95+
"500": {
96+
"headers": {},
97+
"body": {
98+
"error": {
99+
"code": "500 InternalServerError",
100+
"message": "An error occurred while processing the request. Please try again later."
101+
}
102+
}
103+
}
104+
}
105+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"parameters": {
3+
"format": "json",
4+
"api-version": "1.0",
5+
"points": "-121.66853362143818, 46.84646479863713|-121.68853362143818, 46.856464798637127",
6+
"subscription-key": "[subscription-key]"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"data": [
12+
{
13+
"coordinate": {
14+
"latitude": 46.846464798637129,
15+
"longitude": -121.66853362143819
16+
},
17+
"elevationInMeter": 2314.4534201722422
18+
},
19+
{
20+
"coordinate": {
21+
"latitude": 46.856464798637127,
22+
"longitude": -121.68853362143818
23+
},
24+
"elevationInMeter": 2506.1430038793778
25+
}
26+
]
27+
}
28+
},
29+
"400": {
30+
"headers": {},
31+
"body": {
32+
"error": {
33+
"code": "400 BadRequest",
34+
"message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
35+
}
36+
}
37+
},
38+
"401": {
39+
"headers": {},
40+
"body": {
41+
"error": {
42+
"code": "401 Unauthorized",
43+
"message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."
44+
}
45+
}
46+
},
47+
"403": {
48+
"headers": {},
49+
"body": {
50+
"error": {
51+
"code": "403 Forbidden",
52+
"message": "Permission, capacity, or authentication issues."
53+
}
54+
}
55+
},
56+
"404": {
57+
"headers": {},
58+
"body": {
59+
"error": {
60+
"code": "404 NotFound",
61+
"message": "Not Found: the requested resource could not be found, but it may be available again in the future."
62+
}
63+
}
64+
},
65+
"500": {
66+
"headers": {},
67+
"body": {
68+
"error": {
69+
"code": "500 InternalServerError",
70+
"message": "An error occurred while processing the request. Please try again later."
71+
}
72+
}
73+
}
74+
}
75+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"parameters": {
3+
"format": "json",
4+
"api-version": "1.0",
5+
"lines": "-121.66853362143818, 46.84646479863713|-121.67853362143818, 46.85646479863713",
6+
"subscription-key": "[subscription-key]",
7+
"samples": 5
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"data": [
13+
{
14+
"coordinate": {
15+
"latitude": 46.846464798637129,
16+
"longitude": -121.66853362143819
17+
},
18+
"elevationInMeter": 2298.6581875651746
19+
},
20+
{
21+
"coordinate": {
22+
"latitude": 46.848964798637127,
23+
"longitude": -121.67103362143818
24+
},
25+
"elevationInMeter": 2466.4058976953679
26+
},
27+
{
28+
"coordinate": {
29+
"latitude": 46.851464798637124,
30+
"longitude": -121.67353362143818
31+
},
32+
"elevationInMeter": 2504.8855800948654
33+
},
34+
{
35+
"coordinate": {
36+
"latitude": 46.853964798637129,
37+
"longitude": -121.67603362143818
38+
},
39+
"elevationInMeter": 2477.8929009638578
40+
},
41+
{
42+
"coordinate": {
43+
"latitude": 46.856464798637127,
44+
"longitude": -121.67853362143818
45+
},
46+
"elevationInMeter": 2394.5290079897059
47+
}
48+
]
49+
}
50+
},
51+
"400": {
52+
"headers": {},
53+
"body": {
54+
"error": {
55+
"code": "400 BadRequest",
56+
"message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
57+
}
58+
}
59+
},
60+
"401": {
61+
"headers": {},
62+
"body": {
63+
"error": {
64+
"code": "401 Unauthorized",
65+
"message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."
66+
}
67+
}
68+
},
69+
"403": {
70+
"headers": {},
71+
"body": {
72+
"error": {
73+
"code": "403 Forbidden",
74+
"message": "Permission, capacity, or authentication issues."
75+
}
76+
}
77+
},
78+
"404": {
79+
"headers": {},
80+
"body": {
81+
"error": {
82+
"code": "404 NotFound",
83+
"message": "Not Found: the requested resource could not be found, but it may be available again in the future."
84+
}
85+
}
86+
},
87+
"500": {
88+
"headers": {},
89+
"body": {
90+
"error": {
91+
"code": "500 InternalServerError",
92+
"message": "An error occurred while processing the request. Please try again later."
93+
}
94+
}
95+
}
96+
}
97+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"parameters": {
3+
"format": "json",
4+
"api-version": "1.0",
5+
"pointsRequestBody": [
6+
{
7+
"lon": -121.66853362143818,
8+
"lat": 46.84646479863713
9+
},
10+
{
11+
"lon": -121.68853362143818,
12+
"lat": 46.856464798637127
13+
}
14+
],
15+
"subscription-key": "[subscription-key]"
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"data": [
21+
{
22+
"coordinate": {
23+
"latitude": 46.846464798637129,
24+
"longitude": -121.66853362143819
25+
},
26+
"elevationInMeter": 2314.4534201722422
27+
},
28+
{
29+
"coordinate": {
30+
"latitude": 46.856464798637127,
31+
"longitude": -121.68853362143818
32+
},
33+
"elevationInMeter": 2506.1430038793778
34+
}
35+
]
36+
}
37+
},
38+
"400": {
39+
"headers": {},
40+
"body": {
41+
"error": {
42+
"code": "400 BadRequest",
43+
"message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
44+
}
45+
}
46+
},
47+
"401": {
48+
"headers": {},
49+
"body": {
50+
"error": {
51+
"code": "401 Unauthorized",
52+
"message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."
53+
}
54+
}
55+
},
56+
"403": {
57+
"headers": {},
58+
"body": {
59+
"error": {
60+
"code": "403 Forbidden",
61+
"message": "Permission, capacity, or authentication issues."
62+
}
63+
}
64+
},
65+
"404": {
66+
"headers": {},
67+
"body": {
68+
"error": {
69+
"code": "404 NotFound",
70+
"message": "Not Found: the requested resource could not be found, but it may be available again in the future."
71+
}
72+
}
73+
},
74+
"500": {
75+
"headers": {},
76+
"body": {
77+
"error": {
78+
"code": "500 InternalServerError",
79+
"message": "An error occurred while processing the request. Please try again later."
80+
}
81+
}
82+
}
83+
}
84+
}

0 commit comments

Comments
 (0)