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

added missing prepare endpoints for budgets and documents (direct uploads)

Markus Kahlcaa4bd14c21c
diff --git a/modules/budgets/lib/api/v3/attachments/attachments_by_budget_api.rb b/modules/budgets/lib/api/v3/attachments/attachments_by_budget_api.rb
index 4b68c16fb42..c3d743c3c34 100644
--- a/modules/budgets/lib/api/v3/attachments/attachments_by_budget_api.rb
+++ b/modules/budgets/lib/api/v3/attachments/attachments_by_budget_api.rb
@@ -45,6 +45,10 @@ module API
get &API::V3::Attachments::AttachmentsByContainerAPI.read
post &API::V3::Attachments::AttachmentsByContainerAPI.create
+
+ namespace :prepare do
+ post &API::V3::Attachments::AttachmentsByContainerAPI.prepare
+ end
end
end
end
diff --git a/modules/documents/lib/api/v3/attachments/attachments_by_document_api.rb b/modules/documents/lib/api/v3/attachments/attachments_by_document_api.rb
index b4fa7c4fb64..1e69f49c512 100644
--- a/modules/documents/lib/api/v3/attachments/attachments_by_document_api.rb
+++ b/modules/documents/lib/api/v3/attachments/attachments_by_document_api.rb
@@ -45,6 +45,10 @@ module API
get &API::V3::Attachments::AttachmentsByContainerAPI.read
post &API::V3::Attachments::AttachmentsByContainerAPI.create
+
+ namespace :prepare do
+ post &API::V3::Attachments::AttachmentsByContainerAPI.prepare
+ end
end
end
end