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
Attempts to improve the "attachments" models.
Gunter Ohrner741ad6bf145a
diff --git a/docs/api/apiv3/components/schemas/attachments_model.yml b/docs/api/apiv3/components/schemas/attachments_model.ymlnew file mode 100644index 00000000000..537b25df0a0--- /dev/null+++ b/docs/api/apiv3/components/schemas/attachments_model.yml@@ -0,0 +1,15 @@+# Schema: Attachments+---+type: object+properties:+ _embedded:+ type: object+ properties:+ elements:+ type: array+ readOnly: true+ items:+ allOf:+ - "$ref": "./attachment_model.yml"+ - description: Collection of Attachments+ readOnly: truediff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex 945eb29e728..5288987ea71 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -435,18 +435,8 @@ components:"$ref": "./components/schemas/activity_model.yml"AttachmentModel:"$ref": "./components/schemas/attachment_model.yml"- Attachments_by_post:- "$ref": "./components/schemas/attachments_by_post.yml"- Attachments_by_postModel:- "$ref": "./components/schemas/attachments_by_post_model.yml"- Attachments_by_wiki_page:- "$ref": "./components/schemas/attachments_by_wiki_page.yml"- Attachments_by_wiki_pageModel:- "$ref": "./components/schemas/attachments_by_wiki_page_model.yml"- Attachments_by_work_package:- "$ref": "./components/schemas/attachments_by_work_package.yml"- Attachments_by_work_packageModel:- "$ref": "./components/schemas/attachments_by_work_package_model.yml"+ Attachments_Model:+ "$ref": "./components/schemas/attachments_model.yml"Available_AssigneesModel:"$ref": "./components/schemas/available_assignees_model.yml"Available_ResponsiblesModel:diff --git a/docs/api/apiv3/paths/post_attachments.yml b/docs/api/apiv3/paths/post_attachments.ymlindex 3ac949dab16..d77c447bcf3 100644--- a/docs/api/apiv3/paths/post_attachments.yml+++ b/docs/api/apiv3/paths/post_attachments.yml@@ -53,7 +53,7 @@ get:count: 1total: 1schema:- "$ref": "../components/schemas/attachments_by_post_model.yml"+ "$ref": "../components/schemas/attachments_model.yml"description: OKheaders: {}'404':diff --git a/docs/api/apiv3/paths/wiki_page_attachments.yml b/docs/api/apiv3/paths/wiki_page_attachments.ymlindex 46c6b2f49e1..6d63d7ba64f 100644--- a/docs/api/apiv3/paths/wiki_page_attachments.yml+++ b/docs/api/apiv3/paths/wiki_page_attachments.yml@@ -53,7 +53,7 @@ get:count: 1total: 1schema:- "$ref": "../components/schemas/attachments_by_wiki_page_model.yml"+ "$ref": "../components/schemas/attachments_model.yml"description: OKheaders: {}'404':diff --git a/docs/api/apiv3/paths/work_package_attachments.yml b/docs/api/apiv3/paths/work_package_attachments.ymlindex 7bac2b2339e..1cf9e38aa8b 100644--- a/docs/api/apiv3/paths/work_package_attachments.yml+++ b/docs/api/apiv3/paths/work_package_attachments.yml@@ -14,7 +14,7 @@ get:content:application/hal+json:schema:- "$ref": "../components/schemas/attachments_by_work_package_model.yml"+ "$ref": "../components/schemas/attachments_model.yml"description: OKheaders: {}'404':