Class: API::API

Inherits:
Grape::API::Instance
  • 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$/]

Method Summary

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?