You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2015/07/27 22:20:05 UTC

[jira] [Comment Edited] (SOLR-5606) REST based Collections API

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

Noble Paul edited comment on SOLR-5606 at 7/27/15 8:19 PM:
-----------------------------------------------------------

+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
a GET on {{http://localhost:8080/solr}} can respond with all available collection names


was (Author: noble.paul):
+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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org