Skip to content

Commit

Permalink
feat(swagger): scylla, add read barier endpoint
Browse files Browse the repository at this point in the history
This adds scylla read barier api [endpoint](https://github.com/scylladb/scylladb/blob/6efde20939d072406b6e80a7ece1026134b0268a/api/api-doc/raft.json#L66-L97) which will be used in a backup process.
  • Loading branch information
VAveryanov8 committed Nov 12, 2024
1 parent bd6d131 commit 0e1ca70
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 0 deletions.
37 changes: 37 additions & 0 deletions v3/swagger/gen/scylla/v1/client/operations/operations_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions v3/swagger/scylla_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -12862,6 +12862,47 @@
},
"security": []
}
},
"/raft/read_barrier": {
"post": {
"description": "Triggers read barrier for the given Raft group to wait for previously committed commands in this group to be applied locally. For example, can be used on group 0 to wait for the node to obtain latest schema changes.",
"summary": "read_barrier",
"operationId": "RaftReadBarrierPost",
"deprecated": false,
"produces": [
"application/json"
],
"parameters": [
{
"name": "group_id",
"in": "query",
"required": false,
"type": "string",
"description": "The ID of the group. When absent, group0 is used."
},
{
"name": "timeout",
"in": "query",
"required": false,
"type": "integer",
"format": "int64",
"description": "Timeout in seconds after which the endpoint returns a failure. If not provided, 60s is used."
}
],
"responses": {
"200": {
"description": "Success",
"headers": {}
},
"default": {
"description": "internal server error",
"schema": {
"$ref": "#/definitions/ErrorModel"
}
}
},
"security": []
}
}
},
"definitions": {
Expand Down

0 comments on commit 0e1ca70

Please sign in to comment.