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
[#42552] added new link to storage ressource
Eric Schubert4bb653915d05
diff --git a/docs/api/apiv3/components/schemas/live_file_link_collection_model.yml b/docs/api/apiv3/components/schemas/live_file_link_collection_model.ymlindex 4cb053cb874..4f61c70c456 100644--- a/docs/api/apiv3/components/schemas/live_file_link_collection_model.yml+++ b/docs/api/apiv3/components/schemas/live_file_link_collection_model.yml@@ -32,25 +32,26 @@ allOf:allOf:- $ref: "./link.yml"- description: |-- The urn of the storage connection state.+ The urn of the storage connection state. Can be one of:- Can be one of:-- - connected- - missing authentication- - failed authentication- - connection error+ - urn:openproject-org:api:v3:storages:connection:connected+ - urn:openproject-org:api:v3:storages:connection:missing-authentication+ - urn:openproject-org:api:v3:storages:connection:failed-authentication+ - urn:openproject-org:api:v3:storages:connection:error**Resource**: N/A_embedded:type: objectrequired:- elements+ - storageproperties:elements:type: arrayitems:$ref: './live_file_link_model.yml'+ storage:+ $ref: './storage_model.yml'example:_type: Collection@@ -60,6 +61,21 @@ example:self:href: '/api/v3/work_packages/42/file_links'_embedded:+ storage:+ id: 42+ _type: Storage+ name: It's no moon+ createdAt: '2021-12-20T13:37:00.211Z'+ updatedAt: '2021-12-20T13:37:00.211Z'+ _links:+ self:+ href: /api/v3/storages/42+ title: It's no moon+ type:+ href: urn:openproject-org:api:v3:storages:nextcloud+ title: Nextcloud+ origin:+ href: https://nextcloud.deathstar.rocks/elements:- id: 1337_type: FileLink@@ -80,7 +96,7 @@ example:title: file linkstorage:href: /api/v3/storage/42- title: storage+ title: It's no mooncontainer:href: /api/v3/work_package/17title: work package@@ -94,5 +110,8 @@ example:href: https://nextcloud.deathstar.rocks/index.php/f?fileid=5503staticOriginOpen:href: /api/v3/work_package/17/file_links/1337/open+ permission:+ href: urn:openproject-org:api:v3:file-links:permission:not-allowed+ title: Not Allowed- _hint: File Link resource shortened for brevityid: 1338diff --git a/docs/api/apiv3/components/schemas/storage_model.yml b/docs/api/apiv3/components/schemas/storage_model.ymlindex cb861594b78..b369102b478 100644--- a/docs/api/apiv3/components/schemas/storage_model.yml+++ b/docs/api/apiv3/components/schemas/storage_model.yml@@ -30,7 +30,8 @@ properties:required:- self- type- - href+ - origin+ - liveFileLinksproperties:self:allOf:@@ -53,6 +54,13 @@ properties:Web uri of the storage instance**Resource**: N/A+ liveFileLinks:+ allOf:+ - $ref: './link.yml'+ - description: |-+ A templated link to fetch the file links with live data for a given container.++ **Resource**: LiveFileLinkCollectionexample:id: 1337_type: Storage@@ -68,3 +76,6 @@ example:title: Nextcloudorigin:href: https://nextcloud.deathstar.rocks/+ liveFileLinks:+ href: '/api/v3/storages/1337/file_links?filters=[{"container_id":{"operator":"=","values":["%{container_id}"]}},{"container_type":{"operator":"=","values":["%{container_type}"]}}]'+ templated: truediff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex 64d75399d61..5bd466aeae2 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -594,6 +594,10 @@ components:"$ref": "./components/schemas/list_projects_by_version_model.yml"List_time_entriesModel:"$ref": "./components/schemas/list_time_entries_model.yml"+ LiveFileLinkCollectionModel:+ "$ref": "./components/schemas/live_file_link_collection_model.yml"+ LiveFileLinkModel:+ "$ref": "./components/schemas/live_file_link_model.yml"Lock_user:"$ref": "./components/schemas/lock_user.yml"Markdown: