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

Register REST API and forward REST requests to associated extension #101

Merged
merged 8 commits into from
Aug 30, 2022

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Aug 23, 2022

Companion PR: opensearch-project/OpenSearch#4282

Description

This and the companion PR linked above completes the work begun in #74 by registering the received API with the RestController. When OpenSearch receives a RestRequest matching one of these registered routes, it forwards it to the appropriate extension for further action.

See the design schematic and description in #64

Issues Resolved

Closes #64, Closes #69, and Closes #70

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.

@dbwiddis dbwiddis marked this pull request as ready for review August 25, 2022 01:27
@dbwiddis dbwiddis requested a review from a team August 25, 2022 01:27
@dbwiddis
Copy link
Member Author

@saratvemulapalli @owaiskazi19 ready for review. Failing gradle check due to changes on companion PR; passes locally after publishToMavenLocal of the companion PR.

Signed-off-by: Daniel Widdis <[email protected]>
DESIGN.md Outdated Show resolved Hide resolved
Copy link
Member

@saratvemulapalli saratvemulapalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dbwiddis for the changes!

Copy link
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for accommodating changes in DESIGN.md

@dbwiddis dbwiddis merged commit 8fd186e into opensearch-project:main Aug 30, 2022
@dbwiddis dbwiddis deleted the restController branch August 30, 2022 21:30
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 17, 2023
…pensearch-project#101)

* Forward REST requests from OpenSearch to Extension

Signed-off-by: Daniel Widdis <[email protected]>

* Update DESIGN

Signed-off-by: Daniel Widdis <[email protected]>

* Remove nodeId from Rest API request

Signed-off-by: Daniel Widdis <[email protected]>

* Add tests

Signed-off-by: Daniel Widdis <[email protected]>

* Log full response string

Signed-off-by: Daniel Widdis <[email protected]>

* Update DESIGN doc for clarity based on code review

Signed-off-by: Daniel Widdis <[email protected]>

Signed-off-by: Daniel Widdis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants