|
3 | 3 | "info": { |
4 | 4 | "title": "Team Forms", |
5 | 5 | "description": "Teams Forms brings digital forms into Microsoft Teams. The software will empower your teams to build and deliver forms from within the productivity tools that they already know and trust. Unlike many other forms solutions on the market, Team Forms talks directly with your Teams SharePoint so that data captured by forms remains in your ownership and never leaves your trusted office 365 environment.", |
6 | | - "version": "1.1.0", |
| 6 | + "version": "1.1.1", |
7 | 7 | "termsOfService": "https://teamforms.app/terms", |
8 | 8 | "contact": { |
9 | 9 | "name": "Team Forms", |
|
13 | 13 | }, |
14 | 14 | "host": "api.teamforms.app", |
15 | 15 | "basePath": "/", |
16 | | - "schemes": [ |
17 | | - "https" |
18 | | - ], |
| 16 | + "schemes": ["https"], |
19 | 17 | "consumes": [], |
20 | 18 | "produces": [], |
21 | 19 | "paths": { |
|
215 | 213 | "$ref": "#/definitions/dynamicResponseSchema" |
216 | 214 | } |
217 | 215 | }, |
| 216 | + "delete": { |
| 217 | + "responses": { |
| 218 | + "200": { |
| 219 | + "description": "OK", |
| 220 | + "schema": { |
| 221 | + "type": "object", |
| 222 | + "properties": { |
| 223 | + "status": { |
| 224 | + "type": "string", |
| 225 | + "description": "status" |
| 226 | + } |
| 227 | + } |
| 228 | + } |
| 229 | + } |
| 230 | + }, |
| 231 | + "summary": "Delete a subscription", |
| 232 | + "description": "Internal operation used to delete Webhook if the hook is edited or deleted", |
| 233 | + "operationId": "UnsubscribeResponse", |
| 234 | + "parameters": [ |
| 235 | + { |
| 236 | + "name": "groupId", |
| 237 | + "in": "query", |
| 238 | + "type": "string", |
| 239 | + "description": "", |
| 240 | + "required": true |
| 241 | + }, |
| 242 | + { |
| 243 | + "name": "formId", |
| 244 | + "in": "query", |
| 245 | + "type": "string" |
| 246 | + }, |
| 247 | + { |
| 248 | + "name": "webHookId", |
| 249 | + "in": "query", |
| 250 | + "required": false, |
| 251 | + "type": "string" |
| 252 | + }, |
| 253 | + { |
| 254 | + "name": "origin", |
| 255 | + "in": "query", |
| 256 | + "required": false, |
| 257 | + "type": "string" |
| 258 | + } |
| 259 | + ], |
| 260 | + "x-ms-visibility": "internal" |
| 261 | + }, |
218 | 262 | "post": { |
219 | 263 | "responses": { |
220 | 264 | "201": { |
|
227 | 271 | "operationId": "SubscribeResponse", |
228 | 272 | "x-ms-visibility": "important", |
229 | 273 | "x-ms-trigger": "single", |
230 | | - "consumes": [ |
231 | | - "application/json" |
232 | | - ], |
| 274 | + "consumes": ["application/json"], |
233 | 275 | "parameters": [ |
234 | 276 | { |
235 | 277 | "$ref": "#/parameters/groupId" |
|
271 | 313 | "x-ms-notification-url": true |
272 | 314 | } |
273 | 315 | }, |
274 | | - "required": [ |
275 | | - "webHookUrl" |
276 | | - ] |
| 316 | + "required": ["webHookUrl"] |
277 | 317 | } |
278 | 318 | } |
279 | 319 | ] |
| 320 | + } |
| 321 | + }, |
| 322 | + "/response-deletion-subscription": { |
| 323 | + "x-ms-notification-content": { |
| 324 | + "description": "Webhook response", |
| 325 | + "schema": { |
| 326 | + "$ref": "#/definitions/dynamicResponseSchema" |
| 327 | + } |
280 | 328 | }, |
281 | 329 | "delete": { |
282 | 330 | "responses": { |
|
295 | 343 | }, |
296 | 344 | "summary": "Delete a subscription", |
297 | 345 | "description": "Internal operation used to delete Webhook if the hook is edited or deleted", |
298 | | - "operationId": "UnsubscribeResponse", |
| 346 | + "operationId": "UnsubscribeResponseDeletion", |
299 | 347 | "parameters": [ |
300 | 348 | { |
301 | 349 | "name": "groupId", |
|
323 | 371 | } |
324 | 372 | ], |
325 | 373 | "x-ms-visibility": "internal" |
326 | | - } |
327 | | - }, |
328 | | - "/response-deletion-subscription": { |
329 | | - "x-ms-notification-content": { |
330 | | - "description": "Webhook response", |
331 | | - "schema": { |
332 | | - "$ref": "#/definitions/dynamicResponseSchema" |
333 | | - } |
334 | 374 | }, |
335 | 375 | "post": { |
336 | 376 | "responses": { |
|
344 | 384 | "operationId": "SubscribeResponseDeletion", |
345 | 385 | "x-ms-visibility": "important", |
346 | 386 | "x-ms-trigger": "single", |
347 | | - "consumes": [ |
348 | | - "application/json" |
349 | | - ], |
| 387 | + "consumes": ["application/json"], |
350 | 388 | "parameters": [ |
351 | 389 | { |
352 | 390 | "$ref": "#/parameters/groupId" |
|
382 | 420 | "x-ms-notification-url": true |
383 | 421 | } |
384 | 422 | }, |
385 | | - "required": [ |
386 | | - "webHookUrl" |
387 | | - ] |
| 423 | + "required": ["webHookUrl"] |
388 | 424 | } |
389 | 425 | } |
390 | 426 | ] |
391 | | - }, |
392 | | - "delete": { |
393 | | - "responses": { |
394 | | - "200": { |
395 | | - "description": "OK", |
396 | | - "schema": { |
397 | | - "type": "object", |
398 | | - "properties": { |
399 | | - "status": { |
400 | | - "type": "string", |
401 | | - "description": "status" |
402 | | - } |
403 | | - } |
404 | | - } |
405 | | - } |
406 | | - }, |
407 | | - "summary": "Delete a subscription", |
408 | | - "description": "Internal operation used to delete Webhook if the hook is edited or deleted", |
409 | | - "operationId": "UnsubscribeResponseDeletion", |
410 | | - "parameters": [ |
411 | | - { |
412 | | - "name": "groupId", |
413 | | - "in": "query", |
414 | | - "type": "string", |
415 | | - "description": "", |
416 | | - "required": true |
417 | | - }, |
418 | | - { |
419 | | - "name": "formId", |
420 | | - "in": "query", |
421 | | - "type": "string" |
422 | | - }, |
423 | | - { |
424 | | - "name": "webHookId", |
425 | | - "in": "query", |
426 | | - "required": false, |
427 | | - "type": "string" |
428 | | - }, |
429 | | - { |
430 | | - "name": "origin", |
431 | | - "in": "query", |
432 | | - "required": false, |
433 | | - "type": "string" |
434 | | - } |
435 | | - ], |
436 | | - "x-ms-visibility": "internal" |
437 | 427 | } |
438 | 428 | } |
439 | 429 | }, |
|
795 | 785 | "in": "query", |
796 | 786 | "type": "string", |
797 | 787 | "description": "Types of events to trigger this workflow. Submitted and Resubmitted by default", |
798 | | - "enum": [ |
799 | | - "Submitted", |
800 | | - "Resubmitted", |
801 | | - "Submitted and Resubmitted" |
802 | | - ], |
| 788 | + "enum": ["Submitted", "Resubmitted", "Submitted and Resubmitted"], |
803 | 789 | "x-ms-summary": "Triggers", |
804 | 790 | "x-ms-visibility": "advanced" |
805 | 791 | }, |
806 | 792 | "environment": { |
807 | 793 | "name": "environment", |
808 | 794 | "in": "query", |
809 | 795 | "type": "string", |
810 | | - "enum": [ |
811 | | - "draft", |
812 | | - "published" |
813 | | - ], |
| 796 | + "enum": ["draft", "published"], |
814 | 797 | "description": "The environment to set.", |
815 | 798 | "required": false, |
816 | 799 | "x-ms-summary": "Environment", |
|
822 | 805 | "oauth2_auth": { |
823 | 806 | "type": "oauth2", |
824 | 807 | "flow": "accessCode", |
825 | | - "authorizationUrl": "https://login.windows.net/common/oauth2/authorize", |
| 808 | + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", |
826 | 809 | "tokenUrl": "https://login.windows.net/common/oauth2/authorize", |
827 | 810 | "scopes": {} |
828 | 811 | } |
|
0 commit comments