In swagger 1.2 int is defined as int32. We originally used int following the jmx definition, in practice internally we use uint and int64 in many places. While the API format the type correctly, an external system that uses swagger-based code generator can face a type issue problem. This patch replace all use of int in a return type with long that is defined as int64. Changing the return type, have no impact on the system, but it does help external systems that use code generator from swagger. Fixes #5347 Signed-off-by: Amnon Heiman <amnon@scylladb.com>
146 lines
4.0 KiB
JSON
146 lines
4.0 KiB
JSON
{
|
|
"apiVersion":"0.0.1",
|
|
"swaggerVersion":"1.2",
|
|
"basePath":"{{Protocol}}://{{Host}}",
|
|
"resourcePath":"/hinted_hand_off_manager",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"apis":[
|
|
{
|
|
"path":"/hinted_handoff/hints",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"List all the endpoints that this node has hints for.",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"string"
|
|
},
|
|
"nickname":"list_endpoints_pending_hints",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
]
|
|
},
|
|
{
|
|
"method":"DELETE",
|
|
"summary":"Truncate all the hints",
|
|
"type":"void",
|
|
"nickname":"truncate_all_hints",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
{
|
|
"name":"host",
|
|
"description":"Optional String rep. of endpoint address to delete hints for",
|
|
"required":false,
|
|
"allowMultiple":false,
|
|
"type":"string",
|
|
"paramType":"query"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/hinted_handoff/schedule",
|
|
"operations":[
|
|
{
|
|
"method":"POST",
|
|
"summary":"force hint delivery to an endpoint",
|
|
"type":"void",
|
|
"nickname":"schedule_hint_delivery",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
{
|
|
"name":"host",
|
|
"description":" String rep. of endpoint address",
|
|
"required":true,
|
|
"allowMultiple":false,
|
|
"type":"string",
|
|
"paramType":"query"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/hinted_handoff/pause",
|
|
"operations":[
|
|
{
|
|
"method":"POST",
|
|
"summary":"pause hints delivery",
|
|
"type":"void",
|
|
"nickname":"pause_hints_delivery",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
{
|
|
"name":"pause",
|
|
"description":"pause status",
|
|
"required":true,
|
|
"allowMultiple":false,
|
|
"type":"boolean",
|
|
"paramType":"query"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path": "/hinted_handoff/metrics/create_hint/{addr}",
|
|
"operations": [
|
|
{
|
|
"method": "GET",
|
|
"summary": "Get create hint count",
|
|
"type": "long",
|
|
"nickname": "get_create_hint_count",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "addr",
|
|
"description": "The peer address",
|
|
"required": true,
|
|
"allowMultiple": false,
|
|
"type": "string",
|
|
"paramType": "path"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path": "/hinted_handoff/metrics/not_stored_hints/{addr}",
|
|
"operations": [
|
|
{
|
|
"method": "GET",
|
|
"summary": "Get not stored hints count",
|
|
"type": "long",
|
|
"nickname": "get_not_stored_hints_count",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "addr",
|
|
"description": "The peer address",
|
|
"required": true,
|
|
"allowMultiple": false,
|
|
"type": "string",
|
|
"paramType": "path"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|