Add restoration functionality for stored object versions

Introduce a service to restore stored object versions along with relevant tests and an API endpoint. This includes database migrations for version relationships, enhancing stored object version tracking.
This commit is contained in:
2024-09-18 12:38:47 +02:00
parent b0e2e65885
commit 5906171041
8 changed files with 351 additions and 2 deletions

View File

@@ -130,3 +130,25 @@ paths:
description: "Unauthorized"
404:
description: "Not found"
/1.0/doc-store/stored-object/restore-from-version/{id}:
post:
tags:
- storedobject
summary: Restore an old version of a stored object
parameters:
- in: path
name: id
required: true
allowEmptyValue: false
description: The id of the stored object version
schema:
type: integer
responses:
200:
description: "OK"
content:
application/json:
schema:
type: object