Skip to content
Snippets Groups Projects
Commit 9716bd34 authored by Sean McGivern's avatar Sean McGivern Committed by Stan Hu
Browse files

Use API::Base as base class for all API resources

This is the result of auto-correcting API/Base.
parent 50295e65
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 21 deletions
Loading
Loading
@@ -19,7 +19,7 @@ gem 'default_value_for', '~> 3.3.0'
gem 'pg', '~> 1.1'
 
gem 'rugged', '~> 0.28'
gem 'grape-path-helpers', '~> 1.3'
gem 'grape-path-helpers', '~> 1.4'
 
gem 'faraday', '~> 1.0'
gem 'marginalia', '~> 1.9.0'
Loading
Loading
Loading
Loading
@@ -495,7 +495,7 @@ GEM
grape-entity (0.7.1)
activesupport (>= 4.0)
multi_json (>= 1.3.2)
grape-path-helpers (1.3.0)
grape-path-helpers (1.4.0)
activesupport
grape (~> 1.3)
rake (~> 12)
Loading
Loading
@@ -1348,7 +1348,7 @@ DEPENDENCIES
gpgme (~> 2.0.19)
grape (= 1.4.0)
grape-entity (~> 0.7.1)
grape-path-helpers (~> 1.3)
grape-path-helpers (~> 1.4)
grape_logging (~> 1.7)
graphiql-rails (~> 1.4.10)
graphql (~> 1.11.4)
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
 
module API
module Analytics
class CodeReviewAnalytics < Grape::API::Instance
class CodeReviewAnalytics < ::API::Base
include PaginationParams
 
helpers do
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
 
module API
module Analytics
class GroupActivityAnalytics < Grape::API::Instance
class GroupActivityAnalytics < ::API::Base
DESCRIPTION_DETAIL =
'This feature is gated by the `:group_activity_analytics`'\
' feature flag, introduced in GitLab 12.9.'
Loading
Loading
# frozen_string_literal: true
 
module API
class AuditEvents < ::Grape::API::Instance
class AuditEvents < ::API::Base
include ::API::PaginationParams
 
before do
Loading
Loading
# frozen_string_literal: true
 
module API
class Dependencies < Grape::API::Instance
class Dependencies < ::API::Base
helpers do
def dependencies_by(params)
pipeline = ::Security::ReportFetchService.new(user_project, ::Ci::JobArtifact.dependency_list_reports).pipeline
Loading
Loading
# frozen_string_literal: true
 
module API
class DependencyProxy < Grape::API::Instance
class DependencyProxy < ::API::Base
helpers ::API::Helpers::PackagesHelpers
 
helpers do
Loading
Loading
# frozen_string_literal: true
 
module API
class ElasticsearchIndexedNamespaces < Grape::API::Instance
class ElasticsearchIndexedNamespaces < ::API::Base
before { authenticated_as_admin! }
 
resource :elasticsearch_indexed_namespaces do
Loading
Loading
# frozen_string_literal: true
 
module API
class EpicIssues < Grape::API::Instance
class EpicIssues < ::API::Base
before do
authenticate!
authorize_epics_feature!
Loading
Loading
# frozen_string_literal: true
 
module API
class EpicLinks < Grape::API::Instance
class EpicLinks < ::API::Base
include ::Gitlab::Utils::StrongMemoize
 
before do
Loading
Loading
# frozen_string_literal: true
 
module API
class Epics < Grape::API::Instance
class Epics < ::API::Base
include PaginationParams
 
before do
Loading
Loading
Loading
Loading
@@ -3,7 +3,7 @@
require 'base64'
 
module API
class Geo < Grape::API::Instance
class Geo < ::API::Base
resource :geo do
helpers do
def sanitized_node_status_params
Loading
Loading
# frozen_string_literal: true
 
module API
class GeoNodes < Grape::API::Instance
class GeoNodes < ::API::Base
include PaginationParams
include APIGuard
include ::Gitlab::Utils::StrongMemoize
Loading
Loading
# frozen_string_literal: true
 
module API
class GeoReplication < Grape::API::Instance
class GeoReplication < ::API::Base
include PaginationParams
include APIGuard
include ::Gitlab::Utils::StrongMemoize
Loading
Loading
# frozen_string_literal: true
 
module API
class GroupHooks < Grape::API::Instance
class GroupHooks < ::API::Base
include ::API::PaginationParams
 
before { authenticate! }
Loading
Loading
# frozen_string_literal: true
 
module API
class GroupPushRule < Grape::API::Instance
class GroupPushRule < ::API::Base
before { authenticate! }
before { check_group_push_rule_access! }
before { authorize_change_param(user_group, :commit_committer_check, :reject_unsigned_commits) }
Loading
Loading
# frozen_string_literal: true
 
module API
class Ldap < Grape::API::Instance
class Ldap < ::API::Base
# Admin users by default should be able to access these API endpoints.
# However, non-admin users can access these endpoints if the "Allow group
# owners to manage LDAP-related group settings" is enabled, and they own a
Loading
Loading
# frozen_string_literal: true
 
module API
class LdapGroupLinks < Grape::API::Instance
class LdapGroupLinks < ::API::Base
before { authenticate! }
 
params do
Loading
Loading
# frozen_string_literal: true
 
module API
class License < Grape::API::Instance
class License < ::API::Base
before { authenticated_as_admin! }
 
resource :license do
Loading
Loading
# frozen_string_literal: true
 
module API
class ManagedLicenses < Grape::API::Instance
class ManagedLicenses < ::API::Base
include PaginationParams
 
before { authenticate! unless route.settings[:skip_authentication] }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment