Skip to content

Commit 84e0939

Browse files
committed
v28: add /operations/schema_changes route
1 parent 9dcd166 commit 84e0939

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

openapi.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,22 @@ paths:
12631263
application/json:
12641264
schema:
12651265
$ref: "#/components/schemas/HealthStatus"
1266+
/operations/schema_changes:
1267+
get:
1268+
tags:
1269+
- operations
1270+
summary: Get the status of in-progress schema change operations
1271+
description: Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response.
1272+
operationId: getSchemaChanges
1273+
responses:
1274+
'200':
1275+
description: List of schema changes in progress
1276+
content:
1277+
application/json:
1278+
schema:
1279+
type: array
1280+
items:
1281+
$ref: "#/components/schemas/SchemaChangeStatus"
12661282
/operations/snapshot:
12671283
post:
12681284
tags:
@@ -2353,6 +2369,18 @@ components:
23532369
properties:
23542370
ok:
23552371
type: boolean
2372+
SchemaChangeStatus:
2373+
type: object
2374+
properties:
2375+
collection:
2376+
type: string
2377+
description: Name of the collection being modified
2378+
validated_docs:
2379+
type: integer
2380+
description: Number of documents that have been validated
2381+
altered_docs:
2382+
type: integer
2383+
description: Number of documents that have been altered
23562384
SuccessStatus:
23572385
type: object
23582386
required:

0 commit comments

Comments
 (0)