Skip to content

Commit d63701c

Browse files
authored
Merge pull request #29033 from nvartolomei/nv/api-doc-recovery
admin: update shadow indexing api doc
2 parents 6aa164c + 833b7c2 commit d63701c

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

src/v/redpanda/admin/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ seastar_cc_swagger_library(
6868
seastar_cc_swagger_library(
6969
name = "shadow_indexing",
7070
src = "api-doc/shadow_indexing.json",
71+
definitions = [
72+
"api-doc/shadow_indexing.def.json",
73+
],
7174
)
7275

7376
seastar_cc_swagger_library(
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"automated_recovery_request_body": {
2+
"description": "Request body for initializing a cluster recovery",
3+
"type": "object",
4+
"properties": {
5+
"cluster_uuid_override": {
6+
"description": "Optional cluster uuid to recover. If not provided, will auto-discover the manifest with highest sequence number.",
7+
"type": "string",
8+
"format": "uuid"
9+
}
10+
},
11+
"additionalProperties": false
12+
}

src/v/redpanda/admin/api-doc/shadow_indexing.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@
4848
"nickname": "initialize_cluster_recovery",
4949
"parameters": [
5050
{
51-
"name": "body",
52-
"paramType": "body",
53-
"required": false
51+
"in": "body",
52+
"required": false,
53+
"schema": {
54+
"$ref": "#/definitions/automated_recovery_request_body"
55+
}
5456
}
5557
],
5658
"responseMessages": [
@@ -644,4 +646,4 @@
644646
}
645647
}
646648
}
647-
}
649+
}

0 commit comments

Comments
 (0)