Class: API::V3::Github

Inherits:
Base
  • Object
show all
Includes:
PaginationParams
Defined in:
lib/api/v3/github.rb

Constant Summary collapse

NO_SLASH_URL_PART_REGEX =
%r{[^/]+}.freeze
ENDPOINT_REQUIREMENTS =
{
  namespace: NO_SLASH_URL_PART_REGEX,
  project: NO_SLASH_URL_PART_REGEX,
  username: NO_SLASH_URL_PART_REGEX
}.freeze
JIRA_DVCS_CLOUD_USER_AGENT =

Used to differentiate Jira Cloud requests from Jira Server requests Jira Cloud user agent format: Jira DVCS Connector Vertigo/version Jira Server user agent format: Jira DVCS Connector/version

'Jira DVCS Connector Vertigo'
GITALY_TIMEOUT_CACHE_KEY =
'api:v3:Gitaly-timeout-cache-key'
GITALY_TIMEOUT_CACHE_EXPIRY =
1.day

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