signebedi / libreforms-fastapi

FastAPI implementation of the libreForms spec
GNU Affero General Public License v3.0
1 stars 1 forks source link

[api] add support for restoring past versions of forms #225

Open signebedi opened 4 months ago

signebedi commented 4 months ago

I'm realizing the "restore" route can probably just be update document. Do we need to make note of the fact that the document restored a previous version... ?

Originally posted by @signebedi in https://github.com/signebedi/libreforms-fastapi/issues/69#issuecomment-2134094717

signebedi commented 3 months ago

This might actually just be a "update_form" API call with the past form data ... The question should also be: do we add a flag to show that the form has been rolled back to an earlier version?