Skip to content

Commit d5d7ce2

Browse files
authored
[Docs] Add descriptions to Snapshot Management namespace (#857)
* [Docs] Add descriptions to Snapshot Management namespace Signed-off-by: Archer <[email protected]>
1 parent 2c7469d commit d5d7ce2

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

spec/namespaces/sm.yaml

+27-25
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.1.0
22
info:
33
title: OpenSearch Snapshot Management API
4-
description: API for automating snapshot management tasks.
4+
description: The Snapshot Management API automates snapshot management tasks.
55
version: 1.0.0
66

77
paths:
@@ -128,120 +128,122 @@ components:
128128

129129
responses:
130130
sm.get_policies@200:
131-
description: Successfully retrieved the list of snapshot management policies.
131+
description: The API successfully retrieved the list of snapshot management policies.
132132
content:
133133
application/json:
134134
schema:
135135
$ref: '../schemas/sm._common.yaml#/components/schemas/GetPoliciesResponse'
136136

137137
sm.create_policy@201:
138-
description: Successfully created the snapshot management policy.
138+
description: The API successfully created the snapshot management policy.
139139
content:
140140
application/json:
141141
schema:
142142
$ref: '../schemas/sm._common.yaml#/components/schemas/PolicyResponse'
143143
sm.create_policy@400:
144-
description: Bad request when creating the snapshot management policy.
144+
description: The API encountered a bad request when creating the snapshot management policy.
145145
content:
146146
application/json:
147147
schema:
148148
$ref: '../schemas/sm._common.yaml#/components/schemas/BadRequestResponse'
149149

150150
sm.get_policy@200:
151-
description: Successfully retrieved the snapshot management policy.
151+
description: The API successfully retrieved the snapshot management policy.
152152
content:
153153
application/json:
154154
schema:
155155
$ref: '../schemas/sm._common.yaml#/components/schemas/PolicyResponse'
156156
sm.get_policy@404:
157-
description: Snapshot management policy not found.
157+
description: The API could not find the snapshot management policy.
158158
content:
159159
application/json:
160160
schema:
161161
$ref: '../schemas/sm._common.yaml#/components/schemas/NotFoundResponse'
162162

163163
sm.update_policy@200:
164-
description: Successfully updated the snapshot management policy.
164+
description: The API successfully updated the snapshot management policy.
165165
content:
166166
application/json:
167167
schema:
168168
$ref: '../schemas/sm._common.yaml#/components/schemas/PolicyResponse'
169169
sm.update_policy@404:
170-
description: Snapshot management policy not found.
170+
description: The API could not find the snapshot management policy.
171171
content:
172172
application/json:
173173
schema:
174174
$ref: '../schemas/sm._common.yaml#/components/schemas/NotFoundResponse'
175175

176176
sm.delete_policy@200:
177-
description: Successfully deleted the snapshot management policy.
177+
description: The API successfully deleted the snapshot management policy.
178178
content:
179179
application/json:
180180
schema:
181181
$ref: '../schemas/sm._common.yaml#/components/schemas/DeletePolicyResponse'
182182
sm.delete_policy@404:
183-
description: Snapshot management policy not found.
183+
description: The API could not find the snapshot management policy.
184184
content:
185185
application/json:
186186
schema:
187187
$ref: '../schemas/sm._common.yaml#/components/schemas/NotFoundResponse'
188188

189189
sm.explain_policy@200:
190-
description: Successfully explained the state of the snapshot management policy.
190+
description: The API successfully explained the state of the snapshot management policy.
191191
content:
192192
application/json:
193193
schema:
194194
$ref: '../schemas/sm._common.yaml#/components/schemas/PolicyExplanation'
195195

196196
sm.start_policy@200:
197-
description: Successfully started the snapshot management policy.
197+
description: The API successfully started the snapshot management policy.
198198
content:
199199
application/json:
200200
schema:
201201
type: object
202202
properties:
203203
acknowledged:
204204
type: boolean
205+
description: Whether the API acknowledged the start operation.
205206

206207
sm.stop_policy@200:
207-
description: Successfully stopped the snapshot management policy.
208+
description: The API successfully stopped the snapshot management policy.
208209
content:
209210
application/json:
210211
schema:
211212
type: object
212213
properties:
213214
acknowledged:
214215
type: boolean
216+
description: Whether the API acknowledged the stop operation.
215217

216218
parameters:
217219
sm.create_policy::path.policy_name:
218220
name: policy_name
219221
in: path
220-
description: The snapshot management policy name.
222+
description: The name of the snapshot management policy to create.
221223
required: true
222224
schema:
223225
type: string
224226

225227
sm.get_policy::path.policy_name:
226228
name: policy_name
227229
in: path
228-
description: The snapshot management name.
230+
description: The name of the snapshot management policy to retrieve.
229231
required: true
230232
schema:
231233
type: string
232234

233235
sm.get_policies::query.from:
234236
name: from
235237
in: query
236-
description: The index to retrieve snapshot management policies from.
238+
description: The starting index from which to retrieve snapshot management policies.
237239
schema:
238240
default: 0
239241
type: integer
240242

241243
sm.update_policy::path.policy_name:
242244
name: policy_name
243245
in: path
244-
description: The snapshot management policy name.
246+
description: The name of the snapshot management policy to update.
245247
required: true
246248
schema:
247249
type: string
@@ -265,31 +267,31 @@ components:
265267
sm.delete_policy::path.policy_name:
266268
name: policy_name
267269
in: path
268-
description: The snapshot management policy name.
270+
description: The name of the snapshot management policy to delete.
269271
required: true
270272
schema:
271273
type: string
272274

273275
sm.explain_policy::path.policy_name:
274276
name: policy_name
275277
in: path
276-
description: The snapshot management policy name.
278+
description: The name of the snapshot management policy to explain.
277279
required: true
278280
schema:
279281
type: string
280282

281283
sm.start_policy::path.policy_name:
282284
name: policy_name
283285
in: path
284-
description: The snapshot management policy name.
286+
description: The name of the snapshot management policy to start.
285287
required: true
286288
schema:
287289
type: string
288290

289291
sm.stop_policy::path.policy_name:
290292
name: policy_name
291293
in: path
292-
description: The snapshot management policy name.
294+
description: The name of the snapshot management policy to stop.
293295
required: true
294296
schema:
295297
type: string
@@ -304,22 +306,22 @@ components:
304306
sm.get_policies::query.queryString:
305307
name: queryString
306308
in: query
307-
description: Filters the returned snapshot management policies based on query string.
309+
description: The query string to filter the returned snapshot management policies.
308310
schema:
309311
type: string
310312

311313
sm.get_policies::query.sortField:
312314
name: sortField
313315
in: query
314-
description: The name of the query field to sort on.
316+
description: The name of the field to sort the snapshot management policies by.
315317
schema:
316318
type: string
317319

318320
sm.get_policies::query.sortOrder:
319321
name: sortOrder
320322
in: query
321-
description: The order to sort the snapshot management policy result.
323+
description: The order to sort the snapshot management policies.
322324
schema:
323325
type: string
324326
enum: [asc, desc]
325-
default: asc
327+
default: asc

0 commit comments

Comments
 (0)