Skip to content

Commit 433afc1

Browse files
committed
Implemented feedback
Signed-off-by: Cristian Hotea <[email protected]>
1 parent 6048276 commit 433afc1

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

systems-state-manager/nisystemsstate.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
swagger: '2.0'
22
info:
3-
description: "Creates and manages states that can be applied to managed systems."
3+
description: "Creates and manages states you can apply applied to managed systems."
44
version: "1"
55
title: "SystemLink Systems State Manager"
66
contact:
@@ -92,7 +92,7 @@ definitions:
9292
description: The ID of the state.
9393
type: string
9494
stateVersion:
95-
description: The version of the state. The latest content of the state will be used if version is not specified.
95+
description: The version of the state. The latest package/feed set of the state will be used if the version is not specified.
9696
type: string
9797
required:
9898
- stateID
@@ -106,7 +106,7 @@ definitions:
106106
properties:
107107
inline:
108108
description: >-
109-
Whether to return the state data inline rather than as an attachment.
109+
Whether to return the state data inline or as an attachment.
110110
When the inline is true, the
111111
Content-Disposition header is set to 'inline'.
112112
When the inline is not specified or is
@@ -126,7 +126,7 @@ definitions:
126126
properties:
127127
inline:
128128
description: >-
129-
Whether to return the state data inline rather than as an attachment.
129+
Whether to return the state data inline or as an attachment.
130130
When the inline is true, the
131131
Content-Disposition header is set to 'inline'.
132132
When the inline is not specified or is
@@ -136,7 +136,7 @@ definitions:
136136
type: boolean
137137
example: true
138138
systemID:
139-
description: System ID
139+
description: System ID.
140140
type: string
141141
example: cRIO-9064--SN-11111111--MAC-00-01-02-03-04-05
142142
required:
@@ -176,7 +176,7 @@ definitions:
176176
description: The identifier of the resource associated with the error.
177177
type: string
178178
message:
179-
description: The filled in error message.
179+
description: The filled-in error message.
180180
type: string
181181
args:
182182
description: Positional argument values for the error code.
@@ -225,7 +225,7 @@ definitions:
225225
description: >-
226226
Available operations in the v1 version of the API:
227227
228-
- getStates: The ability to retrieve the states
228+
- getStates: The ability to retrieve states
229229
230230
- createOrUpdateStates: The ability to create or update states
231231
@@ -290,7 +290,7 @@ definitions:
290290
format: iso-date-time
291291
example: '2018-05-07T18:58:05.219692Z'
292292
lastUpdatedTimestamp:
293-
description: ISO-8601 formatted timestamp specifying the last date that the state has been updated.
293+
description: ISO-8601 formatted timestamp specifying the last date that the state was updated.
294294
type: string
295295
format: iso-date-time
296296
example: '2018-05-07T18:58:05.219692Z'
@@ -343,11 +343,11 @@ definitions:
343343
properties:
344344
name:
345345
type: string
346-
description: Name of the State
346+
description: Name of the state.
347347
example: crio9064State
348348
description:
349349
type: string
350-
description: Description of the State
350+
description: Description of the state.
351351
example: crio9064 Setup State
352352
distribution:
353353
$ref: '#/definitions/StateDistribution'
@@ -374,11 +374,11 @@ definitions:
374374
properties:
375375
name:
376376
type: string
377-
description: Name of the State.
377+
description: Name of the state.
378378
example: crio9064State
379379
description:
380380
type: string
381-
description: Description of the State.
381+
description: Description of the state.
382382
example: crio9064 Setup State
383383
distribution:
384384
$ref: '#/definitions/StateDistribution'
@@ -442,7 +442,7 @@ definitions:
442442
$ref: '#/definitions/Package'
443443
containsExtraOperations:
444444
type: boolean
445-
description: Whether the state containts extra operations beside feeds and packages or not.
445+
description: Whether the state contains extra operations in addition to feeds and packages.
446446
example: true
447447
required:
448448
- id
@@ -494,7 +494,7 @@ definitions:
494494
- versions
495495

