You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webapp/niapp.yaml
+80-6Lines changed: 80 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,25 @@ paths:
195
195
$ref: '#/responses/Unauthorized'
196
196
default:
197
197
$ref: '#/responses/Error'
198
+
'/webapps/import':
199
+
post:
200
+
tags:
201
+
- metadata
202
+
summary: Import webapp metadata
203
+
description: >-
204
+
Import a list of webapp metadata.
205
+
206
+
The webapp Id, created timestamp, and updated timestamp are optional. These fields will be generated by the service if they are not provided in the request.
207
+
operationId: import-webapps
208
+
parameters:
209
+
- $ref: '#/parameters/ImportWebAppsRequest'
210
+
responses:
211
+
200:
212
+
$ref: '#/responses/ImportWebAppsResponse'
213
+
401:
214
+
$ref: '#/responses/Unauthorized'
215
+
default:
216
+
$ref: '#/responses/Error'
198
217
'/webapps/{id}/content':
199
218
get:
200
219
tags:
@@ -329,6 +348,11 @@ parameters:
329
348
name:
330
349
type: string
331
350
description: The webapp's name
351
+
example: My webapp
352
+
workspace:
353
+
type: string
354
+
description: The workspace Id for the webapp. If this is not specified, the webapp will be created in the default workspace.
355
+
example: 0c80cf49-54e9-4e92-b117-3bfa574caa84
332
356
policyIds:
333
357
type: array
334
358
items:
@@ -353,6 +377,11 @@ parameters:
353
377
name:
354
378
type: string
355
379
description: The webapp's name
380
+
example: My webapp
381
+
workspace:
382
+
type: string
383
+
description: The workspace Id for the webapp. If this is not specified, the webapp will remain in its existing workspace.
description: List of emails of users to share the webapp with. Applies when "shared" option is "direct"
420
+
ImportWebAppsRequest:
421
+
in: body
422
+
name: ImportWebAppsRequest
423
+
description: Import WebApp Metadata Request
424
+
schema:
425
+
type: object
426
+
title: Import WebApp Metadata Request
427
+
properties:
428
+
webapps:
429
+
description: List of webapps to import
430
+
type: array
431
+
items:
432
+
$ref: '#/definitions/WebApp'
389
433
DuplicateWebAppRequest:
390
434
in: body
391
435
name: DuplicateWebAppRequest
@@ -400,7 +444,7 @@ parameters:
400
444
example: My webapp name
401
445
workspace:
402
446
type: string
403
-
description: The workspace in which to create the new webapp. If no workspace is specified, the new webapp will be put in the default workspace.
447
+
description: The Id of the workspace in which to create the new webapp. If no workspace is specified, the new webapp will be put in the default workspace.
404
448
example: 0c80cf49-54e9-4e92-b117-3bfa574caa84
405
449
406
450
responses:
@@ -427,6 +471,17 @@ responses:
427
471
description: Create WebApp Response
428
472
schema:
429
473
$ref: '#/definitions/WebApp'
474
+
ImportWebAppsResponse:
475
+
description: Import WebApps Response
476
+
schema:
477
+
title: Import WebApps Response
478
+
type: object
479
+
properties:
480
+
webapps:
481
+
description: List of webapps that were imported
482
+
type: array
483
+
items:
484
+
$ref: '#/definitions/WebApp'
430
485
UpdateWebAppResponse:
431
486
description: Update WebApp Response
432
487
schema:
@@ -472,12 +527,20 @@ definitions:
472
527
type: string
473
528
enum:
474
529
- Dashboard
530
+
- TileDashboard
475
531
- DashboardTemplate
476
532
- WebVI
533
+
- Visualization
534
+
- VisualizationTemplate
477
535
description: The webapp type
478
536
name:
479
537
type: string
480
538
description: The webapp name
539
+
example: My webapp
540
+
workspace:
541
+
type: string
542
+
description: The Id of the workspace containing the webapp
543
+
example: 0c80cf49-54e9-4e92-b117-3bfa574caa84
481
544
shared:
482
545
type: string
483
546
enum:
@@ -495,7 +558,7 @@ definitions:
495
558
type: array
496
559
items:
497
560
type: string
498
-
example: "asdsad-17a6-45323-b64b-65325287372d"
561
+
example: asdsad-17a6-45323-b64b-65325287372d
499
562
description: List of policy Ids associated with the webapp, which give it access to the user's resources"
500
563
created:
501
564
type: string
@@ -599,8 +662,19 @@ definitions:
599
662
type: array
600
663
items:
601
664
type: string
665
+
innerErrors:
666
+
type: array
667
+
items:
668
+
$ref: '#/definitions/Error'
602
669
example:
603
-
name: DocumentManager.NotFound
604
-
code: -252520
605
-
message: The specified document was not found.
606
-
args: []
670
+
name: Skyline.OneOrMoreErrorsOccurred
671
+
code: -251041
672
+
message: >-
673
+
One or more errors occurred. See the contained list for details of each
0 commit comments