You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/10/02 20:57:00 UTC

[jira] [Commented] (SOLR-16392) Cosmetic, REST-fulness improvements to v2 shard, replica, and replicaprop CRUD APIs

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

ASF subversion and git services commented on SOLR-16392:
--------------------------------------------------------

Commit a1ee7c1d0de32779109cb8b66a4319a0f8c85037 in solr's branch refs/heads/main from Jason Gerlowski
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=a1ee7c1d0de ]

SOLR-16392:  Refactor and update v2 ADDREPLICAPROP API  (#1049)

This commit modifies the existing AddReplicaPropertyAPI definition to be
more REST-ful, and use the new JAX-RS framework. Specifically, this
commit changes the API from:

POST /collections/collName
    {"add-replica-property" : {...}}

to

PUT /collections/<coll>/shards/<shard>/replicas/<replica>/properties/<prop>
    {"value": <val>}

This is a breaking change for users of the v2 API, but one that is
allowed because of v2's "experimental" designation.

In support of this, this commit also refactors AddReplicaPropertyAPI to
use the new JAX-RS framework.  It also introduces the new class,
"InjectionFactories" to allow Jersey to inject common "context"
values/objects as ctor args for resource classes such as
AddReplicaPropertyAPI.

> Cosmetic, REST-fulness improvements to v2 shard, replica, and replicaprop CRUD APIs
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-16392
>                 URL: https://issues.apache.org/jira/browse/SOLR-16392
>             Project: Solr
>          Issue Type: Sub-task
>          Components: v2 API
>    Affects Versions: main (10.0)
>            Reporter: Jason Gerlowski
>            Assignee: Jason Gerlowski
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> As mentioned on SOLR-15781, the v2 API currently has an experimental designation, and the community has expressed an interest in using this period to update our v2 endpoints to be more REST-ful and consistent.  The current plan is to follow the
> specific changes laid out in [this spreadsheet|https://docs.google.com/spreadsheets/d/1HAoBBFPpSiT8mJmgNZKkZAPwfCfPvlc08m5jz3fQBpA/edit?usp=sharing], though of course nothing there is set in stone and there are still warts to be worked out.
>  
> This ticket plans to tackle making the changes required for Solr's shard, replica and replica-prop CRUD APIs, as described in that spreadsheet. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org