Files
scylladb/api/api-doc/endpoint_snitch_info.json
Amnon Heiman 3a43a61203 Adding the Swagger definition of the endpoint_snitch_info
This adds the Swagger definition for the endpoint_snitch_info that is
based on the EndpointSnitchInfoMBean.
The following commands where added:
get_datacenter
get_rack
get_snitch_name

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-07-02 17:44:05 +03:00

75 lines
2.1 KiB
JSON

{
"apiVersion":"0.0.1",
"swaggerVersion":"1.2",
"basePath":"{{Protocol}}://{{Host}}",
"resourcePath":"/snitch",
"produces":[
"application/json"
],
"apis":[
{
"path":"/snitch/datacenter",
"operations":[
{
"method":"GET",
"summary":"Provides the Datacenter name depending on the respective snitch used, given the hostname/ip",
"type":"string",
"nickname":"get_datacenter",
"produces":[
"application/json"
],
"parameters":[
{
"name":"host",
"description":"The host name",
"required":true,
"allowMultiple":false,
"type":"string",
"paramType":"query"
}
]
}
]
},
{
"path":"/snitch/rack",
"operations":[
{
"method":"GET",
"summary":"Provides the Rack name depending on the respective snitch used, given the host name/ip",
"type":"string",
"nickname":"get_rack",
"produces":[
"application/json"
],
"parameters":[
{
"name":"host",
"description":"The host name",
"required":true,
"allowMultiple":false,
"type":"string",
"paramType":"query"
}
]
}
]
},
{
"path":"/snitch/name",
"operations":[
{
"method":"GET",
"summary":"Provides the snitch name of the cluster",
"type":"string",
"nickname":"get_snitch_name",
"produces":[
"application/json"
],
"parameters":[
]
}
]
}
]
}