Skip to content

Commit e893808

Browse files
hkusuljammustapicdominicusmento
authored
Nodefusion Portal - update to v1.1.0 (microsoft#2186)
* Create Readme.md * Nodefusion Portal certified connector added * action route updated * updated according to the PR comments * x-ms-summary back in the code * security property removal revert * Nodefusion Portal b2c authUrl and actions updated (#1) * Update apiProperties.json b2c auth parameters updated * Additional action added Get Work Services * Readme updated * Update apiDefinition.swagger.json Added x-ms-summary and description properties Co-authored-by: mmustapic <mmustapic@3pro.eu> Co-authored-by: dominicusmento <mario.mustapic13@gmail.com>
1 parent 392a32b commit e893808

File tree

3 files changed

+105
-8
lines changed

3 files changed

+105
-8
lines changed

certified-connectors/Nodefusion Portal/Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Nodefusion Portal connector is published here with the intent to provide Nodefus
1111
The connector supports the following operations:
1212
### Get Organization Profile
1313
Get your organization profile properties along with its contacts and billing services.
14+
### Get Organization's Work Services
15+
List your work services with main properties along with consumption estimate.
1416

1517
## Obtaining Credentials
1618
You should use your Organization's AD Account when creating PowerApps Connection, the same one you use on [Nodefusion Portal](https://portal.nodefusion.com/).

certified-connectors/Nodefusion Portal/apiDefinition.swagger.json

Lines changed: 99 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"name": "MIT",
1313
"url": "http://opensource.org/licenses/MIT"
1414
},
15-
"version": "1.0.0"
15+
"version": "1.1.0"
1616
},
1717
"x-ms-connector-metadata": [
1818
{
@@ -78,6 +78,66 @@
7878
],
7979
"x-ms-visibility": "important"
8080
}
81+
},
82+
"/organizations/{organizationId}/workservice": {
83+
"get": {
84+
"tags": [
85+
"Organization",
86+
"WorkServices",
87+
"Work",
88+
"Services",
89+
"Get"
90+
],
91+
"summary": "Get Work Services",
92+
"description": "Acquire Organization's Work Services along with consumption estimate",
93+
"operationId": "GetOrgWorkServices",
94+
"produces": [
95+
"application/json"
96+
],
97+
"parameters": [
98+
{
99+
"in": "path",
100+
"name": "organizationId",
101+
"x-ms-summary": "organizationId",
102+
"x-ms-url-encoding": "single",
103+
"description": "This parameter is a Guid of your Organization",
104+
"required": true,
105+
"type": "string",
106+
"format": "uuid"
107+
}
108+
],
109+
"responses": {
110+
"200": {
111+
"description": "List of work services",
112+
"schema": {
113+
"type": "array",
114+
"items": {
115+
"$ref": "#/definitions/workServiceEstimateResponse"
116+
}
117+
},
118+
"x-ms-summary": "List of work services"
119+
},
120+
"403": {
121+
"description": "Forbidden response",
122+
"x-ms-summary": "403 response"
123+
},
124+
"500": {
125+
"description": "Error response",
126+
"schema": {
127+
"$ref": "#/definitions/messageResponse"
128+
},
129+
"x-ms-summary": "500 response"
130+
}
131+
},
132+
"security": [
133+
{
134+
"oauth2_auth": [
135+
"https://3procloud.onmicrosoft.com/3proportal/user_impersonation"
136+
]
137+
}
138+
],
139+
"x-ms-visibility": "important"
140+
}
81141
}
82142
},
83143
"definitions": {
@@ -161,6 +221,41 @@
161221
}
162222
}
163223
}
224+
},
225+
"workServiceEstimateResponse": {
226+
"type": "object",
227+
"properties": {
228+
"workServiceId": {
229+
"type": "string"
230+
},
231+
"name": {
232+
"type": "string"
233+
},
234+
"hoursIncluded": {
235+
"format": "double",
236+
"type": "number"
237+
},
238+
"hoursSpent": {
239+
"format": "double",
240+
"type": "number"
241+
},
242+
"from": {
243+
"format": "date-time",
244+
"type": "string"
245+
},
246+
"to": {
247+
"format": "date-time",
248+
"type": "string"
249+
}
250+
}
251+
},
252+
"messageResponse": {
253+
"type": "object",
254+
"properties": {
255+
"message": {
256+
"type": "string"
257+
}
258+
}
164259
}
165260
},
166261
"parameters": {},
@@ -169,8 +264,8 @@
169264
"oauth2_auth": {
170265
"type": "oauth2",
171266
"flow": "accessCode",
172-
"authorizationUrl": "https://login.microsoftonline.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/authorize",
173-
"tokenUrl": "https://login.microsoftonline.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/token",
267+
"authorizationUrl": "https://3procloud.b2clogin.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/authorize",
268+
"tokenUrl": "https://3procloud.b2clogin.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/token",
174269
"scopes": {
175270
"https://3procloud.onmicrosoft.com/3proportal/user_impersonation": "https://3procloud.onmicrosoft.com/3proportal/user_impersonation"
176271
}
@@ -184,4 +279,4 @@
184279
}
185280
],
186281
"tags": []
187-
}
282+
}

certified-connectors/Nodefusion Portal/apiProperties.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
},
1818
"customParameters": {
1919
"authorizationUrl": {
20-
"value": "https://login.microsoftonline.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/authorize"
20+
"value": "https://3procloud.b2clogin.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/authorize"
2121
},
2222
"tokenUrl": {
23-
"value": "https://login.microsoftonline.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/token"
23+
"value": "https://3procloud.b2clogin.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/token"
2424
},
2525
"refreshUrl": {
26-
"value": "https://login.microsoftonline.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/token"
26+
"value": "https://3procloud.b2clogin.com/te/3procloud.onmicrosoft.com/b2c_1a_signuporsigninwithaad/oauth2/v2.0/token"
2727
}
2828
}
2929
}
@@ -34,4 +34,4 @@
3434
"publisher": "Nodefusion",
3535
"stackOwner": "Nodefusion"
3636
}
37-
}
37+
}

0 commit comments

Comments
 (0)