Class: API::NpmProjectPackages

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

Constant Summary collapse

ERROR_REASON_TO_HTTP_STATUS_MAPPTING =
{
  ::Packages::Npm::CreatePackageService::ERROR_REASON_INVALID_PARAMETER => 400,
  ::Packages::Npm::CreatePackageService::ERROR_REASON_PACKAGE_EXISTS => 403,
  ::Packages::Npm::CreatePackageService::ERROR_REASON_PACKAGE_LEASE_TAKEN => 400
}.freeze

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