diff --git a/CHANGELOG.md b/CHANGELOG.md index f8e2b799..47cce6e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/tests/default/_core/mtermvectors.yaml b/tests/default/_core/mtermvectors.yaml index 04a4f4c1..497abd3f 100644 --- a/tests/default/_core/mtermvectors.yaml +++ b/tests/default/_core/mtermvectors.yaml @@ -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 \ No newline at end of file diff --git a/tests/default/indices/mtermvectors.yaml b/tests/default/indices/mtermvectors.yaml index 1455e700..e9a7978e 100644 --- a/tests/default/indices/mtermvectors.yaml +++ b/tests/default/indices/mtermvectors.yaml @@ -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 \ No newline at end of file diff --git a/tests/default/indices/termvectors.yaml b/tests/default/indices/termvectors.yaml index 99107fe8..da53e103 100644 --- a/tests/default/indices/termvectors.yaml +++ b/tests/default/indices/termvectors.yaml @@ -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 - \ No newline at end of file + method: + - GET + - POST \ No newline at end of file