Skip to content

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

Merged
dbwiddis merged 8 commits intoopensearch-project:mainfrom
dbwiddis:restController
Aug 30, 2022
Merged

Register REST API and forward REST requests to associated extension#101
dbwiddis merged 8 commits intoopensearch-project:mainfrom
dbwiddis:restController

Conversation

@dbwiddis
Copy link
Copy Markdown
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.

Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
@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
Copy Markdown
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 <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
@dbwiddis dbwiddis requested a review from owaiskazi19 August 26, 2022 17:05
Copy link
Copy Markdown
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
Copy Markdown
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

into restController

Signed-off-by: Daniel Widdis <widdis@gmail.com>
@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 <widdis@gmail.com>

* Update DESIGN

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Remove nodeId from Rest API request

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add tests

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Log full response string

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update DESIGN doc for clarity based on code review

Signed-off-by: Daniel Widdis <widdis@gmail.com>

Signed-off-by: Daniel Widdis <widdis@gmail.com>
caokyhieu pushed a commit to caokyhieu/opensearch-sdk-java that referenced this pull request Aug 15, 2025
…pensearch-project#101)

* Forward REST requests from OpenSearch to Extension

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update DESIGN

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Remove nodeId from Rest API request

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add tests

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Log full response string

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Update DESIGN doc for clarity based on code review

Signed-off-by: Daniel Widdis <widdis@gmail.com>

Signed-off-by: Daniel Widdis <widdis@gmail.com>
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