mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 17:44:58 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user