Enhanced existing API generator to use OpenSearch OpenAPI spec (#412)

Signed-off-by: saimedhi <saimedhi@amazon.com>
This commit is contained in:
Sai Medhini Reddy Maryada
2023-06-27 11:56:55 -07:00
committed by GitHub
parent c60c259d96
commit bc6a50b0b9
4 changed files with 191 additions and 65 deletions
+10
View File
@@ -3,6 +3,7 @@
- [Running Tests](#running-tests)
- [Linter](#linter)
- [Documentation](#documentation)
- [Running Python Client Generator](#running-python-client-generator)
# Developer Guide
@@ -72,3 +73,12 @@ make html
```
Open `opensearch-py/docs/build/html/index.html` to see results.
## Running Python Client Generator
The following code executes a python client generator that updates the client by utilizing the [openapi specifications](https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json) found in the "opensearch-api-specification" repository. This process allows for the automatic generation and synchronization of the client code with the latest API specifications.
```
cd opensearch-py
python utils/generate-api.py
```