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

Viviali iotcentral new API onboarding #7570

Merged
merged 24 commits into from
Oct 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6fa65ad
Adding new API surface
viv-liu Oct 18, 2019
5620b1e
With examples
viv-liu Oct 22, 2019
d446b3e
addressing validation errors1
viv-liu Oct 22, 2019
68ce579
Updated examples
viv-liu Oct 22, 2019
dc20f9b
Fixes to IoTCentral Swagger and Examples - Example Validation Passing
rafarhat Oct 23, 2019
2bd4fa7
added cde changes
viv-liu Oct 23, 2019
749790e
Adding readme.md autorest section and continuos data export
rafarhat Oct 23, 2019
a239a3b
adding iotcentral customwords
rafarhat Oct 23, 2019
db40fd6
iotcentral custom words
rafarhat Oct 23, 2019
ff94fc8
Add Data Planse Parent Folder Structure
rafarhat Oct 23, 2019
a1242a3
Fix readme.md input files pathing
rafarhat Oct 23, 2019
95ec31b
Updating API token create
viv-liu Oct 23, 2019
6d02ba5
update readme for avocado
rafarhat Oct 23, 2019
e87bc4b
Merge branch 'viviali-iotcentral-new' of https://github.com/viv-liu/a…
rafarhat Oct 23, 2019
483ccd2
readme.md remove unused example files
rafarhat Oct 24, 2019
46eacb0
remove uncessary files
rafarhat Oct 24, 2019
c1bbde6
Changed instance to component
viv-liu Oct 24, 2019
0125cbe
updated swagger
viv-liu Oct 24, 2019
155f486
Merge branch 'viviali-iotcentral-new' of https://github.com/viv-liu/a…
rafarhat Oct 24, 2019
9fe7747
Fixed swagger
viv-liu Oct 24, 2019
d1f4a52
Adding getapplication/listpplication calls
rafarhat Oct 24, 2019
725e12b
remove conflicting host
rafarhat Oct 24, 2019
f206a6c
Testout parameter Change
rafarhat Oct 25, 2019
f338b5d
inline common parameters to methods to pass pipeline tooling swagger …
rafarhat Oct 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ apimtags
apimtenant
apimusers
apimversionsets
apitoken
APNS
appinsights
applynetworkconfigurationupdates
Expand Down Expand Up @@ -145,6 +146,7 @@ azuredatalakestore
azuredeploy
azureedge
azurefiles
azureiotcentral
azuremigrate
azureml
azuresql
Expand Down Expand Up @@ -260,6 +262,7 @@ closedlist
closedlists
Cloudamize
cloudapp
cloudproperties
cloudsimple
clustermonitoring
Cmdkey
Expand All @@ -272,6 +275,7 @@ codegeneration
cognitiveservices
colls
COLUMNSTORE
commandshistory
commitmentplans
Compat
compilationjobs
Expand All @@ -291,6 +295,7 @@ containersas
containerservice
contentmoderator
continuationtoken
continuousdataexports
continuouswebjobs
contoso
contosodataset
Expand Down Expand Up @@ -403,7 +408,9 @@ deserializer
deserializing
destinationshares
deterministically
devicecredentials
deviceprovisioningservices
devicetemplates
devspaces
devtestlab
devtestlabs
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Get API tokens in your application",
"description": "Get a list of API tokens in your application.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"token_id": "testtoken",
"body": {
"roles": [
"c7be2c6b-797e-4551-bb24-33709f6b2e20"
]
}
},
"responses": {
"200": {
"body": {
"id": "testtoken",
"roles": [
"ca310b8d-2f4a-44e0-a36e-957c202cd8d4"
],
"expiry": "2020-10-18T18:30:40.227Z",
"token": "SharedAccessSignature sr=..."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Delete API token",
"description": "Delete an API token using its name.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"token_id": "testtoken"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Get API tokens in your application",
"description": "Get a list of API tokens in your application.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"token_id": "testtoken"
},
"responses": {
"200": {
"body": {
"id": "testtoken",
"roles": [
"ca310b8d-2f4a-44e0-a36e-957c202cd8d4"
],
"expiry": "2020-10-18T18:30:40.227Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"title": "List API tokens in your application",
"description": "Get a list of API tokens in your application.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "testtoken",
"roles": [
"ca310b8d-2f4a-44e0-a36e-957c202cd8d4"
],
"expiry": "2020-10-18T18:30:40.227Z"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "Get an application by Id",
"description": "Get an application by Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"application_id":"194e282c-290a-4858-b68f-4274690697fc"
},
"responses": {
"200": {
"body": {

"id": "194e282c-290a-4858-b68f-4274690697fc",
"displayName": "x - Store Analytics Checkout - PnP",
"subdomain": "store-analytics-checkout---pnp",
"host": "store-analytics-checkout---pnp.azureiotcentral.com"

}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "List applications",
"description": "List applications that are accessible to the signed-in user.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "194e282c-290a-4858-b68f-4274690697fc",
"displayName": "x - Store Analytics Checkout - PnP",
"subdomain": "store-analytics-checkout---pnp",
"host": "store-analytics-checkout---pnp.azureiotcentral.com"
},
{
"id": "ca517ec7-234e-4cbb-9d83-424f8a1d1809",
"displayName": "Custom 2gskl57ibaw",
"subdomain": "contoso",
"host": "contoso.azureiotcentral.com"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Delete export",
"description": "Delete an export using its Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"export_id": "abc"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Get export",
"description": "Get an export using its Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"export_id": "16cad42a-bd47-4684-b106-9f9b4d2d02e9"
},
"responses": {
"200": {
"body": {
"id": "16cad42a-bd47-4684-b106-9f9b4d2d02e9",
"etag": "076f201d-e9c3-4bef-af0a-608420ba4526",
"displayName": "Export to Storage 1",
"endpoint": {
"type": "StorageEndpoint",
"connectionString": "DefaultEndpointsProtocol=https;AccountName=jeffscratchppe;AccountKey=*****;EndpointSuffix=core.windows.net",
"name": "cde"
},
"status": "running",
"enabled": true,
"sources": [
"devices",
"deviceTemplates",
"telemetry"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"title": "List exports",
"description": "Get a list of all exports in your application",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "16cad42a-bd47-4684-b106-9f9b4d2d02e9",
"etag": "076f201d-e9c3-4bef-af0a-608420ba4526",
"displayName": "Export to Storage 1",
"endpoint": {
"type": "StorageEndpoint",
"connectionString": "DefaultEndpointsProtocol=https;AccountName=jeffscratchppe;AccountKey=*****;EndpointSuffix=core.windows.net",
"name": "cde"
},
"status": "starting",
"enabled": true,
"sources": [
"devices",
"deviceTemplates",
"telemetry"
]
},
{
"id": "9dce0282-751d-4121-aed3-b316d658f17a",
"etag": "3398c6b5-de40-44ad-bf4a-0c216e2b4d88",
"displayName": "Export to Event Hubs 1",
"endpoint": {
"type": "EventHubsEndpoint",
"connectionString": "Endpoint=sb://roommonitoring.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=*****",
"name": "roommonitoring-ehout"
},
"status": "stopping",
"enabled": false,
"sources": [
"devices",
"deviceTemplates",
"telemetry"
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"title": "Create or update export",
"description": "Create a new export or update an existing export, specifying its Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"export_id": "abc",
"body": {
"displayName": "Export to Storage 2",
"endpoint": {
"type": "StorageEndpoint",
"connectionString": "{Connection-string-to-blob-storage}",
"name": "container"
},
"enabled": true,
"sources": [
"devices",
"deviceTemplates",
"telemetry"
]
}
},
"responses": {
"200": {
"body": {
"id": "abc",
"etag": "7e02c03e-25cb-4d1c-9f6b-019506283872",
"displayName": "Export to Storage 2",
"endpoint": {
"type": "StorageEndpoint",
"connectionString": "DefaultEndpointsProtocol=https;AccountName=contosoiotcstorage;AccountKey=*****;EndpointSuffix=core.windows.net",
"name": "container"
},
"status": "starting",
"enabled": true,
"sources": [
"devices",
"deviceTemplates",
"telemetry"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Get device credentials",
"description": "Get the device credentials of a created device. Returns the app's scope Id and device SAS key",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "Checkout4"
},
"responses": {
"200": {
"body":{
"scopeId": "0ne0005F266",
"symmetricKey": {
"primaryKey": "XaMfV3vryCQw963L2IALf1SdApQRzSIBQd13/fassqM=",
"secondaryKey": "s+4uT31TRZJcTSGxZUPZb1yznjTicu4jr9tXNrg+xIQ="
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": "Get cloud property values of a device",
"description": "Get the current values of all cloud properties of a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "mx1"
},
"responses": {
"200": {
"body": {
"AssetID": "123abc"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "Update cloud properties of a device",
"description": "Update cloud properties of a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"body": {
"AssetID": "123abc"
},
"device_id": "mx1"
},
"responses": {
"200": {
"body": {
"AssetID": "123abc"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Send command",
"description": "Send a command to a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "mx1",
"component_name": "Thermostat_1o",
"command_name": "CoolDown",
"body":{ "request":{"tempVal": 30}}
},
"responses": {
"201": {"body":{}}
}
}
Loading