Skip to content

Commit 6cee4b5

Browse files
authored
Swagger refactor, small addition (#9834)
* Swagger refactor, small addition * Ran prettier * Adding custom word and fixing spelling mistake * Updates to the swagger * Removing empty objects * Removing x-ms-discriminators x4 * Also updated the iotcentralapps json * Ran prettier * Updating the README * Modifying readme again
1 parent 496d55d commit 6cee4b5

File tree

7 files changed

+1115
-915
lines changed

7 files changed

+1115
-915
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,6 +1748,7 @@ WGXM
17481748
whitelisted
17491749
Whitelisting
17501750
Whitelistings
1751+
whitespaces
17511752
Whois
17521753
Widevine
17531754
windowsazuremediaservices
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"title": "Get components from a device",
3+
"description": "Get the list of components in a device.",
4+
"parameters": {
5+
"centralDnsSuffixInPath": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"device_id": "device1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"@id": "<id>",
15+
"@type": [
16+
"InterfaceInstance"
17+
],
18+
"name": "LocationTracking"
19+
},
20+
{
21+
"@id": "<id>",
22+
"@type": [
23+
"InterfaceInstance"
24+
],
25+
"name": "EnvironmentSensing"
26+
}
27+
]
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"title": "Get components from a module in an Edge device",
3+
"description": "Get a list of components from a module in an IoT Edge device.",
4+
"parameters": {
5+
"centralDnsSuffixInPath": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"device_id": "edgedevice1",
8+
"module_name": "edgemodule"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"@id": "<id>",
16+
"@type": [
17+
"InterfaceInstance"
18+
],
19+
"name": "interfaceA",
20+
"displayName": "InterfaceA"
21+
}
22+
]
23+
}
24+
}
25+
}
26+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"title": "Get modules from an Edge device",
3+
"description": "Get the list of modules in an IoT Edge device.",
4+
"parameters": {
5+
"centralDnsSuffixInPath": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"device_id": "edgedevice1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"@id": "<id>",
15+
"@type": [
16+
"Relationship",
17+
"SemanticType/EdgeModule"
18+
],
19+
"name": "Environment"
20+
},
21+
{
22+
"@id": "<id>",
23+
"@type": [
24+
"Relationship",
25+
"SemanticType/EdgeModule"
26+
],
27+
"name": "Camera"
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)