/files/<uuid>: expose create_date field
This commit is contained in:
parent
f0717f8164
commit
25980be6a3
@ -28,6 +28,7 @@ File Schema
|
|||||||
In JSON, a file share has the following properties::
|
In JSON, a file share has the following properties::
|
||||||
|
|
||||||
{
|
{
|
||||||
|
"create_date": "2023-05-20T23:05:31.546561",
|
||||||
"file_name": "file.txt",
|
"file_name": "file.txt",
|
||||||
"initialized": true,
|
"initialized": true,
|
||||||
"locked": false,
|
"locked": false,
|
||||||
@ -43,6 +44,10 @@ In JSON, a file share has the following properties::
|
|||||||
- Type
|
- Type
|
||||||
- Limits
|
- Limits
|
||||||
- Description
|
- Description
|
||||||
|
* - ``create_date``
|
||||||
|
- Date
|
||||||
|
- Time at which this share was created.
|
||||||
|
- Read-only
|
||||||
* - ``file_name``
|
* - ``file_name``
|
||||||
- String
|
- String
|
||||||
-
|
-
|
||||||
|
@ -283,6 +283,7 @@ class Share(db.Model):
|
|||||||
model = self
|
model = self
|
||||||
|
|
||||||
share_id = ma.auto_field(dump_only=True)
|
share_id = ma.auto_field(dump_only=True)
|
||||||
|
create_date = ma.auto_field(dump_only=True)
|
||||||
owner_name = ma.auto_field()
|
owner_name = ma.auto_field()
|
||||||
file_name = ma.auto_field()
|
file_name = ma.auto_field()
|
||||||
initialized = ma.auto_field(dump_only=True)
|
initialized = ma.auto_field(dump_only=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user