Return info about original files in item detail

This adds data to the current rest api.
This commit is contained in:
Eike Kettner
2020-02-23 14:25:32 +01:00
parent ec419c7bfd
commit 957073fe62
4 changed files with 63 additions and 5 deletions

View File

@ -1844,6 +1844,7 @@ components:
- created
- updated
- attachments
- sources
- tags
properties:
id:
@ -1890,6 +1891,10 @@ components:
type: array
items:
$ref: "#/components/schemas/Attachment"
sources:
type: array
items:
$ref: "#/components/schemas/AttachmentSource"
tags:
type: array
items:
@ -1901,6 +1906,7 @@ components:
- id
- size
- contentType
- converted
properties:
id:
type: string
@ -1913,6 +1919,29 @@ components:
contentType:
type: string
format: mimetype
converted:
type: boolean
AttachmentSource:
description: |
The source or original file of an attachment.
required:
- id
- size
- contentType
properties:
id:
type: string
format: ident
description: |
The id is the attachment id.
name:
type: string
size:
type: integer
format: int64
contentType:
type: string
format: mimetype
Registration:
description: |
Data for registering a new account.