Skip to content

[FEATURE] [META] Register RestHandlers in OpenSearch #64

@owaiskazi19

Description

@owaiskazi19

Is your feature request related to a problem?

Currently, extensions are initialized in OpenSearch through extensions.yml file. For OpenSearch to process any functionality of the extension be it creating an index, deleting it or any other extension's functionality, the REST APIs of the extension should be registered in OpenSearch (ExtensionsOrchestrator) for OpenSearch to understand which extension it should send request to after receiving it from the user. The RestHandler should do the job of registering those APIs and map it in the sample format mentioned below

{extensionNode1: [API1, API2, API3], extenionNode2: [API1, API4, API5]}

extensionNode will be the node of the extension and values will be the APIs of the extension.

This issue requires us to

  1. Register extension REST APIs to ExtensionOrchestrator by building Rest Handler model [3][4]
  2. Map the extension node with the APIs it has to register [6] [7]
  3. Process the API call sent by the user and send a transport request to the right extension which has the request registered for that API [5] [8]

Rest_new

What solution would you like?

A clear and concise description of what you want to happen.

What alternatives have you considered?

A clear and concise description of any alternative solutions or features you've considered.

Do you have any additional context?

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions