Skip to content

Commit

Permalink
normalize namespaces in Admin API
Browse files Browse the repository at this point in the history
  • Loading branch information
senid231 committed Nov 17, 2024
1 parent 6ca647a commit fad00a8
Show file tree
Hide file tree
Showing 244 changed files with 820 additions and 956 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::AccountingProfilesController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/area_prefixes_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::AreaPrefixesController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/areas_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::AreasController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/auth_logs_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::AuthLogsController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/auth_profiles_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::AuthProfilesController < Api::Rest::Admin::BaseController
end

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions app/controllers/api/rest/admin/billing/services_controller.rb

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions app/controllers/api/rest/admin/cdr/auth_logs_controller.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class Api::Rest::Admin::Cdr::CdrExportsController < Api::Rest::Admin::BaseController
class Api::Rest::Admin::CdrExportsController < Api::Rest::Admin::BaseController
before_action :find_cdr_export, only: :download

def download
Expand All @@ -19,7 +19,7 @@ def download
private

def find_cdr_export
resource_klass = Api::Rest::Admin::Cdr::CdrExportResource
resource_klass = Api::Rest::Admin::CdrExportResource
key = resource_klass.verify_key(params[:id], context)
@cdr_export = resource_klass.find_by_key(key, context: context)._model
rescue StandardError => e
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class Api::Rest::Admin::Cdr::CdrsController < Api::Rest::Admin::BaseController
class Api::Rest::Admin::CdrsController < Api::Rest::Admin::BaseController
before_action :find_cdr, only: :recording
def recording
if @cdr.has_recording?
Expand All @@ -17,7 +17,7 @@ def recording
private

def find_cdr
resource_klass = Api::Rest::Admin::Cdr::CdrResource
resource_klass = Api::Rest::Admin::CdrResource
key = resource_klass.verify_key(params[:id], context)
@cdr = resource_klass.find_by_key(key, context: context)._model
rescue StandardError => e
Expand Down
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/countries_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::CountriesController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::DestinationNextRatesController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/destinations_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::DestinationsController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::DtmfReceiveModesController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/dtmf_send_modes_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::DtmfSendModesController < Api::Rest::Admin::BaseController
end

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::GatewayDiversionSendModesController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::Equipment::Radius::AuthProfilesController < Api::Rest::Admin::BaseController
class Api::Rest::Admin::GatewayInbandDtmfFilteringModesController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::Billing::InvoiceServiceDataController < Api::Rest::Admin::BaseController
class Api::Rest::Admin::GatewayMediaEncryptionModesController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::GatewayNetworkProtocolPrioritiesController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::GatewayRel100ModesController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::Equipment::GatewayRel100ModesController < Api::Rest::Admin::BaseController
class Api::Rest::Admin::InvoiceOriginatedDestinationsController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::InvoiceOriginatedNetworksController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::InvoiceServiceDataController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/invoice_template_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::InvoiceTemplateController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::Equipment::TransportProtocolsController < Api::Rest::Admin::BaseController
class Api::Rest::Admin::InvoiceTerminatedDestinationsController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::InvoiceTerminatedNetworksController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class Api::Rest::Admin::Billing::InvoicesController < Api::Rest::Admin::BaseController
class Api::Rest::Admin::InvoicesController < Api::Rest::Admin::BaseController
def pdf
doc = ::Billing::InvoiceDocument.find_by(invoice_id: params[:id])
return head 404 if doc.nil? || doc.pdf_data.blank?
Expand Down
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/network_types_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::NetworkTypesController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/networks_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::NetworksController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/numberlist_items_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::NumberlistItemsController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/numberlists_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::NumberlistsController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/rate_groups_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::RateGroupsController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/rateplans_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::RateplansController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/registrations_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::RegistrationsController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::RoutesetDiscriminatorsController < Api::Rest::Admin::BaseController
end

This file was deleted.

4 changes: 0 additions & 4 deletions app/controllers/api/rest/admin/routing/areas_controller.rb

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/routing_groups_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::RoutingGroupsController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::Equipment::RegistrationsController < Api::Rest::Admin::BaseController
class Api::Rest::Admin::RoutingTagDetectionRulesController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::RoutingTagModesController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/routing_tags_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::RoutingTagsController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/sensor_levels_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::SensorLevelsController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/sensors_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::SensorsController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/service_types_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::ServiceTypesController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/services_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::ServicesController < Api::Rest::Admin::BaseController
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::SipOptionsProbersController < Api::Rest::Admin::BaseController
end
4 changes: 4 additions & 0 deletions app/controllers/api/rest/admin/smtp_connections_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

class Api::Rest::Admin::SmtpConnectionsController < Api::Rest::Admin::BaseController
end
4 changes: 0 additions & 4 deletions app/controllers/api/rest/admin/system/countries_controller.rb

This file was deleted.

This file was deleted.

Loading

0 comments on commit fad00a8

Please sign in to comment.