Class: API::API
- Includes:
- APIGuard, Helpers::OpenApi
- Defined in:
- lib/api/api.rb
Defined Under Namespace
Classes: MovedPermanentlyError
Constant Summary collapse
- LOG_FILENAME =
Rails.root.join("log", "api_json.log")
- NO_SLASH_URL_PART_REGEX =
%r{[^/]+}
- 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
- LOGGER =
Logger.new(LOG_FILENAME)
Constants included from Gitlab::EndpointAttributes
Gitlab::EndpointAttributes::DEFAULT_URGENCY
Method Summary
Methods inherited from Base
endpoint_id_for_route, feature_category_for_app, path_for_app, route, urgency_for_app