Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create resource handler to get version #131

Closed
Tracked by #120
iwysiu opened this issue Apr 11, 2023 · 0 comments
Closed
Tracked by #120

Create resource handler to get version #131

iwysiu opened this issue Apr 11, 2023 · 0 comments

Comments

@iwysiu
Copy link
Contributor

iwysiu commented Apr 11, 2023

We should create a resource handler that returns the version.

Running a get request to the url (with no query parameters) will return a version object:
'''
{
"name" : "15ffcf528ee3",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "1vbTN7ROS4Sw-8mHbTAIVQ",
"version" : {
"distribution" : "opensearch",
"number" : "2.6.0",
"build_type" : "tar",
"build_hash" : "7203a5af21a8a009aece1474446b437a3c674db6",
"build_date" : "2023-02-24T18:58:37.352296474Z",
"build_snapshot" : false,
"lucene_version" : "9.5.0",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
'''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant