Skip to content

Commit

Permalink
flipping post and get and adding real deprecated version in specs
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Dec 1, 2024
1 parent 25ec08f commit 735ed4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions spec/namespaces/indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ paths:
operationId: indices.get_upgrade.0
x-operation-group: indices.get_upgrade
x-version-added: '1.0'
x-version-deprecated: '2.0' # i dont know the actual version
x-version-deprecated: '1.0'
description: The `_upgrade` API is no longer useful and will be removed.
externalDocs:
url: https://opensearch.org/docs/latest
Expand All @@ -859,7 +859,7 @@ paths:
operationId: indices.upgrade.0
x-operation-group: indices.upgrade
x-version-added: '1.0'
x-version-deprecated: '2.0' # i dont know the actual version
x-version-deprecated: '1.0'
description: The `_upgrade` API is no longer useful and will be removed.
externalDocs:
url: https://opensearch.org/docs/latest
Expand Down
16 changes: 8 additions & 8 deletions tests/default/indices/upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ prologues:
- {create: {_index: movies, _id: movie2}}
- {director: Nicolas Winding Refn, title: Drive, year: 1960}
chapters:
- synopsis: Check index upgrade status (GET).
path: /{index}/_upgrade
method: GET
parameters:
index: [movies]
response:
status: 200

- synopsis: Trigger index upgrade (POST).
path: /{index}/_upgrade
method: POST
Expand All @@ -38,3 +30,11 @@ chapters:
ignore_unavailable: true
response:
status: 200

- synopsis: Check index upgrade status (GET).
path: /{index}/_upgrade
method: GET
parameters:
index: [movies]
response:
status: 200

0 comments on commit 735ed4d

Please sign in to comment.