Changed URL for API spec. (#757)
Signed-off-by: dblock <dblock@amazon.com>
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
||||
commit-message: Updated opensearch-py to reflect the latest OpenSearch API spec (${{ steps.date.outputs.date }})
|
||||
title: Updated opensearch-py to reflect the latest OpenSearch API spec
|
||||
body: |
|
||||
Updated [opensearch-py](https://github.com/opensearch-project/opensearch-py) to reflect the latest [OpenSearch API spec](https://github.com/opensearch-project/opensearch-api-specification/releases/download/main/opensearch-openapi.yaml)
|
||||
Updated [opensearch-py](https://github.com/opensearch-project/opensearch-py) to reflect the latest [OpenSearch API spec](https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml)
|
||||
Date: ${{ steps.date.outputs.date }}
|
||||
branch: automated-api-update
|
||||
base: main
|
||||
|
||||
+1
-1
@@ -125,7 +125,7 @@ Open `docs/build/html/index.html` to see results.
|
||||
|
||||
## Client Code Generator
|
||||
|
||||
OpenSearch publishes an [OpenAPI specification](https://github.com/opensearch-project/opensearch-api-specification/releases/download/main/opensearch-openapi.yaml) in the [opensearch-api-specification](https://github.com/opensearch-project/opensearch-api-specification) repository, which is used to auto-generate the less interesting parts of the client.
|
||||
OpenSearch publishes an [OpenAPI specification](https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml) in the [opensearch-api-specification](https://github.com/opensearch-project/opensearch-api-specification) repository, which is used to auto-generate the less interesting parts of the client.
|
||||
|
||||
```
|
||||
nox -rs generate
|
||||
|
||||
@@ -550,7 +550,7 @@ class API:
|
||||
def read_modules() -> Any:
|
||||
"""
|
||||
checks the opensearch-api spec at
|
||||
https://github.com/opensearch-project/opensearch-api-specification/releases/download/main/opensearch-openapi.yaml
|
||||
https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml
|
||||
and parses it into one or more API modules
|
||||
:return: a dict of API objects
|
||||
"""
|
||||
@@ -558,7 +558,7 @@ def read_modules() -> Any:
|
||||
|
||||
# Load the OpenAPI specification file
|
||||
response = requests.get(
|
||||
"https://github.com/opensearch-project/opensearch-api-specification/releases/download/main/opensearch-openapi.yaml"
|
||||
"https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml"
|
||||
)
|
||||
data = yaml.safe_load(response.text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user