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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]