OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
updated API spec documentation texts
Eric Schubert914773fa800a
diff --git a/docs/api/apiv3/components/schemas/file_link_origin_data_model.yml b/docs/api/apiv3/components/schemas/file_link_origin_data_model.ymlindex 6354f17faf3..537127e7dc6 100644--- a/docs/api/apiv3/components/schemas/file_link_origin_data_model.yml+++ b/docs/api/apiv3/components/schemas/file_link_origin_data_model.yml@@ -4,11 +4,6 @@ type: objectrequired:- id- name- - mimeType- - createdAt- - lastModifiedAt- - createdByName- - lastModifiedByNameproperties:id:type: string@@ -19,7 +14,11 @@ properties:mimeType:type: stringminLength: 0- description: MIME type of the linked file+ 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+ an unknown MIME type.createdAt:type: stringformat: date-timediff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex 0b70eb38270..03a1ad2ea6d 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -780,6 +780,7 @@ tags:- "$ref": "./tags/custom_actions.yml"- "$ref": "./tags/custom_options.yml"- "$ref": "./tags/documents.yml"+ - "$ref": "./tags/file_links.yml"- "$ref": "./tags/grids.yml"- "$ref": "./tags/groups.yml"- "$ref": "./tags/help_texts.yml"diff --git a/docs/api/apiv3/paths/work_package_file_links.yml b/docs/api/apiv3/paths/work_package_file_links.ymlindex 19a12b2e922..e9342eb22be 100644--- a/docs/api/apiv3/paths/work_package_file_links.yml+++ b/docs/api/apiv3/paths/work_package_file_links.yml@@ -9,17 +9,17 @@ post:description: |-Creates file links on a work package.- The request body must contain the generated storage token, and not the storage id. In addition, the request must- send the origin file id, name, and mime type.+ The request is interpreted as a bulk insert, where every element of the collection is validated separately. Each+ element contains the origin meta data and a link to the storage, the file link is about to point to. The storage+ link an be provided as an resource link with id or as the host url.- The request should also send the origin meta data: _createdAt_, _createdByName_, _lastModifiedAt_,- _lastModifiedByName_. As it is possible to link folders from a storage to a work package, the _mimeType_ of this- entity can be empty.+ 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 handled as unknown. To link a+ folder, the custom mime type `inode/directory` MUST be used.- Up to 20 file links can be submitted at once. If there is already a link on the given work package with the same- file id from the same storage, the previous data is not overwritten.+ Up to 20 file links can be submitted at once.- If some data is invalid, no file links will be created.+ If any element data is invalid, no file links will be created.If a file link with matching origin id, work package, and storage already exists, then it will not create anadditional file link or update the metadata. Instead the information from the existing file line will be returned.