cugarte commented on PR #2788:
URL: https://github.com/apache/solr/pull/2788#issuecomment-2427174454

   List ClusterProps sample response:
   ```
   {
     "responseHeader": {
       "status": 0,
       "QTime": 14
     },
     "clusterProperties": [
       "urlScheme",
       "defaults"
     ]
   }
   ```
   
   Fetch Single ClusterProp sample responses:
   ```
   {
     "responseHeader": {
       "status": 0,
       "QTime": 5
     },
     "clusterProperty": {
       "name": "urlScheme",
       "value": "v1-value"
     }
   }
   ```
   
   ```
   {
     "responseHeader": {
       "status": 0,
       "QTime": 5
     },
     "clusterProperty": {
       "name": "defaults",
       "value": {
         "collection": {
           "numShards": 2,
           "nrtReplicas": 1,
           "tlogReplicas": 1,
           "pullReplicas": 1
         }
       }
     }
   }
   ```
   
   ```
   {
     "responseHeader": {
       "status": 400,
       "QTime": 26
     },
     "error": {
       "metadata": {
         "error-class": "org.apache.solr.common.SolrException",
         "root-error-class": "org.apache.solr.common.SolrException"
       },
       "msg": "No such cluster property [doesNotExist]",
       "code": 400
     }
   }
   ```
   
   Wasn't sure how to model the response.  Different APIs use different error 
for "does not exist" responses:  `/api/collections/collectionName` returns a 
400, `/api/aliases/specificalias` returns a 405, 
`/solr/collectionName/schema/fields/fieldName` returns a 404.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to