496496
Feed:
497-
description: Object defining a feed containing the name, url and whether is enabled/compressed or not.
497+
description: Object defining a feed, which contains the name, url, and Booleans for whether the feed is enabled and compressed.
498498
type: object
499499
properties:
500500
name:
@@ -544,7 +544,7 @@ paths:
544544
summary: API information
545545
tags: [versioning]
546546
security: []
547-
description: Gets permissions and operations for the StatesService.
547+
description: Gets permissions and operations for the States Service.
548548
responses:
549549
200:
550550
description: OK
@@ -620,7 +620,7 @@ paths:
620620
x-ni-operation: createOrUpdateStates
621621
tags: [states]
622622
summary: Create a new system state
623-
description: Create a new System State by providing metadata and its content. rawState property will be used if it has a non-null value, feeds and packages will be used otherwise.
623+
description: Create a new System State by providing the required metadata and content.
624624
parameters:
625625
- in: body
626626
name: state
@@ -648,7 +648,7 @@ paths:
648648
x-ni-operation: getStates
649649
tags: [states]
650650
summary: Get system state
651-
description: Returns the metadata, the feeds and packages from the content of the state. If the state contains only feeds and packages entries the containsExtraOperations from response will be false, otherwise it will be true. The export route could be used in order to get the whole content of the state.
651+
description: Returns the metadata, feeds, and packages from the state content. If the state contains only feed and package entries, the containsExtraOperations property of the response will be false. Otherwise, it will be true. You may use the export route to get all state content.
652652
parameters:
653653
- name: id
654654
in: path
@@ -674,7 +674,7 @@ paths:
674674
- application/merge-patch+json
675675
tags: [states]
676676
summary: Update a state
677-
description: Update a state by providing specific changes of the state. The method overrides any state properties with what is contained in the request. In order to ignore properties update, leave the value off the request. If rawState is specified it will have priority against packages/feeds.
677+
description: Update a state by providing specific changes to the state. The method overrides all state properties with those contained in the request. Therefore, if you want to ignore a properties update, leave the value off the request.
678678
parameters:
679679
- name: id
680680
in: path
@@ -731,7 +731,7 @@ paths:
731731
x-ni-operation: createOrUpdateStates
732732
tags: [states]
733733
summary: Replace the content of a state
734-
description: Replace the content of a state by providing the new content of the state.
734+
description: Replace the existing content of a state with new content.
735735
consumes:
736736
- multipart/form-data
737737
parameters:
@@ -769,7 +769,7 @@ paths:
769769
x-ni-operation: getStates
770770
tags: [history]
771771
summary: Get state history
772-
description: Returns a list of (version, description) pairs defining the history of the state.
772+
description: Returns a list of version-description pairs defining the history of the state.
773773
parameters:
774774
- name: id
775775
in: path
@@ -778,13 +778,13 @@ paths:
778778
type: string
779779
- in: query
780780
name: skip
781-
description: How many state versions to skip. Used for pagination.
781+
description: Number of state versions to skip. Used for pagination.
782782
type: integer
783783
x-ni-data-type: U32
784784
default: 0
785785
- in: query
786786
name: take
787-
description: How many state versions to retrieve. Used for pagination.
787+
description: Number of state versions to retrieve. Used for pagination.
788788
type: integer
789789
x-ni-data-type: U32
790790
default: 1000
@@ -806,7 +806,7 @@ paths:
806806
x-ni-operation: getStates
807807
tags: [history]
808808
summary: Get state by version
809-
description: Returns the snapshot of a state at a specific version. Returns the metadata, the feeds and packages from the content of the state. If the state contains only feeds and packages entries the containsExtraOperations from response will be false, otherwise it will be true. The export route could be used in order to get the whole content of the state.
809+
description: Returns the snapshot of a state at a specific version. Returns the metadata, feeds, and packages from the state content. If the state contains only feed and package entries, the containsExtraOperations property of the response will be false. Otherwise, it will be true. You may use the export route to get all state content.
810810
parameters:
811811
- name: id
812812
in: path
@@ -836,7 +836,7 @@ paths:
836836
x-ni-operation: getStates
837837
tags: [states]
838838
summary: Export a state
839-
description: Export the state content to a file. If the version is not provided in body then the latest content will be exported.
839+
description: Export the state content to a file. If the version is not provided in body, then the latest content will be exported.
840840
parameters:
841841
- name: stateInfo
842842
in: body
@@ -916,8 +916,8 @@ paths:
916916
x-ni-privilege: Read
917917
x-ni-operation: getStates
918918
tags: [states]
919-
summary: Export the state of a System by providing its ID.
920-
description: Export the state of a System by providing its ID.
919+
summary: Export the state of a system by providing its ID.
920+
description: Export the state of a system by providing its ID.
921921
parameters:
922922
- name: systemInfo
923923
in: body
@@ -948,7 +948,7 @@ paths:
948948
x-ni-operation: deleteStates
949949
tags: [states]
950950
summary: Delete states
951-
description: Delete a list of states by providing their ids.
951+
description: Delete a list of states by providing their IDs.
952952
parameters:
953953
- in: body
954954
name: StateIDs

0 commit comments

Comments
 (0)