/files/<uuid>: expose create_date field

This commit is contained in:
dogeystamp 2023-06-09 16:50:43 -04:00
parent f0717f8164
commit 25980be6a3
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,7 @@ File Schema
In JSON, a file share has the following properties::
{
"create_date": "2023-05-20T23:05:31.546561",
"file_name": "file.txt",
"initialized": true,
"locked": false,
@ -43,6 +44,10 @@ In JSON, a file share has the following properties::
- Type
- Limits
- Description
* - ``create_date``
- Date
- Time at which this share was created.
- Read-only
* - ``file_name``
- String
-

View File

@ -283,6 +283,7 @@ class Share(db.Model):
model = self
share_id = ma.auto_field(dump_only=True)
create_date = ma.auto_field(dump_only=True)
owner_name = ma.auto_field()
file_name = ma.auto_field()
initialized = ma.auto_field(dump_only=True)