Files
scylladb/api/api-doc/gossiper.json
Amnon Heiman 313074c980 API: Add the gossiper API
This holds the swagger definition equivelent to the GossiperMBean API.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-05-25 18:28:47 +03:00

129 lines
3.7 KiB
JSON

{
"apiVersion":"0.0.1",
"swaggerVersion":"1.2",
"basePath":"{{Protocol}}://{{Host}}",
"resourcePath":"/gossiper",
"produces":[
"application/json"
],
"apis":[
{
"path":"/gossiper/endpoint/down/",
"operations":[
{
"method":"GET",
"summary":"Get the addreses of the down endpoints",
"type":"array",
"items":{
"type":"string"
},
"nickname":"get_down_endpoint",
"produces":[
"application/json"
],
"parameters":[
]
}
]
},
{
"path":"/gossiper/endpoint/live/",
"operations":[
{
"method":"GET",
"summary":"Get the addreses of live endpoints",
"type":"array",
"items":{
"type":"string"
},
"nickname":"get_live_endpoint",
"produces":[
"application/json"
],
"parameters":[
]
}
]
},
{
"path":"/gossiper/downtime/{addr}",
"operations":[
{
"method":"GET",
"summary":"Get the downtime of an end point",
"type":"long",
"nickname":"get_endpoint_downtime",
"produces":[
"application/json"
],
"parameters":[
{
"name":"addr",
"description":"The endpoint address",
"required":true,
"allowMultiple":false,
"type":"string",
"paramType":"path"
}
]
}
]
},
{
"path":"/gossiper/generation_number/{addr}",
"operations":[
{
"method":"GET",
"summary":"Returns files which are pending for archival attempt. Does NOT include failed archive attempts",
"type":"int",
"nickname":"get_current_generation_number",
"produces":[
"application/json"
],
"parameters":[
{
"name":"addr",
"description":"The endpoint address",
"required":true,
"allowMultiple":false,
"type":"string",
"paramType":"path"
}
]
}
]
},
{
"path":"/gossiper/assassinate/{addr}",
"operations":[
{
"method":"POST",
"summary":"Assassinate an end point",
"type":"void",
"nickname":"assassinate_endpoint",
"produces":[
"application/json"
],
"parameters":[
{
"name":"addr",
"description":"The endpoint address",
"required":true,
"allowMultiple":false,
"type":"string",
"paramType":"path"
},
{
"name":"unsafe",
"description":"Set to True to perform an unsafe assassination",
"required":false,
"allowMultiple":false,
"type":"boolean",
"paramType":"query"
}
]
}
]
}
]
}