Class: API::API

Inherits:
Base
  • Object
show all
Includes:
APIGuard
Defined in:
lib/api/api.rb

Constant Summary collapse

LOG_FILENAME =
Rails.root.join("log", "api_json.log")
NO_SLASH_URL_PART_REGEX =
%r{[^/]+}.freeze
NAMESPACE_OR_PROJECT_REQUIREMENTS =
{ id: NO_SLASH_URL_PART_REGEX }.freeze
COMMIT_ENDPOINT_REQUIREMENTS =
NAMESPACE_OR_PROJECT_REQUIREMENTS.merge(sha: NO_SLASH_URL_PART_REGEX).freeze
USER_REQUIREMENTS =
{ user_id: NO_SLASH_URL_PART_REGEX }.freeze
LOG_FILTERS =
::Rails.application.config.filter_parameters + [/^output$/]
LOG_FORMATTER =
Gitlab::GrapeLogging::Formatters::LogrageWithTimestamp.new

Constants included from Gitlab::EndpointAttributes

Gitlab::EndpointAttributes::DEFAULT_URGENCY

Method Summary

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods inherited from Base

endpoint_id_for_route, feature_category_for_app, path_for_app, route, urgency_for_app