Skip to content

Commit

Permalink
using multiple method, fix grammar in changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Dec 17, 2024
1 parent 77d3c7e commit 7525a18
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 64 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added response schema for `PUT` and `DELETE /_plugins/_transform/{id}` ([#722](https://github.com/opensearch-project/opensearch-api-specification/pull/716))
- Added response schema for `GET /_plugins/_knn/warmup/{index}` ([#717](https://github.com/opensearch-project/opensearch-api-specification/pull/717))
- Added support for multiple test verbs ([#724](https://github.com/opensearch-project/opensearch-api-specification/pull/724))
- Added `_type` to `termvector` and `mtermvector` API specs ([#734](https://github.com/opensearch-project/opensearch-api-specification/pull/734))
- Added `_type` to `termvector` and `mtermvector` ([#734](https://github.com/opensearch-project/opensearch-api-specification/pull/734))

### Removed
- Removed unsupported `_common.mapping:SourceField`'s `mode` field and associated `_common.mapping:SourceFieldMode` enum ([#652](https://github.com/opensearch-project/opensearch-api-specification/pull/652))
Expand Down
23 changes: 4 additions & 19 deletions tests/default/_core/mtermvectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,11 @@ epilogues:
chapters:
- synopsis: Retrieve term vectors for specific documents.
path: /_mtermvectors
method: GET
method:
- GET
- POST
request:
payload:
docs:
- _id: book1
_index: books
- _id: book2
_index: books
response:
status: 200

- synopsis: Retrieve term vectors for specific documents (POST).
path: /_mtermvectors
method: POST
request:
payload:
docs:
- _id: book1
_index: books
- _id: book2
_index: books
response:
status: 200
_index: books
22 changes: 4 additions & 18 deletions tests/default/indices/mtermvectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,10 @@ chapters:
path: /{index}/_mtermvectors
parameters:
index: books
method: GET
method:
- GET
- POST
request:
payload:
docs:
- _id: book1
- _id: book2
response:
status: 200

- synopsis: Retrieve term vectors for specific documents in an index (POST).
path: /{index}/_mtermvectors
parameters:
index: books
method: POST
request:
payload:
docs:
- _id: book1
- _id: book2
response:
status: 200
- _id: book1
32 changes: 6 additions & 26 deletions tests/default/indices/termvectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,38 +36,18 @@ chapters:
path: /{index}/_termvectors
parameters:
index: books
method: GET
method:
- GET
- POST
request:
payload:
doc:
title: To kill
response:
status: 200
- synopsis: Get term vectors for a specific index (POST).
path: /{index}/_termvectors
parameters:
index: books
method: POST
request:
payload:
doc:
title: Analyzing termvectors
response:
status: 200
- synopsis: Get term vectors for a document by its ID.
path: /{index}/_termvectors/{id}
parameters:
index: books
id: book1
method: GET
response:
status: 200
- synopsis: Get term vectors for a document by its ID (POST).
path: /{index}/_termvectors/{id}
parameters:
index: books
id: book2
method: POST
response:
status: 200

method:
- GET
- POST

0 comments on commit 7525a18

Please sign in to comment.