[ 
https://issues.apache.org/jira/browse/SOLR-5606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14646275#comment-14646275
 ] 

Shai Erera commented on SOLR-5606:
----------------------------------

I like the {{POST /solr/admin/collections/gettingstarted/replicas}} to create a 
replica, only the replicas is created for a shard, so the call should probably 
be {{POST /solr/admin/collections/gettingstarted/shards/shard1/replicas}} with 
a payload relevant to the ADDREPLICA API.

I don't think that we should have {{GET 
/solr/admin/collections/gettingstarted/replicas}} though, but rather {{GET 
/solr/admin/collections/gettingstarted/shards}} since replicas belong to 
shards. We can have {{GET 
/solr/admin/collections/gettingstarted/shards/shard1}} to get the replicas of 
shard1.

> REST based Collections API
> --------------------------
>
>                 Key: SOLR-5606
>                 URL: https://issues.apache.org/jira/browse/SOLR-5606
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Jan Høydahl
>            Priority: Minor
>             Fix For: Trunk
>
>
> For consistency reasons, the collections API (and other admin APIs) should be 
> REST based. Spinoff from SOLR-1523



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to