Skip to content

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

[#40228] fixed PR issues

Eric Schubert51815d70915e
diff --git a/docs/api/apiv3/components/schemas/file_link_model.yml b/docs/api/apiv3/components/schemas/file_link_model.yml
index 49298aa0e90..4c522d32f5b 100644
--- a/docs/api/apiv3/components/schemas/file_link_model.yml
+++ b/docs/api/apiv3/components/schemas/file_link_model.yml
@@ -29,6 +29,7 @@ properties:
$ref: '#/components/schemas/File_Link_Origin_DataModel'
_embedded:
type: object
+ readOnly: true
required:
- storage
- container
@@ -141,14 +142,16 @@ example:
storage:
id: 1337
_type: Storage
- href: https://nextcloud.deathstar.rocks/
+ name: It's no moon
storageType: nextcloud
createdAt: '2021-12-20T13:37:00.211Z'
updatedAt: '2021-12-20T13:37:00.211Z'
_links:
self:
href: /api/v3/storages/1337
- title: storage
+ title: It's no moon
+ origin:
+ href: https://nextcloud.deathstar.rocks/
container:
_type: WorkPackage
_links:
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.yml
index f4bfe297465..6354f17faf3 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
@@ -34,4 +34,3 @@ properties:
lastModifiedByName:
type: string
description: Display name of the author that modified the file on the origin last
-
\ No newline at end of file
diff --git a/docs/api/apiv3/components/schemas/storage_model.yml b/docs/api/apiv3/components/schemas/storage_model.yml
index c6e7700eaf3..d6aad8a6342 100644
--- a/docs/api/apiv3/components/schemas/storage_model.yml
+++ b/docs/api/apiv3/components/schemas/storage_model.yml
@@ -4,7 +4,7 @@ type: object
required:
- id
- _type
- - href
+ - name
- storageType
properties:
id:
@@ -14,10 +14,9 @@ properties:
type: string
enum:
- Storage
- href:
+ name:
type: string
- format: uri
- description: web uri of the storage instance
+ description: Storage name
storageType:
type: string
enum:
@@ -36,24 +35,32 @@ properties:
type: object
required:
- self
+ - href
properties:
self:
allOf:
- $ref: './link.yml'
- description: |-
- This storage resource
+ This storage resource. Contains the user defined storage name as title.
**Resource**: Storage
+ origin:
+ allOf:
+ - $ref: './link.yml'
+ - description: |-
+ Web uri of the storage instance
+
+ **Resource**: N/A
example:
id: 1337
_type: Storage
- href: https://nextcloud.deathstar.rocks/
+ name: It's no moon
storageType: nextcloud
createdAt: '2021-12-20T13:37:00.211Z'
updatedAt: '2021-12-20T13:37:00.211Z'
_links:
self:
href: /api/v3/storages/1337
- title: storage
-
-
\ No newline at end of file
+ title: It's no moon
+ origin:
+ href: https://nextcloud.deathstar.rocks/
diff --git a/docs/api/apiv3/paths/work_package_file_links.yml b/docs/api/apiv3/paths/work_package_file_links.yml
index e2f7f5a9c7b..91020442253 100644
--- a/docs/api/apiv3/paths/work_package_file_links.yml
+++ b/docs/api/apiv3/paths/work_package_file_links.yml
@@ -69,7 +69,6 @@ post:
_links:
storageUrl:
href: https://nextcloud.deathstar.rocks/
- title: Link to storage
responses:
'201':