Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM endpoint, update model responses/inputs to align with expected values #4015

Merged
merged 13 commits into from
Oct 19, 2018
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,30 @@
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2018-09-01",
"operationInputs": {
"name": "myIoTCentralApp"
"name": "myIoTCentralApp",
"type": "IoTApps"
}
},
"responses": {
"200": {
"headers": {},
"description": "Returns information about resource name availability",
"headers": {
"code": "200"
},
"body": {
"nameAvailable": true
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2018-09-01",
"operationInputs": {
"name": "myIoTCentralApp",
"type": "IoTApps"
}
},
"responses": {
"200": {
"description": "Returns information about resource subdomain availability",
"headers": {
"code": "200"
},
"body": {
"nameAvailable": true
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@
},
"responses": {
"200": {
"headers": {},
"header": {
"code": "200",
"message": "OK"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
"name": "myIoTCentralApp",
"type": "Microsoft.IoTCentral/IoTApps",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App 2",
Expand All @@ -34,12 +40,19 @@
}
},
"201": {
"headers": {},
"headers": {
"code": "201",
"message": "Created",
"target": "ResourceHandler.ExecutePutRequest"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
"name": "myIoTCentralApp",
"type": "Microsoft.IoTCentral/IoTApps",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
Expand All @@ -51,6 +64,17 @@
}
}
},
"202": {}
"202": {},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,28 @@
"api-version": "2018-09-01"
},
"responses": {
"200": {},
"200": {
"header": {
"code": "200",
"message": "OK",
"target": "ResourceHandler.ExecuteDeleteRequest"
}
},
"202": {},
"204": {}
"204": {},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {
"message": "Created",
"code": "200"
},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
},
"responses": {
"200": {
"headers": {},
"description": "Returns the application details",
"headers": {
"code": "200"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
"location": "westus",
"type": "Microsoft.IoTCentral/IoTApps",
"name": "myIoTCentralApp",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
Expand All @@ -23,6 +29,17 @@
"name": "F1"
}
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
},
"responses": {
"200": {
"headers": {},
"headers": {
"code": "200"
},
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
"location": "westus",
"type": "Microsoft.IoTCentral/IoTApps",
"name": "myIoTCentralApp",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
Expand All @@ -24,7 +29,19 @@
"name": "F1"
}
}
]
],
"nextLink": null
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
},
"responses": {
"200": {
"headers": {},
"headers": {
"code": "200"
},
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
"location": "westus",
"type": "Microsoft.IoTCentral/IoTApps",
"name": "myIoTCentralApp",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
Expand All @@ -23,7 +28,19 @@
"name": "F1"
}
}
]
],
"nextLink": null
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@
},
"responses": {
"200": {
"headers": {},
"headers": {
"code": "200",
"message": "OK",
"target": "ResourceHandler.ExecutePatchRequest"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
"location": "westus",
"type": "Microsoft.IoTCentral/IoTApps",
"name": "myIoTCentralApp",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App 2",
Expand All @@ -27,6 +34,17 @@
}
}
},
"202": {}
"202": {},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
},
"responses": {
"200": {
"headers": {},
"headers": {
"code": "200"
},
"body": {
"value": [
{
Expand Down Expand Up @@ -52,7 +54,19 @@
"description": "Gets all the available operations on IoT Central Applications"
}
}
]
],
"nextLink": null
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
Expand Down
Loading