From 626e79b6f5ed18e1d023643d3e4b85dc4f20286c Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Mon, 6 Feb 2017 16:54:30 +0100 Subject: Split V3 entities into a separate file --- lib/api/entities.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/api/entities.rb') diff --git a/lib/api/entities.rb b/lib/api/entities.rb index d296fbb9313..5d7b8e021bb 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -694,19 +694,5 @@ module API expose :id, :message, :starts_at, :ends_at, :color, :font expose :active?, as: :active end - - # Entities for the deprecated V3 API - class ProjectSnippetV3 < Grape::Entity - expose :id, :title, :file_name - expose :author, using: Entities::UserBasic - expose :updated_at, :created_at - - # TODO (rspeicher): Deprecated; remove in 9.0 - expose(:expires_at) { |snippet| nil } - - expose :web_url do |snippet, options| - Gitlab::UrlBuilder.build(snippet) - end - end end end -- cgit v1.2.1