Merge pull request #11106 from opf/chore/amend-api-docs-for-custom-dir-mimetype

[chore] amend api docs with correct folder mimetype
pull/11112/head
Eric Schubert 2 years ago committed by GitHub
commit 26ac4a0b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/api/apiv3/components/schemas/file_link_origin_data_model.yml
  2. 2
      docs/api/apiv3/paths/work_package_file_links.yml

@ -17,7 +17,7 @@ properties:
description: |-
MIME type of the linked file.
To link a folder entity, the custom MIME type `inode/directory` MUST be provided. Otherwise it defaults back to
To link a folder entity, the custom MIME type `application/x-op-directory` MUST be provided. Otherwise it defaults back to
an unknown MIME type.
size:
type: integer

@ -15,7 +15,7 @@ post:
The file's id and name are considered mandatory information. The rest of the origin meta data SHOULD be provided
by the client. The _mimeType_ SHOULD be a standard mime type. An empty mime type will be handled as unknown. To link
a folder, the custom mime type `inode/directory` MUST be used.
a folder, the custom mime type `application/x-op-directory` MUST be used.
Up to 20 file links can be submitted at once.

Loading…
Cancel
Save