[
https://issues.apache.org/jira/browse/SOLR-16470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Gerlowski updated SOLR-16470:
-----------------------------------
Description:
Replication Handler has no v2 equivalent. This ticket is covering few endpoints
from ReplicationHandler such as Get IndexVersion, Get FileStream, Get File List.
Existing V1
|~GET /solr/collName/replication?command=indexversion~|
|GET /solr/collName/replication?command=filecontent|
|GET /solr/collName/replication?command=filelist|
Proposed API design
|~GET /api/cores/coreName/replication/indexversion~|
|GET /api/cores/coreName/replication/files/filePath|
|GET /api/cores/coreName/replication/files|
few other pointers that might be helpful, especially for newcomers:
* The v1 logic for this API lives in CollectionsHandler (for the
collection-level APIs) and CoreAdminHandler (for the core-level APIs).
* Some discussion of how APIs work in Solr (Particularly the "APIs in Solr"
section.)
* A step-by-step guide to creating APIs using the preferred v2 API framework
* [A recent PR that adds a v2 API, as an
example|https://github.com/apache/solr/pull/1061/files]
was:
Replication Handler has no v2 equivalent. This ticket is covering few endpoints
from ReplicationHandler such as Get IndexVersion, Get FileStream, Get File List.
Existing V1
|GET /solr/collName/replication?command=indexversion|
|GET /solr/collName/replication?command=filecontent|
|GET /solr/collName/replication?command=filelist|
Proposed API design
|GET /api/cores/coreName/replication/indexversion|
|GET /api/cores/coreName/replication/files/filePath|
|GET /api/cores/coreName/replication/files|
few other pointers that might be helpful, especially for newcomers:
* The v1 logic for this API lives in CollectionsHandler (for the
collection-level APIs) and CoreAdminHandler (for the core-level APIs).
* Some discussion of how APIs work in Solr (Particularly the "APIs in Solr"
section.)
* A step-by-step guide to creating APIs using the preferred v2 API framework
* [A recent PR that adds a v2 API, as an
example|https://github.com/apache/solr/pull/1061/files]
> Create V2 equivalent of V1 Replication: Get IndexVersion, Get FileStream, Get
> File List
> ---------------------------------------------------------------------------------------
>
> Key: SOLR-16470
> URL: https://issues.apache.org/jira/browse/SOLR-16470
> Project: Solr
> Issue Type: Sub-task
> Components: v2 API
> Affects Versions: 9.2
> Reporter: Sanjay Dutt
> Priority: Major
> Labels: V2, newdev
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Replication Handler has no v2 equivalent. This ticket is covering few
> endpoints from ReplicationHandler such as Get IndexVersion, Get FileStream,
> Get File List.
> Existing V1
> |~GET /solr/collName/replication?command=indexversion~|
> |GET /solr/collName/replication?command=filecontent|
> |GET /solr/collName/replication?command=filelist|
> Proposed API design
> |~GET /api/cores/coreName/replication/indexversion~|
> |GET /api/cores/coreName/replication/files/filePath|
> |GET /api/cores/coreName/replication/files|
> few other pointers that might be helpful, especially for newcomers:
> * The v1 logic for this API lives in CollectionsHandler (for the
> collection-level APIs) and CoreAdminHandler (for the core-level APIs).
> * Some discussion of how APIs work in Solr (Particularly the "APIs in Solr"
> section.)
> * A step-by-step guide to creating APIs using the preferred v2 API framework
> * [A recent PR that adds a v2 API, as an
> example|https://github.com/apache/solr/pull/1061/files]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]