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

Noble Paul commented on SOLR-5606:
----------------------------------

+1 to the {{collection-name/admin}} end point . All operations on a given 
collection should be performed there like {{create-shard}} , {{create-replica}} 
etc

another question is why to have  a special end point called 
{{/solr/collections}}

Why not
{code}
curl -XPOST -H 'Content-type: application/json' -d ' {
"create-collection": {"name":"golf",
                             "numShards":2,
                             "configName":"foo"}}' http://localhost:8080/solr
{code}

That way we can get rid of special URLs such as {{/admin/cores}} 
{{/admin/collections}} etc

> 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