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
[#42161] added additional link to file link model
Eric Schubert4e43a4d6c244
diff --git a/.redocly.lint-ignore.yaml b/.redocly.lint-ignore.yamlindex 03cef18077f..b35c6a3b16d 100644--- a/.redocly.lint-ignore.yaml+++ b/.redocly.lint-ignore.yaml@@ -5,4 +5,5 @@ tmp/oas-generated.yml:- '#/paths/~1api~1v3~1work_packages~1{id}~1relations/get/responses'- '#/paths/~1api~1v3~1file_links~1{file_link_id}~1open/get/responses'operation-4xx-response:+ - '#/paths/~1api~1v3/get/responses'- '#/paths/~1api~1v3~1work_packages~1{id}~1relations/get/responses'diff --git a/docs/api/apiv3/components/schemas/file_link_read_model.yml b/docs/api/apiv3/components/schemas/file_link_read_model.ymlindex f14ea33f8a7..5c740ff93b0 100644--- a/docs/api/apiv3/components/schemas/file_link_read_model.yml+++ b/docs/api/apiv3/components/schemas/file_link_read_model.yml@@ -42,6 +42,8 @@ properties:- creator- originOpen- staticOriginOpen+ - originOpenLocation+ - staticOriginOpenLocationproperties:self:allOf:@@ -93,6 +95,20 @@ properties:- description: |-A static uri to open the origin file on the storage. Responds with a redirect.+ **Resource**: N/A+ originOpenLocation:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The uri to open the location of origin file on the origin itself.++ **Resource**: N/A+ staticOriginOpenLocation:+ allOf:+ - $ref: './link.yml'+ - description: |-+ A static uri to open the location of the origin file on the storage. Responds with a redirect.+**Resource**: N/Aexample:@@ -162,8 +178,14 @@ example:href: /api/v3/work_package/17/file_links/1337title: file link delete APIoriginOpen:- href: https://nextcloud.deathstar.rocks/index.php/f?fileid=5503+ href: https://nextcloud.deathstar.rocks/index.php/f?fileid=5503openfile=1title: file openstaticOriginOpen:href: /api/v3/work_package/17/file_links/1337/opentitle: file open+ originOpenLocation:+ href: https://nextcloud.deathstar.rocks/index.php/f?fileid=5503&openfile=0+ title: file open+ staticOriginOpenLocation:+ href: /api/v3/work_package/17/file_links/1337/open?location=true+ title: file opendiff --git a/docs/api/apiv3/components/schemas/root_model.yml b/docs/api/apiv3/components/schemas/root_model.ymlindex 8d3177d74e3..fb060c3ccc6 100644--- a/docs/api/apiv3/components/schemas/root_model.yml+++ b/docs/api/apiv3/components/schemas/root_model.yml@@ -1,11 +1,18 @@# Schema: RootModel---type: object+required:+ - _type+ - instanceName+ - _linksproperties:+ _type:+ type: string+ enum:+ - RootinstanceName:type: stringdescription: The name of the OpenProject instance- readOnly: truecoreVersion:type: stringdescription: |-@@ -14,26 +21,124 @@ properties:# Conditions**Permission** requires admin privileges+ _links:+ type: object+ required:+ - self+ - configuration+ - memberships+ - priorities+ - relations+ - statuses+ - time_entries+ - types+ - user+ - userPreferences+ - workPackages+ properties:+ self:+ allOf:+ - $ref: './link.yml'+ - description: |-+ This root information object.++ **Resource**: Root+ configuration:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The configuration resource.++ **Resource**: Configuration+ memberships:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The collection of memberships.++ **Resource**: Collection+ priorities:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The collection of priorities.++ **Resource**: Collection+ relations:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The collection of relations.++ **Resource**: Collection+ statuses:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The collection of statuses.++ **Resource**: Collection+ time_entries:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The collection of time entries.++ **Resource**: Collection+ types:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The collection of types.++ **Resource**: Collection+ user:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The current user resource.++ **Resource**: User+ userPreferences:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The current user preferences resource.++ **Resource**: UserPreferences+ workPackages:+ allOf:+ - $ref: './link.yml'+ - description: |-+ The work package collection.++ **Resource**: Collection+example:+ _type: Root+ instanceName: OpenProject+ coreVersion: 12.1.0_links:+ self:+ href: '/api/v3'configuration:- href: "/api/v3/configuration"- user:- href: "/api/v3/users/1"- title: John Sheppard- userPreferences:- href: "/api/v3/my_preferences"+ href: '/api/v3/configuration'+ memberships:+ href: '/api/v3/memberships'priorities:- href: "/api/v3/priorities"+ href: '/api/v3/priorities'relations:- href: "/api/v3/relations"+ href: '/api/v3/relations'statuses:- href: "/api/v3/statuses"+ href: '/api/v3/statuses'+ time_entries:+ href: '/api/v3/time_entries'types:- href: "/api/v3/types"+ href: '/api/v3/types'+ user:+ href: '/api/v3/users/3'+ title: Anakin Skywalker+ userPreferences:+ href: '/api/v3/users/3/preferences'workPackages:- href: "/api/v3/work_packages"- users:- href: "/api/v3/users"- instanceName: My own OpenProject- coreVersion: 10.3.0+ href: '/pi/v3/work_packages'diff --git a/docs/api/apiv3/paths/file_link_open.yml b/docs/api/apiv3/paths/file_link_open.ymlindex a9a013bcf97..c05047ad8a8 100644--- a/docs/api/apiv3/paths/file_link_open.yml+++ b/docs/api/apiv3/paths/file_link_open.yml@@ -17,6 +17,13 @@ get:schema:type: integerexample: 42+ - name: location+ description: Boolean flag indicating, if the file should be opened directly or rather the directory location.+ in: query+ required: false+ schema:+ type: boolean+ example: trueresponses:'303':headers:diff --git a/docs/api/apiv3/paths/root.yml b/docs/api/apiv3/paths/root.ymlindex 8197ac6ad5e..d8ce9fd4c5d 100644--- a/docs/api/apiv3/paths/root.yml+++ b/docs/api/apiv3/paths/root.yml@@ -1,41 +1,16 @@# /api/v3---get:+ summary: View root+ operationId: view_root+ description: |-+ Returns the root resource, containing basic information about the server instance and a collection of useful links.+ tags:+ - Rootresponses:'200':+ description: OKcontent:application/hal+json:- examples:- response:- value:- _links:- configuration:- href: "/api/v3/configuration"- priorities:- href: "/api/v3/priorities"- relations:- href: "/api/v3/relations"- statuses:- href: "/api/v3/statuses"- types:- href: "/api/v3/types"- user:- href: "/api/v3/users/1"- title: John Sheppard- userPreferences:- href: "/api/v3/my_preferences"- users:- href: "/api/v3/users"- workPackages:- href: "/api/v3/work_packages"- coreVersion: 10.3.0- instanceName: My own OpenProjectschema:- "$ref": "../components/schemas/root_model.yml"- description: OK- headers: {}- tags:- - Root- description: ''- operationId: View_root- summary: View root+ $ref: '../components/schemas/root_model.yml'