Skip to content

Commit

Permalink
Operator connect API review (#18265)
Browse files Browse the repository at this point in the history
  • Loading branch information
slpavkov committed Apr 19, 2022
1 parent 9e30496 commit 6690ec1
Show file tree
Hide file tree
Showing 9 changed files with 945 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2529,6 +2529,7 @@ Quickbase
Smartsheet
businessmetadata
Qualys
operatorconnect
servermetrics
Dataworld
Asana
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"parameters": {
"api-version": "2022-06-01-preview",
"endpoint": "https://resourcename.communication.azure.com/",
"operatorId": "dee34eed-b610-4b8b-9130-0f9a0de97a20",
"body": {
"status": "Suspended",
"consentedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net",
"phoneNumber": "+12345678901"
},
"lastModifiedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net",
"phoneNumber": "+12345678901"
},
"consentedCountries": [
"US",
"AU"
],
"contacts": [
{
"fullName": "Jane Doe",
"email": "name1@contoso.net",
"phoneNumber": "+12345678901"
}
],
"companyName": "Contoso"
}
},
"responses": {
"200": {
"headers": {},
"body": {
"operatorId": "e6716961-215e-4da7-9584-1797db3addb1",
"status": "Active",
"consentedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"consentedOn": "2021-04-07T23:57:17.1589393+00:00",
"lastModifiedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"lastModifiedOn": "2022-02-15T09:18:17.1169748+00:00",
"consentedCountries": [
"KK",
"CA",
"US",
"AU",
"GB"
],
"companyName": "Contoso",
"contacts": [
{
"fullName": "John Q. Customer",
"email": "sometestname1@contoso.net",
"phoneNumber": "+12345678901"
}
]
}
},
"201": {
"headers": {},
"body": {
"operatorId": "e6716961-215e-4da7-9584-1797db3addb1",
"status": "Active",
"consentedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"consentedOn": "2021-04-07T23:57:17.1589393+00:00",
"lastModifiedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"lastModifiedOn": "2022-02-15T09:18:17.1169748+00:00",
"consentedCountries": [
"KK",
"CA",
"US",
"AU",
"GB"
],
"companyName": "Contoso",
"contacts": [
{
"fullName": "John Q. Customer",
"email": "sometestname1@contoso.net",
"phoneNumber": "+12345678901"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"api-version": "2022-06-01-preview",
"endpoint": "https://resourcename.communication.azure.com/",
"operatorId": "dee34eed-b610-4b8b-9130-0f9a0de97a20"
},
"responses": {
"200": {
"headers": {},
"body": {
"operatorId": "e6716961-215e-4da7-9584-1797db3addb1",
"status": "Suspended",
"consentedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"consentedOn": "2021-04-07T23:57:17.1589393+00:00",
"lastModifiedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"lastModifiedOn": "2022-02-15T09:18:17.1169748+00:00",
"consentedCountries": [
"KK",
"CA",
"US",
"AU",
"GB"
],
"companyName": "Contoso",
"contacts": [
{
"fullName": "John Q. Customer",
"email": "sometestname1@contoso.net",
"phoneNumber": "+12345678901"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"parameters": {
"api-version": "2022-06-01-preview",
"endpoint": "https://resourcename.communication.azure.com/"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"operatorId": "e6716961-215e-4da7-9584-1797db3addb1",
"status": "Suspended",
"consentedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"consentedOn": "2021-04-07T23:57:17.1589393+00:00",
"lastModifiedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"lastModifiedOn": "2022-02-15T09:18:17.1169748+00:00",
"consentedCountries": [
"KK",
"CA",
"US",
"AU",
"GB"
],
"companyName": "Contoso",
"contacts": [
{
"fullName": "John Q. Customer",
"email": "sometestname1@contoso.net",
"phoneNumber": "+12345678901"
}
]
},
{
"operatorId": "e6716961-215e-4da7-9584-1797db3addb2",
"status": "Active",
"consentedBy": {
"fullName": "Jane Doe",
"email": "admin2@contoso.net"
},
"consentedOn": "2021-04-07T23:57:17.1589393+00:00",
"lastModifiedBy": {
"fullName": "Jane Doe",
"email": "admin2@contoso.net"
},
"lastModifiedOn": "2022-02-15T09:18:17.1169748+00:00",
"consentedCountries": [
"KK",
"CA",
"US",
"AU",
"GB"
],
"companyName": "Contoso",
"contacts": [
{
"fullName": "Jane Q. Customer",
"email": "sometestname2@contoso.net",
"phoneNumber": ""
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"api-version": "2022-06-01-preview",
"endpoint": "https://resourcename.communication.azure.com/"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"operatorId": "e6716961-215e-4da7-9584-1797db3addb1",
"friendlyName": "Operator Inc.",
"landingPage": "https://www.operatorhomepage1.net/sample-landing-page",
"logoUri": "https://www.operatorhomepage1.net/sample-logo.png",
"logoThumbnailUri": null,
"acquiredNumbersCount": 1,
"offerings": [
{
"offerType": "Calling",
"availableCountries": [
"US",
"EE"
]
}
]
},
{
"operatorId": "e6716961-215e-4da7-9584-1797db3addb2",
"friendlyName": "Mobile LLC",
"landingPage": "https://www.operatorhomepage2.net/sample-landing-page",
"logoUri": "https://www.operatorhomepage2.net/sample-logo.png",
"logoThumbnailUri": null,
"acquiredNumbersCount": 0,
"offerings": [
{
"offerType": "Calling",
"availableCountries": [
"US",
"CA"
]
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"parameters": {
"api-version": "2022-06-01-preview",
"endpoint": "https://resourcename.communication.azure.com/",
"operatorId": "dee34eed-b610-4b8b-9130-0f9a0de97a20",
"body": {
"status": "Suspended",
"consentedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net",
"phoneNumber": "+12345678901"
},
"lastModifiedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net",
"phoneNumber": "+12345678901"
},
"consentedCountries": [
"US",
"AU"
],
"contacts": [
{
"fullName": "Jane Doe",
"email": "name1@contoso.net",
"phoneNumber": "+12345678901"
}
],
"companyName": "Contoso"
}
},
"responses": {
"200": {
"headers": {},
"body": {
"operatorId": "e6716961-215e-4da7-9584-1797db3addb1",
"status": "Active",
"consentedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"consentedOn": "2021-04-07T23:57:17.1589393+00:00",
"lastModifiedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"lastModifiedOn": "2022-02-15T09:18:17.1169748+00:00",
"consentedCountries": [
"KK",
"CA",
"US",
"AU",
"GB"
],
"companyName": "Contoso",
"contacts": [
{
"fullName": "John Q. Customer",
"email": "sometestname1@contoso.net",
"phoneNumber": "+12345678901"
}
]
}
},
"201": {
"headers": {},
"body": {
"operatorId": "e6716961-215e-4da7-9584-1797db3addb1",
"status": "Active",
"consentedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"consentedOn": "2021-04-07T23:57:17.1589393+00:00",
"lastModifiedBy": {
"fullName": "John Doe",
"email": "admin@contoso.net"
},
"lastModifiedOn": "2022-02-15T09:18:17.1169748+00:00",
"consentedCountries": [
"KK",
"CA",
"US",
"AU",
"GB"
],
"companyName": "Contoso",
"contacts": [
{
"fullName": "John Q. Customer",
"email": "sometestname1@contoso.net",
"phoneNumber": "+12345678901"
}
]
}
}
}
}
Loading

0 comments on commit 6690ec1

Please sign in to comment.