TT#28460 Change parents in API controllers

Use Entities and EntitiesItem respectively

Change-Id: I5d32b010cc51810acee42d14c5c24ce3d4267602
changes/49/8949/24
Irina Peshinskaya 9 years ago
parent b9f593b7fc
commit b14f34f008

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/POST OPTIONS/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::ApplyRewrites/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::ApplyRewrites/;
sub api_description {
return 'Applies rewrite rules to a given number according to the given direction. It can for example be used to normalize user input to E164 using callee_in direction, or to denormalize E164 to user output using caller_out.';

@ -30,7 +30,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::AutoAttendants/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::AutoAttendants/;
sub resource_name{
return 'autoattendants';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::AutoAttendants/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::AutoAttendants/;
sub resource_name{
return 'autoattendants';

@ -74,7 +74,7 @@ sub query_params {
}, ];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BalanceIntervals/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BalanceIntervals/;
sub resource_name{
return 'balanceintervals';

@ -17,7 +17,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BalanceIntervals/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BalanceIntervals/;
sub resource_name{
return 'balanceintervals';

@ -39,7 +39,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BillingFees/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BillingFees/;
sub resource_name{
return 'billingfees';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BillingFees/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BillingFees/;
sub resource_name{
return 'billingfees';

@ -64,7 +64,7 @@ sub query_params {
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BillingNetworks/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BillingNetworks/;
sub resource_name{
return 'billingnetworks';

@ -19,7 +19,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BillingNetworks/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BillingNetworks/;
sub resource_name{
return 'billingnetworks';

@ -51,7 +51,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BillingProfiles/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BillingProfiles/;
sub resource_name{
return 'billingprofiles';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BillingProfiles/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BillingProfiles/;
sub resource_name{
return 'billingprofiles';

@ -49,7 +49,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BillingZones/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BillingZones/;
sub resource_name{
return 'billingzones';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::BillingZones/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BillingZones/;
sub resource_name{
return 'billingzones';

@ -28,7 +28,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CCMapEntries/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CCMapEntries/;
sub resource_name{
return 'ccmapentries';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CCMapEntries/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CCMapEntries/;
sub resource_name{
return 'ccmapentries';

@ -53,7 +53,7 @@ sub query_params {
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CFDestinationSets/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CFDestinationSets/;
sub resource_name{
return 'cfdestinationsets';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CFDestinationSets/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CFDestinationSets/;
sub resource_name{
return 'cfdestinationsets';

@ -44,7 +44,7 @@ sub documentation_sample {
} ;
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CFMappings/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CFMappings/;
sub resource_name{
return 'cfmappings';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CFMappings/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CFMappings/;
sub resource_name{
return 'cfmappings';

@ -60,7 +60,7 @@ sub documentation_sample {
};
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CFSourceSets/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CFSourceSets/;
sub resource_name{
return 'cfsourcesets';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CFSourceSets/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CFSourceSets/;
sub resource_name{
return 'cfsourcesets';

@ -53,7 +53,7 @@ sub query_params {
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CFTimeSets/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CFTimeSets/;
sub resource_name{
return 'cftimesets';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CFTimeSets/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CFTimeSets/;
sub resource_name{
return 'cftimesets';

@ -30,7 +30,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallControls/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallControls/;
sub resource_name{
return 'callcontrols';

@ -46,7 +46,7 @@ sub documentation_sample {
};
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallForwards/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallForwards/;
sub resource_name{
return 'callforwards';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallForwards/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallForwards/;
sub resource_name{
return 'callforwards';

@ -264,7 +264,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallLists/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallLists/;
sub resource_name{
return 'calllists';

@ -17,7 +17,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallLists/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallLists/;
sub resource_name{
return 'calllists';

@ -22,7 +22,7 @@ sub api_description {
return 'Defines the actual recording of a recorded call stream. It is referred to by the <a href="#callrecordingstreams">CallRecordingStreams</a> relation. A GET on an item returns the binary blob of the recording with the content type depending on the output format given in the related stream.';
};
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallRecordingStreams/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallRecordingStreams/;
sub resource_name{
return 'callrecordingfiles';

@ -17,7 +17,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallRecordingStreams/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallRecordingStreams/;
sub resource_name{
return 'callrecordingfiles';

@ -55,7 +55,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallRecordingStreams/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallRecordingStreams/;
sub resource_name{
return 'callrecordingstreams';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallRecordingStreams/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallRecordingStreams/;
sub resource_name{
return 'callrecordingstreams';

@ -62,7 +62,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallRecordings/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallRecordings/;
sub resource_name{
return 'callrecordings';

@ -16,7 +16,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CallRecordings/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallRecordings/;
sub resource_name{
return 'callrecordings';

@ -63,7 +63,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Calls/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Calls/;
sub resource_name{
return 'calls';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Calls/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Calls/;
sub resource_name{
return 'calls';

@ -34,7 +34,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Capabilities/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Capabilities/;
sub resource_name{
return 'capabilities';

@ -17,7 +17,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Capabilities/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Capabilities/;
sub resource_name{
return 'capabilities';

@ -63,7 +63,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Contracts/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Contracts/;
sub resource_name{
return 'contracts';

@ -20,7 +20,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Contracts/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Contracts/;
sub resource_name{
return 'contracts';

@ -106,7 +106,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerBalances/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerBalances/;
sub resource_name{
return 'customerbalances';

@ -16,7 +16,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerBalances/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerBalances/;
sub resource_name{
return 'customerbalances';

@ -50,7 +50,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerContacts/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerContacts/;
sub resource_name{
return 'customercontacts';

@ -16,7 +16,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerContacts/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerContacts/;
sub resource_name{
return 'customercontacts';

@ -41,7 +41,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerFraudEvents/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerFraudEvents/;
sub resource_name{
return 'customerfraudevents';

@ -13,7 +13,7 @@ require Catalyst::ActionRole::RequireSSL;
sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerFraudEvents/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerFraudEvents/;
sub resource_name{
return 'customerfraudevents';

@ -65,7 +65,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerFraudPreferences/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerFraudPreferences/;
sub resource_name{
return 'customerfraudpreferences';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerFraudPreferences/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerFraudPreferences/;
sub resource_name{
return 'customerfraudpreferences';

@ -52,7 +52,7 @@ sub query_params {
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerLocations/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerLocations/;
sub resource_name{
return 'customerlocations';

@ -19,7 +19,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerLocations/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerLocations/;
sub resource_name{
return 'customerlocations';

@ -20,7 +20,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API/;
use parent qw/NGCP::Panel::Role::Entities/;
sub resource_name{
return 'customerpreferencedefs';

@ -40,7 +40,7 @@ sub documentation_sample {
};
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Preferences/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/;
sub resource_name{
return 'customerpreferences';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Preferences/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preferences/;
sub resource_name{
return 'customerpreferences';

@ -49,7 +49,7 @@ sub query_params {
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerZoneCosts/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerZoneCosts/;
sub resource_name{
return 'customerzonecosts';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::CustomerZoneCosts/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerZoneCosts/;
sub resource_name{
return 'customerzonecosts';

@ -135,7 +135,7 @@ sub query_params {
return $params;
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Customers/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Customers/;
sub resource_name{
return 'customers';

@ -20,7 +20,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Customers/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Customers/;
sub resource_name{
return 'customers';

@ -20,7 +20,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API/;
use parent qw/NGCP::Panel::Role::Entities/;
sub resource_name{
return 'domainpreferencedefs';

@ -31,7 +31,7 @@ sub documentation_sample {
};
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Preferences/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/;
sub resource_name{
return 'domainpreferences';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Preferences/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preferences/;
sub resource_name{
return 'domainpreferences';

@ -52,7 +52,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Domains/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Domains/;
sub resource_name{
return 'domains';

@ -19,7 +19,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Domains/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Domains/;
sub resource_name{
return 'domains';

@ -49,7 +49,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::EmailTemplates/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::EmailTemplates/;
sub resource_name{
return 'emailtemplates';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::EmailTemplates/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::EmailTemplates/;
sub resource_name{
return 'emailtemplates';

@ -50,7 +50,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::EmergencyMappingContainers/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::EmergencyMappingContainers/;
sub resource_name{
return 'emergencymappingcontainers';

@ -16,7 +16,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::EmergencyMappingContainers/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::EmergencyMappingContainers/;
sub resource_name{
return 'emergencymappingcontainers';

@ -68,7 +68,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::EmergencyMappings/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::EmergencyMappings/;
sub resource_name{
return 'emergencymappings';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::EmergencyMappings/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::EmergencyMappings/;
sub resource_name{
return 'emergencymappings';

@ -85,7 +85,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Events/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Events/;
sub resource_name{
return 'events';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Events/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Events/;
sub resource_name{
return 'events';

@ -22,7 +22,7 @@ sub api_description {
return 'Defines the actual recording of fax messages. It is referred to by the <a href="#faxes">Faxes</a> relation. A GET on an item returns the fax in the binary format as image/tif. Additional formats are also supported for download (see: the query_params option).';
};
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::FaxRecordings/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::FaxRecordings/;
sub resource_name{
return 'faxrecordings';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::FaxRecordings/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::FaxRecordings/;
sub resource_name{
return 'faxrecordings';

@ -89,7 +89,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Faxes/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Faxes/;
sub resource_name{
return 'faxes';

@ -16,7 +16,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Faxes/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Faxes/;
sub resource_name{
return 'faxes';

@ -60,7 +60,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::FaxserverSettings/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::FaxserverSettings/;
sub resource_name{
return 'faxserversettings';

@ -19,7 +19,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::FaxserverSettings/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::FaxserverSettings/;
sub resource_name{
return 'faxserversettings';

@ -50,7 +50,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Interceptions/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Interceptions/;
sub resource_name{
return 'interceptions';

@ -16,7 +16,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Interceptions/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Interceptions/;
sub resource_name{
return 'interceptions';

@ -49,7 +49,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::InvoiceTemplates/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::InvoiceTemplates/;
sub resource_name{
return 'invoicetemplates';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::InvoiceTemplates/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::InvoiceTemplates/;
sub resource_name{
return 'invoicetemplates';

@ -50,7 +50,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::LnpCarriers/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::LnpCarriers/;
sub resource_name{
return 'lnpcarriers';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::LnpCarriers/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::LnpCarriers/;
sub resource_name{
return 'lnpcarriers';

@ -59,7 +59,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::LnpNumbers/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::LnpNumbers/;
sub resource_name{
return 'lnpnumbers';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::LnpNumbers/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::LnpNumbers/;
sub resource_name{
return 'lnpnumbers';

@ -60,7 +60,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::MailToFaxSettings/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::MailToFaxSettings/;
sub resource_name{
return 'mailtofaxsettings';

@ -13,7 +13,7 @@ require Catalyst::ActionRole::ACL;
require NGCP::Panel::Role::HTTPMethods;
require Catalyst::ActionRole::RequireSSL;
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::MailToFaxSettings/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::MailToFaxSettings/;
sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT/];
}

@ -107,7 +107,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::MaliciousCalls/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::MaliciousCalls/;
sub resource_name{
return 'maliciouscalls';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::MaliciousCalls/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::MaliciousCalls/;
sub resource_name{
return 'maliciouscalls';

@ -33,7 +33,7 @@ sub documentation_sample {
};
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::ManagerSecretary/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::ManagerSecretary/;
sub resource_name{
return 'managersecretary';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::ManagerSecretary/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::ManagerSecretary/;
sub resource_name{
return 'managersecretary';

@ -18,7 +18,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD/];
}
use base qw/Catalyst::Controller NGCP::Panel::Role::API/;
use base qw/NGCP::Panel::Role::API NGCP::Panel::Role::Entities/;
sub resource_name{
return 'metaconfigdefs';

@ -49,7 +49,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::NcosLevels/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::NcosLevels/;
sub resource_name{
return 'ncoslevels';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::NcosLevels/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::NcosLevels/;
sub resource_name{
return 'ncoslevels';

@ -49,7 +49,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::NcosLnpCarriers/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::NcosLnpCarriers/;
sub resource_name{
return 'ncoslnpcarriers';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::NcosLnpCarriers/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::NcosLnpCarriers/;
sub resource_name{
return 'ncoslnpcarriers';

@ -38,7 +38,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::NcosPatterns/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::NcosPatterns/;
sub resource_name{
return 'ncospatterns';

@ -15,7 +15,7 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::NcosPatterns/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::NcosPatterns/;
sub resource_name{
return 'ncospatterns';

@ -74,7 +74,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Numbers/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Numbers/;
sub resource_name{
return 'numbers';

@ -21,7 +21,7 @@ sub allowed_methods{
return [qw/GET PUT PATCH OPTIONS HEAD/];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::Numbers/;
use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Numbers/;
sub resource_name{
return 'numbers';

@ -31,7 +31,7 @@ sub query_params {
];
}
use parent qw/Catalyst::Controller NGCP::Panel::Role::API::PartyCallControls/;
use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PartyCallControls/;
sub resource_name{
return 'partycallcontrols';

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save