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

Remove content API

Oliver Güntherc139f93e70d3
diff --git a/db/migrate/20210615150558_aggregate_journals.rb b/db/migrate/20210615150558_aggregate_journals.rb
index 07dc557c963..769bcd656c6 100644
--- a/db/migrate/20210615150558_aggregate_journals.rb
+++ b/db/migrate/20210615150558_aggregate_journals.rb
@@ -32,8 +32,9 @@ require_relative "migration_utils/utils"
class AggregateJournals < ActiveRecord::Migration[6.1]
include ::Migration::Utils
- # Class has been removed by now
+ # Classes have been removed by now
class WikiContent < ApplicationRecord; end
+ class MeetingContent < ApplicationRecord; end
# Class has been changed in the meantime.
# It received a status enum which's column does not yet exist when this migration runs.
diff --git a/modules/meeting/lib/api/v3/attachments/attachments_by_meeting_content_api.rb b/modules/meeting/lib/api/v3/attachments/attachments_by_meeting_content_api.rb
index 4813568e815..66dc5bdbbb6 100644
--- a/modules/meeting/lib/api/v3/attachments/attachments_by_meeting_content_api.rb
+++ b/modules/meeting/lib/api/v3/attachments/attachments_by_meeting_content_api.rb
@@ -32,23 +32,18 @@ module API
module Attachments
class AttachmentsByMeetingContentAPI < ::API::OpenProjectAPI
resources :attachments do
- helpers API::V3::Attachments::AttachmentsByContainerAPI::Helpers
-
- helpers do
- def container
- meeting_content
- end
-
- def get_attachment_self_path
- api_v3_paths.attachments_by_meeting_content container.id
- end
+ get do
+ status :gone
end
- get &API::V3::Attachments::AttachmentsByContainerAPI.read
- post &API::V3::Attachments::AttachmentsByContainerAPI.create
+ post do
+ status :gone
+ end
namespace :prepare do
- post &API::V3::Attachments::AttachmentsByContainerAPI.prepare
+ post do
+ status :gone
+ end
end
end
end
diff --git a/modules/meeting/lib/api/v3/meetings/meeting_contents_api.rb b/modules/meeting/lib/api/v3/meetings/meeting_contents_api.rb
index e46c74b1180..1d74caadca2 100644
--- a/modules/meeting/lib/api/v3/meetings/meeting_contents_api.rb
+++ b/modules/meeting/lib/api/v3/meetings/meeting_contents_api.rb
@@ -32,20 +32,10 @@ module API
module Meetings
class MeetingContentsAPI < ::API::OpenProjectAPI
resources :meeting_contents do
- helpers do
- def meeting_content
- MeetingContent.find params[:id]
- end
- end
-
route_param :id do
get do
- ::API::V3::MeetingContents::MeetingContentRepresenter.new(
- meeting_content, current_user:, embed_links: true
- )
+ status :gone
end
-
- mount ::API::V3::Attachments::AttachmentsByMeetingContentAPI
end
end
end