Skip to content

Commit a017f62

Browse files
spanglercomaxgax
authored andcommitted
Push changes for SystemLink 19.0 (#46)
* Merge commit '8c198c083018c6bc75205e6c5f30ca88b9839518' into users/pspangle/openapi * Add user info in swagger for nifile. * Update yml so size64 is less confusing in swagger editor. size and size64 should be the same or size should be -1. * Merged PR 23221: Mark Test Monitor Inputs/Outputs values as not required and bump Swagger CodeGen version
1 parent 6c91cfe commit a017f62

File tree

3 files changed

+181
-63
lines changed

3 files changed

+181
-63
lines changed

file/nifile.yml

+22-5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ consumes: [application/json]
1212
produces: [application/json]
1313

1414
securityDefinitions:
15+
apiKeyAuth:
16+
type: apiKey
17+
name: x-ni-api-key
18+
in: header
1519
basicAuth:
1620
type: basic
1721
cookieAuth:
@@ -20,6 +24,7 @@ securityDefinitions:
2024
name: Cookie
2125

2226
security:
27+
- apiKeyAuth: []
2328
- basicAuth: []
2429
- cookieAuth: []
2530
x-ni-routing-key: Skyline.FileIngestion
@@ -43,6 +48,7 @@ definitions:
4348
code:
4449
description: Numeric error code
4550
type: integer
51+
format: int32
4652
resourceType:
4753
description: Type of resource associated with the error
4854
type: string
@@ -128,12 +134,13 @@ definitions:
128134
size:
129135
description: The 32-bit file size in bytes. If the value is larger than a 32-bit integer, this value is -1 and the size64 parameter contains the correct value.
130136
type: integer
137+
format: int32
131138
example: 7277
132139
size64:
133140
description: The 64-bit file size in bytes
134141
type: integer
135142
format: int64
136-
example: 2147483648
143+
example: 7277
137144
ServiceGroup:
138145
type: object
139146
properties:
@@ -218,6 +225,7 @@ definitions:
218225
value:
219226
description: The value of the field to search for
220227
type: integer
228+
format: int32
221229
example: 5000
222230
required:
223231
- operation
@@ -298,6 +306,7 @@ definitions:
298306
description: Whether the operation is available to the caller
299307
version:
300308
type: integer
309+
format: int32
301310
description: The version of the available operation
302311
required: [available]
303312
example:
@@ -389,6 +398,7 @@ responses:
389398
totalCount:
390399
description: The total number of files that match the query regardless of skip and take values
391400
type: integer
401+
format: int64
392402
example: 1
393403
Error:
394404
description: Error
@@ -513,8 +523,9 @@ paths:
513523
For example, a list of 100 files with a skip value of 50 and a take
514524
value of 25 will return entries 51 through 75.
515525
type: integer
516-
x-ni-data-type: U32
526+
format: int32
517527
default: 0
528+
minimum: 0
518529
- in: query
519530
name: take
520531
description: >-
@@ -523,8 +534,9 @@ paths:
523534
For example, a list of 100 files with a skip value of 50 and a take
524535
value of 25 will return entries 51 through 75.
525536
type: integer
526-
x-ni-data-type: U32
537+
format: int32
527538
default: 0
539+
minimum: 0
528540
maximum: 10000
529541
- in: query
530542
name: orderBy
@@ -638,6 +650,7 @@ paths:
638650
operationId: UpdateMetadata
639651
x-ni-operation: updateMetadata
640652
x-ni-privilege: ModifyFiles
653+
x-ni-request-variables: [REMOTE_USER]
641654
parameters:
642655
- in: body
643656
name: metadata
@@ -681,6 +694,7 @@ paths:
681694
operationId: DeleteMultiple
682695
x-ni-operation: deleteFiles
683696
x-ni-privilege: ModifyFiles
697+
x-ni-request-variables: [REMOTE_USER]
684698
parameters:
685699
- in: body
686700
name: files
@@ -734,16 +748,18 @@ paths:
734748
name: skip
735749
description: How many files to skip in the result when paging. New in version 2 of this operation.
736750
type: integer
737-
x-ni-data-type: U32
751+
format: int32
738752
default: 0
753+
minimum: 0
739754
- in: query
740755
name: take
741756
description: >-
742757
How many files to return in the result, or 0 to use a default. New in version 2 of this operation.
743758
The default value is defined by the service.
744759
type: integer
745-
x-ni-data-type: U32
760+
format: int32
746761
default: 1000
762+
minimum: 0
747763
maximum: 1000
748764
- in: body
749765
name: query
@@ -787,6 +803,7 @@ paths:
787803
operationId: Upload
788804
x-ni-operation: uploadFiles
789805
x-ni-privilege: UploadFiles
806+
x-ni-request-variables: [REMOTE_USER]
790807
consumes:
791808
- multipart/form-data
792809
parameters:

0 commit comments

Comments
 (0)