-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add models for the /_remotestore/_restore
API endpoint
#70
Conversation
@Xtansia can we also add tests here? |
@harshavamsi Have added a test case |
Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
1266605
to
d874905
Compare
@suppress(["HttpUriConflict"]) | ||
@http(method: "POST", uri: "/_remotestore/_restore") | ||
@documentation("Restore one or more indices from a remote backup.") | ||
operation PostRemoteStoreRestore{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the names of the operation and structures inline with what we would want in the generated code? Or do they need to be changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're named to match the naming scheme of the rest of the specs in the repo. Naming (or encoding friendly names as metadata similar to #73) will likely be a bigger issue, but hard to solve in advance until we get to the point of actually generating parts of a client from these.
Description
Add's models for the
/_remotestore/_restore
API endpointAs seen here,
accepted
may be set in the response instead ofremote_store
, unsure of exact causal path however.Issues Resolved
Resolves #69
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.