Skip to content

Commit 4eb2ae1

Browse files
[IoT Central] Rest API GA (2022-05-31) (#18982)
* New 1.2-preview release for IoT Central API, Add support for Device Group CRUD, New Job Types * update package version in readme.md * fix lint errors * add missing contract * Fix API Review Comments, Add Default Error Response, Revise the filter description in device group, define any value for capability job * fix description of organization parent field * fix code review comments * remove version enum, fix code review comments * Update specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/1.2-preview/iotcentral.json Co-authored-by: Mike Kistler <[email protected]> * add missing comma * fix the code review comments to add application/json-merge-patch only support for device group * fix comments * add description for non-collection definitions * add paging for /jobs/:id/devices * fix typo * Azure IoT Central 2022-05-31 GA version, includes changes with orgs, file upload, device groups, jobs * remove the edge related from 2022-05-31 examples as it will be retired soon * remove jobs from 2022-05-31 ga * remove the non-used job examples * fix the lint failures * fix wrong content-type for previous version, production does not support json-patch+json * Add missing descriptions, update the wrong consumes from application/json-merge-patch+json to application/merge-patch+json, error contract frame * remove max items from organizations, add description * add maxLength and pattern for path parameter of userId, organizationId and deviceGroupId * add date-time-rfc1123 format to error response time field * update description for request/response in command definition for support any types * add x-ms-error-code header to default error response * Move UserId, OrganizationId Parameter to global so can share the definition * fix typo on pattern * add missing security schema to meet security requirement Co-authored-by: Mike Kistler <[email protected]>
1 parent 688cfd3 commit 4eb2ae1

File tree

65 files changed

+7126
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+7126
-219
lines changed

specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/1.1-preview/iotcentral.json

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,7 @@
20492049
},
20502050
"consumes": [
20512051
"application/json",
2052-
"application/json-patch+json"
2052+
"application/merge-patch+json"
20532053
],
20542054
"parameters": [
20552055
{
@@ -2229,7 +2229,7 @@
22292229
},
22302230
"consumes": [
22312231
"application/json",
2232-
"application/json-patch+json"
2232+
"application/merge-patch+json"
22332233
],
22342234
"parameters": [
22352235
{
@@ -2600,7 +2600,7 @@
26002600
},
26012601
"consumes": [
26022602
"application/json",
2603-
"application/json-patch+json"
2603+
"application/merge-patch+json"
26042604
],
26052605
"parameters": [
26062606
{
@@ -2734,7 +2734,7 @@
27342734
},
27352735
"consumes": [
27362736
"application/json",
2737-
"application/json-patch+json"
2737+
"application/merge-patch+json"
27382738
],
27392739
"parameters": [
27402740
{
@@ -3036,7 +3036,7 @@
30363036
},
30373037
"consumes": [
30383038
"application/json",
3039-
"application/json-patch+json"
3039+
"application/merge-patch+json"
30403040
],
30413041
"parameters": [
30423042
{
@@ -3428,7 +3428,7 @@
34283428
},
34293429
"consumes": [
34303430
"application/json",
3431-
"application/json-patch+json"
3431+
"application/merge-patch+json"
34323432
],
34333433
"parameters": [
34343434
{
@@ -3579,7 +3579,7 @@
35793579
},
35803580
"consumes": [
35813581
"application/json",
3582-
"application/json-patch+json"
3582+
"application/merge-patch+json"
35833583
],
35843584
"parameters": [
35853585
{
@@ -3718,7 +3718,7 @@
37183718
},
37193719
"consumes": [
37203720
"application/json",
3721-
"application/json-patch+json"
3721+
"application/merge-patch+json"
37223722
],
37233723
"parameters": [
37243724
{
@@ -3854,7 +3854,7 @@
38543854
},
38553855
"consumes": [
38563856
"application/json",
3857-
"application/json-patch+json"
3857+
"application/merge-patch+json"
38583858
],
38593859
"parameters": [
38603860
{
@@ -4004,7 +4004,7 @@
40044004
},
40054005
"consumes": [
40064006
"application/json",
4007-
"application/json-patch+json"
4007+
"application/merge-patch+json"
40084008
],
40094009
"parameters": [
40104010
{
@@ -4290,6 +4290,8 @@
42904290
"name": "organizationId",
42914291
"description": "Unique ID of the organization.",
42924292
"type": "string",
4293+
"maxLength": 48,
4294+
"pattern": "^(?!-)[a-z0-9-]{1,48}[a-z0-9]$",
42934295
"required": true
42944296
}
42954297
],
@@ -4350,7 +4352,7 @@
43504352
},
43514353
"consumes": [
43524354
"application/json",
4353-
"application/json-patch+json"
4355+
"application/merge-patch+json"
43544356
],
43554357
"parameters": [
43564358
{
@@ -4545,6 +4547,8 @@
45454547
"name": "userId",
45464548
"description": "Unique ID of the user.",
45474549
"type": "string",
4550+
"maxLength": 48,
4551+
"pattern": "^[a-zA-Z0-9-_]*",
45484552
"required": true
45494553
}
45504554
],
@@ -4802,6 +4806,13 @@
48024806
"required": false
48034807
}
48044808
},
4809+
"security": [
4810+
{
4811+
"azure_auth": [
4812+
"user_impersonation"
4813+
]
4814+
}
4815+
],
48054816
"securityDefinitions": {
48064817
"azure_auth": {
48074818
"type": "oauth2",

0 commit comments

Comments
 (0)