From 75d6edbcd99eec87c19c3b325a8517ad26636ff0 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Tue, 30 Jan 2018 19:48:05 +0200 Subject: [PATCH] TT#28460 Format: add line between subs in API controllers Change-Id: I67f11fef716941dc965dffd4e8fbb1a211791bbf --- lib/NGCP/Panel/Controller/API/Admins.pm | 1 + lib/NGCP/Panel/Controller/API/ApplyRewrites.pm | 2 ++ lib/NGCP/Panel/Controller/API/AutoAttendants.pm | 2 ++ lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/BalanceIntervals.pm | 2 ++ lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/BillingFees.pm | 2 ++ lib/NGCP/Panel/Controller/API/BillingFeesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/BillingNetworks.pm | 2 ++ lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/BillingProfiles.pm | 2 ++ lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/BillingZones.pm | 2 ++ lib/NGCP/Panel/Controller/API/BillingZonesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CCMapEntries.pm | 2 ++ lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CFDestinationSets.pm | 2 ++ lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CFMappings.pm | 2 ++ lib/NGCP/Panel/Controller/API/CFMappingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CFSourceSets.pm | 2 ++ lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CFTimeSets.pm | 2 ++ lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallControls.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallForwards.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallForwardsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallLists.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallListsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallRecordings.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Calls.pm | 2 ++ lib/NGCP/Panel/Controller/API/CallsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Capabilities.pm | 2 ++ lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Contracts.pm | 2 ++ lib/NGCP/Panel/Controller/API/ContractsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerBalances.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerContacts.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerLocations.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerPreferences.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Customers.pm | 2 ++ lib/NGCP/Panel/Controller/API/CustomersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/DomainPreferences.pm | 2 ++ lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Domains.pm | 2 ++ lib/NGCP/Panel/Controller/API/DomainsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/EmailTemplates.pm | 2 ++ lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm | 2 ++ .../Panel/Controller/API/EmergencyMappingContainersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/EmergencyMappings.pm | 2 ++ lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Events.pm | 2 ++ lib/NGCP/Panel/Controller/API/EventsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/FaxRecordings.pm | 2 ++ lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Faxes.pm | 2 ++ lib/NGCP/Panel/Controller/API/FaxesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/FaxserverSettings.pm | 2 ++ lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Interceptions.pm | 2 ++ lib/NGCP/Panel/Controller/API/InterceptionsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm | 2 ++ lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/LnpCarriers.pm | 2 ++ lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/LnpNumbers.pm | 2 ++ lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm | 2 ++ lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/MaliciousCalls.pm | 2 ++ lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/ManagerSecretary.pm | 2 ++ lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm | 2 ++ lib/NGCP/Panel/Controller/API/NcosLevels.pm | 2 ++ lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm | 2 ++ lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/NcosPatterns.pm | 2 ++ lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Numbers.pm | 2 ++ lib/NGCP/Panel/Controller/API/NumbersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PartyCallControls.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm | 2 ++ .../Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDevices.pm | 2 ++ lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm | 2 ++ lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PeeringRules.pm | 2 ++ lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm | 2 ++ lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/PeeringServers.pm | 2 ++ lib/NGCP/Panel/Controller/API/PeeringServersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/ProfilePackages.pm | 2 ++ lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/ProfilePreferences.pm | 2 ++ lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Reminders.pm | 2 ++ lib/NGCP/Panel/Controller/API/RemindersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Resellers.pm | 2 ++ lib/NGCP/Panel/Controller/API/ResellersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Root.pm | 3 +++ lib/NGCP/Panel/Controller/API/RtcApps.pm | 2 ++ lib/NGCP/Panel/Controller/API/RtcAppsItem.pm | 3 +++ lib/NGCP/Panel/Controller/API/RtcNetworks.pm | 2 ++ lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm | 3 +++ lib/NGCP/Panel/Controller/API/RtcSessions.pm | 2 ++ lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm | 2 ++ lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SoundFiles.pm | 2 ++ lib/NGCP/Panel/Controller/API/SoundFilesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SoundHandles.pm | 2 ++ lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SoundSets.pm | 2 ++ lib/NGCP/Panel/Controller/API/SoundSetsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SpeedDials.pm | 2 ++ lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm | 2 ++ lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm | 2 ++ lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm | 2 ++ lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm | 2 ++ lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Subscribers.pm | 3 +++ lib/NGCP/Panel/Controller/API/SubscribersItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/SystemContacts.pm | 2 ++ lib/NGCP/Panel/Controller/API/SystemContactsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/TopupCash.pm | 2 ++ lib/NGCP/Panel/Controller/API/TopupLogs.pm | 2 ++ lib/NGCP/Panel/Controller/API/TopupLogsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/TopupVouchers.pm | 2 ++ lib/NGCP/Panel/Controller/API/TrustedSources.pm | 2 ++ lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm | 2 ++ lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm | 2 ++ lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/VoicemailSettings.pm | 2 ++ lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Voicemails.pm | 2 ++ lib/NGCP/Panel/Controller/API/VoicemailsItem.pm | 2 ++ lib/NGCP/Panel/Controller/API/Vouchers.pm | 2 ++ lib/NGCP/Panel/Controller/API/VouchersItem.pm | 2 ++ 176 files changed, 355 insertions(+) diff --git a/lib/NGCP/Panel/Controller/API/Admins.pm b/lib/NGCP/Panel/Controller/API/Admins.pm index b4b375b7e5..1f5324456f 100644 --- a/lib/NGCP/Panel/Controller/API/Admins.pm +++ b/lib/NGCP/Panel/Controller/API/Admins.pm @@ -12,6 +12,7 @@ __PACKAGE__->set_config(); sub api_description { return'Defines admins to log into the system via panel or api.'; } + sub allowed_methods{ return [qw/GET POST OPTIONS HEAD/]; } diff --git a/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm b/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm index 201e46f160..b11967fe6a 100644 --- a/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm +++ b/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm @@ -32,9 +32,11 @@ sub query_params { sub resource_name{ return 'applyrewrites'; } + sub dispatch_path{ return '/api/applyrewrites/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-applyrewrites'; } diff --git a/lib/NGCP/Panel/Controller/API/AutoAttendants.pm b/lib/NGCP/Panel/Controller/API/AutoAttendants.pm index b1efdedf98..b76584991b 100644 --- a/lib/NGCP/Panel/Controller/API/AutoAttendants.pm +++ b/lib/NGCP/Panel/Controller/API/AutoAttendants.pm @@ -35,9 +35,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::AutoAttendants sub resource_name{ return 'autoattendants'; } + sub dispatch_path{ return '/api/autoattendants/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-autoattendants'; } diff --git a/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm b/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm index 2fd487184d..d9a9cabd4f 100644 --- a/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm +++ b/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::AutoAttend sub resource_name{ return 'autoattendants'; } + sub dispatch_path{ return '/api/autoattendants/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-autoattendants'; } diff --git a/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm b/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm index 2b440f6c0e..ed8a0f5064 100644 --- a/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm +++ b/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm @@ -79,9 +79,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BalanceInterva sub resource_name{ return 'balanceintervals'; } + sub dispatch_path{ return '/api/balanceintervals/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-balanceintervals'; } diff --git a/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm b/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm index 565aafdf42..2660fd8748 100644 --- a/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm +++ b/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm @@ -22,9 +22,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BalanceInt sub resource_name{ return 'balanceintervals'; } + sub dispatch_path{ return '/api/balanceintervals/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-balanceintervals'; } diff --git a/lib/NGCP/Panel/Controller/API/BillingFees.pm b/lib/NGCP/Panel/Controller/API/BillingFees.pm index 054689581d..0a92bc36c8 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFees.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFees.pm @@ -44,9 +44,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BillingFees/; sub resource_name{ return 'billingfees'; } + sub dispatch_path{ return '/api/billingfees/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-billingfees'; } diff --git a/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm b/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm index 5a2b7dbdd8..9f7739b4ce 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BillingFee sub resource_name{ return 'billingfees'; } + sub dispatch_path{ return '/api/billingfees/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-billingfees'; } diff --git a/lib/NGCP/Panel/Controller/API/BillingNetworks.pm b/lib/NGCP/Panel/Controller/API/BillingNetworks.pm index 5b3c988746..c635f0d9ff 100644 --- a/lib/NGCP/Panel/Controller/API/BillingNetworks.pm +++ b/lib/NGCP/Panel/Controller/API/BillingNetworks.pm @@ -69,9 +69,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BillingNetwork sub resource_name{ return 'billingnetworks'; } + sub dispatch_path{ return '/api/billingnetworks/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-billingnetworks'; } diff --git a/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm b/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm index f1130ebaf3..5d029fbdfb 100644 --- a/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm @@ -24,9 +24,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BillingNet sub resource_name{ return 'billingnetworks'; } + sub dispatch_path{ return '/api/billingnetworks/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-billingnetworks'; } diff --git a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm index 5ca82d3be0..ce68e5ca6c 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm @@ -56,9 +56,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BillingProfile sub resource_name{ return 'billingprofiles'; } + sub dispatch_path{ return '/api/billingprofiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-billingprofiles'; } diff --git a/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm b/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm index 6f8cb02cf3..7cb6316332 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BillingPro sub resource_name{ return 'billingprofiles'; } + sub dispatch_path{ return '/api/billingprofiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-billingprofiles'; } diff --git a/lib/NGCP/Panel/Controller/API/BillingZones.pm b/lib/NGCP/Panel/Controller/API/BillingZones.pm index 41122958ff..2d9f93306f 100644 --- a/lib/NGCP/Panel/Controller/API/BillingZones.pm +++ b/lib/NGCP/Panel/Controller/API/BillingZones.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BillingZones/; sub resource_name{ return 'billingzones'; } + sub dispatch_path{ return '/api/billingzones/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-billingzones'; } diff --git a/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm b/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm index abe796ca13..1cac148988 100644 --- a/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::BillingZon sub resource_name{ return 'billingzones'; } + sub dispatch_path{ return '/api/billingzones/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-billingzones'; } diff --git a/lib/NGCP/Panel/Controller/API/CCMapEntries.pm b/lib/NGCP/Panel/Controller/API/CCMapEntries.pm index da2a86f21e..17a4def4a5 100644 --- a/lib/NGCP/Panel/Controller/API/CCMapEntries.pm +++ b/lib/NGCP/Panel/Controller/API/CCMapEntries.pm @@ -33,9 +33,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CCMapEntries/; sub resource_name{ return 'ccmapentries'; } + sub dispatch_path{ return '/api/ccmapentries/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-ccmapentries'; } diff --git a/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm b/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm index 15f5f9b637..da3d638bca 100644 --- a/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CCMapEntri sub resource_name{ return 'ccmapentries'; } + sub dispatch_path{ return '/api/ccmapentries/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-ccmapentries'; } diff --git a/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm b/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm index 27e48bb414..299dd91b61 100644 --- a/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm @@ -58,9 +58,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CFDestinationS sub resource_name{ return 'cfdestinationsets'; } + sub dispatch_path{ return '/api/cfdestinationsets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-cfdestinationsets'; } diff --git a/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm index 878c80623b..1ee23df25d 100644 --- a/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CFDestinat sub resource_name{ return 'cfdestinationsets'; } + sub dispatch_path{ return '/api/cfdestinationsets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-cfdestinationsets'; } diff --git a/lib/NGCP/Panel/Controller/API/CFMappings.pm b/lib/NGCP/Panel/Controller/API/CFMappings.pm index ea23dd959b..4db67fb44a 100644 --- a/lib/NGCP/Panel/Controller/API/CFMappings.pm +++ b/lib/NGCP/Panel/Controller/API/CFMappings.pm @@ -49,9 +49,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CFMappings/; sub resource_name{ return 'cfmappings'; } + sub dispatch_path{ return '/api/cfmappings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-cfmappings'; } diff --git a/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm b/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm index 5b521bf163..d8032db1a6 100644 --- a/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CFMappings sub resource_name{ return 'cfmappings'; } + sub dispatch_path{ return '/api/cfmappings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-cfmappings'; } diff --git a/lib/NGCP/Panel/Controller/API/CFSourceSets.pm b/lib/NGCP/Panel/Controller/API/CFSourceSets.pm index 699b32ea0b..49dc8f3a8e 100644 --- a/lib/NGCP/Panel/Controller/API/CFSourceSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFSourceSets.pm @@ -65,9 +65,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CFSourceSets/; sub resource_name{ return 'cfsourcesets'; } + sub dispatch_path{ return '/api/cfsourcesets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-cfsourcesets'; } diff --git a/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm index b5514880f1..42dad91dcb 100644 --- a/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CFSourceSe sub resource_name{ return 'cfsourcesets'; } + sub dispatch_path{ return '/api/cfsourcesets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-cfsourcesets'; } diff --git a/lib/NGCP/Panel/Controller/API/CFTimeSets.pm b/lib/NGCP/Panel/Controller/API/CFTimeSets.pm index b683a52354..120f6e3b4e 100644 --- a/lib/NGCP/Panel/Controller/API/CFTimeSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFTimeSets.pm @@ -58,9 +58,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CFTimeSets/; sub resource_name{ return 'cftimesets'; } + sub dispatch_path{ return '/api/cftimesets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-cftimesets'; } diff --git a/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm index 8b2cad99c4..1527022854 100644 --- a/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CFTimeSets sub resource_name{ return 'cftimesets'; } + sub dispatch_path{ return '/api/cftimesets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-cftimesets'; } diff --git a/lib/NGCP/Panel/Controller/API/CallControls.pm b/lib/NGCP/Panel/Controller/API/CallControls.pm index 1194d149db..af35c200a4 100644 --- a/lib/NGCP/Panel/Controller/API/CallControls.pm +++ b/lib/NGCP/Panel/Controller/API/CallControls.pm @@ -35,9 +35,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallControls/; sub resource_name{ return 'callcontrols'; } + sub dispatch_path{ return '/api/callcontrols/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callcontrols'; } diff --git a/lib/NGCP/Panel/Controller/API/CallForwards.pm b/lib/NGCP/Panel/Controller/API/CallForwards.pm index d471c04438..68e9345908 100644 --- a/lib/NGCP/Panel/Controller/API/CallForwards.pm +++ b/lib/NGCP/Panel/Controller/API/CallForwards.pm @@ -51,9 +51,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallForwards/; sub resource_name{ return 'callforwards'; } + sub dispatch_path{ return '/api/callforwards/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callforwards'; } diff --git a/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm b/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm index f1d04d2fa1..46e6831e7d 100644 --- a/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallForwar sub resource_name{ return 'callforwards'; } + sub dispatch_path{ return '/api/callforwards/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callforwards'; } diff --git a/lib/NGCP/Panel/Controller/API/CallLists.pm b/lib/NGCP/Panel/Controller/API/CallLists.pm index 221db9c49a..828f1f910c 100644 --- a/lib/NGCP/Panel/Controller/API/CallLists.pm +++ b/lib/NGCP/Panel/Controller/API/CallLists.pm @@ -269,9 +269,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallLists/; sub resource_name{ return 'calllists'; } + sub dispatch_path{ return '/api/calllists/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-calllists'; } diff --git a/lib/NGCP/Panel/Controller/API/CallListsItem.pm b/lib/NGCP/Panel/Controller/API/CallListsItem.pm index c34ee25daf..881a0711c6 100644 --- a/lib/NGCP/Panel/Controller/API/CallListsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallListsItem.pm @@ -22,9 +22,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallLists/ sub resource_name{ return 'calllists'; } + sub dispatch_path{ return '/api/calllists/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-calllists'; } diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm b/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm index 20f96403e6..4a10300047 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm @@ -27,9 +27,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallRecordingS sub resource_name{ return 'callrecordingfiles'; } + sub dispatch_path{ return '/api/callrecordingfiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordingfiles'; } diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm index ef5f90fa54..e7bfa604f3 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm @@ -22,9 +22,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallRecord sub resource_name{ return 'callrecordingfiles'; } + sub dispatch_path{ return '/api/callrecordingfiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordingfiles'; } diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm b/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm index 9ce454b4ef..eecda54525 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm @@ -60,9 +60,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallRecordingS sub resource_name{ return 'callrecordingstreams'; } + sub dispatch_path{ return '/api/callrecordingstreams/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordingstreams'; } diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm index 6be5ca1bce..0b35c4c808 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallRecord sub resource_name{ return 'callrecordingstreams'; } + sub dispatch_path{ return '/api/callrecordingstreams/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordingstreams'; } diff --git a/lib/NGCP/Panel/Controller/API/CallRecordings.pm b/lib/NGCP/Panel/Controller/API/CallRecordings.pm index 94bcdd1e51..d055536683 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordings.pm @@ -67,9 +67,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CallRecordings sub resource_name{ return 'callrecordings'; } + sub dispatch_path{ return '/api/callrecordings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordings'; } diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm index a61afef109..cd21ad5a74 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CallRecord sub resource_name{ return 'callrecordings'; } + sub dispatch_path{ return '/api/callrecordings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordings'; } diff --git a/lib/NGCP/Panel/Controller/API/Calls.pm b/lib/NGCP/Panel/Controller/API/Calls.pm index afe0b17bae..5238427048 100644 --- a/lib/NGCP/Panel/Controller/API/Calls.pm +++ b/lib/NGCP/Panel/Controller/API/Calls.pm @@ -68,9 +68,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Calls/; sub resource_name{ return 'calls'; } + sub dispatch_path{ return '/api/calls/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-calls'; } diff --git a/lib/NGCP/Panel/Controller/API/CallsItem.pm b/lib/NGCP/Panel/Controller/API/CallsItem.pm index 9157623451..7d41a6f635 100644 --- a/lib/NGCP/Panel/Controller/API/CallsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Calls/; sub resource_name{ return 'calls'; } + sub dispatch_path{ return '/api/calls/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-calls'; } diff --git a/lib/NGCP/Panel/Controller/API/Capabilities.pm b/lib/NGCP/Panel/Controller/API/Capabilities.pm index 948673733e..666290311b 100644 --- a/lib/NGCP/Panel/Controller/API/Capabilities.pm +++ b/lib/NGCP/Panel/Controller/API/Capabilities.pm @@ -39,9 +39,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Capabilities/; sub resource_name{ return 'capabilities'; } + sub dispatch_path{ return '/api/capabilities/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-capabilities'; } diff --git a/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm b/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm index 7af8f9e309..007aac7479 100644 --- a/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm @@ -22,9 +22,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Capabiliti sub resource_name{ return 'capabilities'; } + sub dispatch_path{ return '/api/capabilities/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-capabilities'; } diff --git a/lib/NGCP/Panel/Controller/API/Contracts.pm b/lib/NGCP/Panel/Controller/API/Contracts.pm index e01c1be1d5..a589828da0 100644 --- a/lib/NGCP/Panel/Controller/API/Contracts.pm +++ b/lib/NGCP/Panel/Controller/API/Contracts.pm @@ -68,9 +68,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Contracts/; sub resource_name{ return 'contracts'; } + sub dispatch_path{ return '/api/contracts/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-contracts'; } diff --git a/lib/NGCP/Panel/Controller/API/ContractsItem.pm b/lib/NGCP/Panel/Controller/API/ContractsItem.pm index e57dbd3bb3..6d5b861781 100644 --- a/lib/NGCP/Panel/Controller/API/ContractsItem.pm +++ b/lib/NGCP/Panel/Controller/API/ContractsItem.pm @@ -25,9 +25,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Contracts/ sub resource_name{ return 'contracts'; } + sub dispatch_path{ return '/api/contracts/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-contracts'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerBalances.pm b/lib/NGCP/Panel/Controller/API/CustomerBalances.pm index 6e5355b851..eee9ed8a7c 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerBalances.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerBalances.pm @@ -111,9 +111,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerBalanc sub resource_name{ return 'customerbalances'; } + sub dispatch_path{ return '/api/customerbalances/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerbalances'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm index 993ca0bf97..10025e4611 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerBa sub resource_name{ return 'customerbalances'; } + sub dispatch_path{ return '/api/customerbalances/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerbalances'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerContacts.pm b/lib/NGCP/Panel/Controller/API/CustomerContacts.pm index a48832c7df..ffe338d107 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerContacts.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerContacts.pm @@ -55,9 +55,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerContac sub resource_name{ return 'customercontacts'; } + sub dispatch_path{ return '/api/customercontacts/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customercontacts'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm index 2f5c5a0f7a..a3d91596f3 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerCo sub resource_name{ return 'customercontacts'; } + sub dispatch_path{ return '/api/customercontacts/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customercontacts'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm index bb5d153d98..1171879a07 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm @@ -46,9 +46,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerFraudE sub resource_name{ return 'customerfraudevents'; } + sub dispatch_path{ return '/api/customerfraudevents/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerfraudevents'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm index de4208e701..838e225035 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm @@ -18,9 +18,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerFr sub resource_name{ return 'customerfraudevents'; } + sub dispatch_path{ return '/api/customerfraudevents/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerfraudevents'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm index ecc27182a3..e68e0a065c 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm @@ -70,9 +70,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerFraudP sub resource_name{ return 'customerfraudpreferences'; } + sub dispatch_path{ return '/api/customerfraudpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerfraudpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm index 8a829601b5..1e247cc4e9 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerFr sub resource_name{ return 'customerfraudpreferences'; } + sub dispatch_path{ return '/api/customerfraudpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerfraudpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerLocations.pm b/lib/NGCP/Panel/Controller/API/CustomerLocations.pm index 8082f5f35a..250f04ff73 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerLocations.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerLocations.pm @@ -57,9 +57,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerLocati sub resource_name{ return 'customerlocations'; } + sub dispatch_path{ return '/api/customerlocations/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerlocations'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm index 4261f3989c..ea441b3cb0 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm @@ -24,9 +24,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerLo sub resource_name{ return 'customerlocations'; } + sub dispatch_path{ return '/api/customerlocations/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerlocations'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm index d9519c409a..6515a3baaf 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm @@ -45,9 +45,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/; sub resource_name{ return 'customerpreferences'; } + sub dispatch_path{ return '/api/customerpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm index b868ae85d6..5acaea962e 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preference sub resource_name{ return 'customerpreferences'; } + sub dispatch_path{ return '/api/customerpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm b/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm index 4d39566ef1..315c7a90aa 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::CustomerZoneCo sub resource_name{ return 'customerzonecosts'; } + sub dispatch_path{ return '/api/customerzonecosts/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerzonecosts'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm index 92cc12969f..1b5b5ea198 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::CustomerZo sub resource_name{ return 'customerzonecosts'; } + sub dispatch_path{ return '/api/customerzonecosts/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customerzonecosts'; } diff --git a/lib/NGCP/Panel/Controller/API/Customers.pm b/lib/NGCP/Panel/Controller/API/Customers.pm index 1b239047af..326bdbf33d 100644 --- a/lib/NGCP/Panel/Controller/API/Customers.pm +++ b/lib/NGCP/Panel/Controller/API/Customers.pm @@ -140,9 +140,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Customers/; sub resource_name{ return 'customers'; } + sub dispatch_path{ return '/api/customers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customers'; } diff --git a/lib/NGCP/Panel/Controller/API/CustomersItem.pm b/lib/NGCP/Panel/Controller/API/CustomersItem.pm index b65c813f08..0962ce813b 100644 --- a/lib/NGCP/Panel/Controller/API/CustomersItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomersItem.pm @@ -25,9 +25,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Customers/ sub resource_name{ return 'customers'; } + sub dispatch_path{ return '/api/customers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-customers'; } diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferences.pm b/lib/NGCP/Panel/Controller/API/DomainPreferences.pm index 675b043fd8..6a8b12411d 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferences.pm @@ -36,9 +36,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/; sub resource_name{ return 'domainpreferences'; } + sub dispatch_path{ return '/api/domainpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-domainpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm index 403ea8905a..06e417eacf 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preference sub resource_name{ return 'domainpreferences'; } + sub dispatch_path{ return '/api/domainpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-domainpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/Domains.pm b/lib/NGCP/Panel/Controller/API/Domains.pm index effb7976a2..f72d5f7d32 100644 --- a/lib/NGCP/Panel/Controller/API/Domains.pm +++ b/lib/NGCP/Panel/Controller/API/Domains.pm @@ -57,9 +57,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Domains/; sub resource_name{ return 'domains'; } + sub dispatch_path{ return '/api/domains/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-domains'; } diff --git a/lib/NGCP/Panel/Controller/API/DomainsItem.pm b/lib/NGCP/Panel/Controller/API/DomainsItem.pm index 509aeaa270..fd13b17b00 100644 --- a/lib/NGCP/Panel/Controller/API/DomainsItem.pm +++ b/lib/NGCP/Panel/Controller/API/DomainsItem.pm @@ -24,9 +24,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Domains/; sub resource_name{ return 'domains'; } + sub dispatch_path{ return '/api/domains/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-domains'; } diff --git a/lib/NGCP/Panel/Controller/API/EmailTemplates.pm b/lib/NGCP/Panel/Controller/API/EmailTemplates.pm index e219168bd9..2b6aefe01a 100644 --- a/lib/NGCP/Panel/Controller/API/EmailTemplates.pm +++ b/lib/NGCP/Panel/Controller/API/EmailTemplates.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::EmailTemplates sub resource_name{ return 'emailtemplates'; } + sub dispatch_path{ return '/api/emailtemplates/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-emailtemplates'; } diff --git a/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm b/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm index 737b4e47b9..786a8f59e5 100644 --- a/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::EmailTempl sub resource_name{ return 'emailtemplates'; } + sub dispatch_path{ return '/api/emailtemplates/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-emailtemplates'; } diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm index def4ed824c..51f29ae261 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm @@ -55,9 +55,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::EmergencyMappi sub resource_name{ return 'emergencymappingcontainers'; } + sub dispatch_path{ return '/api/emergencymappingcontainers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-emergencymappingcontainers'; } diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm index 017432eebb..46160bae2a 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::EmergencyM sub resource_name{ return 'emergencymappingcontainers'; } + sub dispatch_path{ return '/api/emergencymappingcontainers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-emergencymappingcontainers'; } diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm index d672f916dc..3543f3a317 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm @@ -73,9 +73,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::EmergencyMappi sub resource_name{ return 'emergencymappings'; } + sub dispatch_path{ return '/api/emergencymappings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-emergencymappings'; } diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm index d43b968ea1..545adfe6e8 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::EmergencyM sub resource_name{ return 'emergencymappings'; } + sub dispatch_path{ return '/api/emergencymappings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-emergencymappings'; } diff --git a/lib/NGCP/Panel/Controller/API/Events.pm b/lib/NGCP/Panel/Controller/API/Events.pm index 50d1652653..1de67bce74 100644 --- a/lib/NGCP/Panel/Controller/API/Events.pm +++ b/lib/NGCP/Panel/Controller/API/Events.pm @@ -90,9 +90,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Events/; sub resource_name{ return 'events'; } + sub dispatch_path{ return '/api/events/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-events'; } diff --git a/lib/NGCP/Panel/Controller/API/EventsItem.pm b/lib/NGCP/Panel/Controller/API/EventsItem.pm index 474ad25cae..7598d7359b 100644 --- a/lib/NGCP/Panel/Controller/API/EventsItem.pm +++ b/lib/NGCP/Panel/Controller/API/EventsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Events/; sub resource_name{ return 'events'; } + sub dispatch_path{ return '/api/events/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-events'; } diff --git a/lib/NGCP/Panel/Controller/API/FaxRecordings.pm b/lib/NGCP/Panel/Controller/API/FaxRecordings.pm index 7a3e87df55..df3764bba1 100644 --- a/lib/NGCP/Panel/Controller/API/FaxRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/FaxRecordings.pm @@ -27,9 +27,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::FaxRecordings/ sub resource_name{ return 'faxrecordings'; } + sub dispatch_path{ return '/api/faxrecordings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-faxrecordings'; } diff --git a/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm index 6a15c7fc8a..b32aefb41f 100644 --- a/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::FaxRecordi sub resource_name{ return 'faxrecordings'; } + sub dispatch_path{ return '/api/faxrecordings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-faxrecordings'; } diff --git a/lib/NGCP/Panel/Controller/API/Faxes.pm b/lib/NGCP/Panel/Controller/API/Faxes.pm index 35a7dac412..d50d99af97 100644 --- a/lib/NGCP/Panel/Controller/API/Faxes.pm +++ b/lib/NGCP/Panel/Controller/API/Faxes.pm @@ -94,9 +94,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Faxes/; sub resource_name{ return 'faxes'; } + sub dispatch_path{ return '/api/faxes/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-faxes'; } diff --git a/lib/NGCP/Panel/Controller/API/FaxesItem.pm b/lib/NGCP/Panel/Controller/API/FaxesItem.pm index 24d3b8ff4a..5a0af8d399 100644 --- a/lib/NGCP/Panel/Controller/API/FaxesItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxesItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Faxes/; sub resource_name{ return 'faxes'; } + sub dispatch_path{ return '/api/faxes/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-faxes'; } diff --git a/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm b/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm index 5893b89bed..b792654045 100644 --- a/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm +++ b/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm @@ -65,9 +65,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::FaxserverSetti sub resource_name{ return 'faxserversettings'; } + sub dispatch_path{ return '/api/faxserversettings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-faxserversettings'; } diff --git a/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm b/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm index f7e33b5ce8..b40c8845c7 100644 --- a/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm @@ -24,9 +24,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::FaxserverS sub resource_name{ return 'faxserversettings'; } + sub dispatch_path{ return '/api/faxserversettings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-faxserversettings'; } diff --git a/lib/NGCP/Panel/Controller/API/Interceptions.pm b/lib/NGCP/Panel/Controller/API/Interceptions.pm index 34feccb3ad..2947ce3f0f 100644 --- a/lib/NGCP/Panel/Controller/API/Interceptions.pm +++ b/lib/NGCP/Panel/Controller/API/Interceptions.pm @@ -55,9 +55,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Interceptions/ sub resource_name{ return 'interceptions'; } + sub dispatch_path{ return '/api/interceptions/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-interceptions'; } diff --git a/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm b/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm index 25aeab56cd..3428127260 100644 --- a/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm +++ b/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Intercepti sub resource_name{ return 'interceptions'; } + sub dispatch_path{ return '/api/interceptions/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-interceptions'; } diff --git a/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm b/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm index fd2ce1d93c..b3027c03f1 100644 --- a/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm +++ b/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::InvoiceTemplat sub resource_name{ return 'invoicetemplates'; } + sub dispatch_path{ return '/api/invoicetemplates/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-invoicetemplates'; } diff --git a/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm b/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm index a7665abe7b..2713f97780 100644 --- a/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm +++ b/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::InvoiceTem sub resource_name{ return 'invoicetemplates'; } + sub dispatch_path{ return '/api/invoicetemplates/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-invoicetemplates'; } diff --git a/lib/NGCP/Panel/Controller/API/LnpCarriers.pm b/lib/NGCP/Panel/Controller/API/LnpCarriers.pm index 8acc90a9aa..fcd972914a 100644 --- a/lib/NGCP/Panel/Controller/API/LnpCarriers.pm +++ b/lib/NGCP/Panel/Controller/API/LnpCarriers.pm @@ -55,9 +55,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::LnpCarriers/; sub resource_name{ return 'lnpcarriers'; } + sub dispatch_path{ return '/api/lnpcarriers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-lnpcarriers'; } diff --git a/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm b/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm index 1f7d827e14..80035e94f6 100644 --- a/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm +++ b/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::LnpCarrier sub resource_name{ return 'lnpcarriers'; } + sub dispatch_path{ return '/api/lnpcarriers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-lnpcarriers'; } diff --git a/lib/NGCP/Panel/Controller/API/LnpNumbers.pm b/lib/NGCP/Panel/Controller/API/LnpNumbers.pm index 49c2d33e28..05425c5c01 100644 --- a/lib/NGCP/Panel/Controller/API/LnpNumbers.pm +++ b/lib/NGCP/Panel/Controller/API/LnpNumbers.pm @@ -64,9 +64,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::LnpNumbers/; sub resource_name{ return 'lnpnumbers'; } + sub dispatch_path{ return '/api/lnpnumbers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-lnpnumbers'; } diff --git a/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm b/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm index 16eaebbf4d..64fb73558d 100644 --- a/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm +++ b/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::LnpNumbers sub resource_name{ return 'lnpnumbers'; } + sub dispatch_path{ return '/api/lnpnumbers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-lnpnumbers'; } diff --git a/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm b/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm index 28be5f4361..954dda8a67 100644 --- a/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm +++ b/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm @@ -65,9 +65,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::MailToFaxSetti sub resource_name{ return 'mailtofaxsettings'; } + sub dispatch_path{ return '/api/mailtofaxsettings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-mailtofaxsettings'; } diff --git a/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm b/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm index ddfb350b16..1e15fbf116 100644 --- a/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm @@ -21,9 +21,11 @@ sub allowed_methods{ sub resource_name{ return 'mailtofaxsettings'; } + sub dispatch_path{ return '/api/mailtofaxsettings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-mailtofaxsettings'; } diff --git a/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm b/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm index 6c93a0c9f1..358b208f34 100644 --- a/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm +++ b/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm @@ -112,9 +112,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::MaliciousCalls sub resource_name{ return 'maliciouscalls'; } + sub dispatch_path{ return '/api/maliciouscalls/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-maliciouscalls'; } diff --git a/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm b/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm index 9ab1ea5a27..ee7a92cc91 100644 --- a/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm +++ b/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::MaliciousC sub resource_name{ return 'maliciouscalls'; } + sub dispatch_path{ return '/api/maliciouscalls/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-maliciouscalls'; } diff --git a/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm b/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm index b41186c51e..d9aa3fb204 100644 --- a/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm +++ b/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm @@ -38,9 +38,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::ManagerSecreta sub resource_name{ return 'managersecretary'; } + sub dispatch_path{ return '/api/managersecretary/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-managersecretary'; } diff --git a/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm b/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm index 3132b07ee7..91ba0c1daa 100644 --- a/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm +++ b/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::ManagerSec sub resource_name{ return 'managersecretary'; } + sub dispatch_path{ return '/api/managersecretary/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-managersecretary'; } diff --git a/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm b/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm index 93811fd7fd..8f329508ba 100644 --- a/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm +++ b/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm @@ -23,9 +23,11 @@ use base qw/NGCP::Panel::Role::API NGCP::Panel::Role::Entities/; sub resource_name{ return 'metaconfigdefs'; } + sub dispatch_path{ return '/api/metaconfigdefs/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-metaconfigdefs'; } diff --git a/lib/NGCP/Panel/Controller/API/NcosLevels.pm b/lib/NGCP/Panel/Controller/API/NcosLevels.pm index 4ebfcfc233..3cb7d9825c 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLevels.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLevels.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::NcosLevels/; sub resource_name{ return 'ncoslevels'; } + sub dispatch_path{ return '/api/ncoslevels/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-ncoslevels'; } diff --git a/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm b/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm index 93721e8694..110021b70e 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::NcosLevels sub resource_name{ return 'ncoslevels'; } + sub dispatch_path{ return '/api/ncoslevels/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-ncoslevels'; } diff --git a/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm b/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm index 2c73702920..4ff4226251 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::NcosLnpCarrier sub resource_name{ return 'ncoslnpcarriers'; } + sub dispatch_path{ return '/api/ncoslnpcarriers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-ncoslnpcarriers'; } diff --git a/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm b/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm index 45a83a6be2..edf30a5b3e 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::NcosLnpCar sub resource_name{ return 'ncoslnpcarriers'; } + sub dispatch_path{ return '/api/ncoslnpcarriers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-ncoslnpcarriers'; } diff --git a/lib/NGCP/Panel/Controller/API/NcosPatterns.pm b/lib/NGCP/Panel/Controller/API/NcosPatterns.pm index 4f8e3a1fdd..16638ec74c 100644 --- a/lib/NGCP/Panel/Controller/API/NcosPatterns.pm +++ b/lib/NGCP/Panel/Controller/API/NcosPatterns.pm @@ -43,9 +43,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::NcosPatterns/; sub resource_name{ return 'ncospatterns'; } + sub dispatch_path{ return '/api/ncospatterns/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-ncospatterns'; } diff --git a/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm b/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm index 6b38ebb09a..9df934bf5c 100644 --- a/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::NcosPatter sub resource_name{ return 'ncospatterns'; } + sub dispatch_path{ return '/api/ncospatterns/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-ncospatterns'; } diff --git a/lib/NGCP/Panel/Controller/API/Numbers.pm b/lib/NGCP/Panel/Controller/API/Numbers.pm index 66a1e6eb4d..641589f6b0 100644 --- a/lib/NGCP/Panel/Controller/API/Numbers.pm +++ b/lib/NGCP/Panel/Controller/API/Numbers.pm @@ -79,9 +79,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Numbers/; sub resource_name{ return 'numbers'; } + sub dispatch_path{ return '/api/numbers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-numbers'; } diff --git a/lib/NGCP/Panel/Controller/API/NumbersItem.pm b/lib/NGCP/Panel/Controller/API/NumbersItem.pm index ec54a445a8..7e82c0992a 100644 --- a/lib/NGCP/Panel/Controller/API/NumbersItem.pm +++ b/lib/NGCP/Panel/Controller/API/NumbersItem.pm @@ -26,9 +26,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Numbers/; sub resource_name{ return 'numbers'; } + sub dispatch_path{ return '/api/numbers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-numbers'; } diff --git a/lib/NGCP/Panel/Controller/API/PartyCallControls.pm b/lib/NGCP/Panel/Controller/API/PartyCallControls.pm index 1567c2fcb6..7a618d639e 100644 --- a/lib/NGCP/Panel/Controller/API/PartyCallControls.pm +++ b/lib/NGCP/Panel/Controller/API/PartyCallControls.pm @@ -36,9 +36,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PartyCallContr sub resource_name{ return 'partycallcontrols'; } + sub dispatch_path{ return '/api/partycallcontrols/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-partycallcontrols'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm index 623efd065d..415ca01ddb 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm @@ -32,9 +32,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PbxDeviceFirmw sub resource_name{ return 'pbxdeviceconfigfiles'; } + sub dispatch_path{ return '/api/pbxdeviceconfigfiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceconfigfiles'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm index 603cebf3f9..c5c229bcab 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PbxDeviceC sub resource_name{ return 'pbxdeviceconfigfiles'; } + sub dispatch_path{ return '/api/pbxdeviceconfigfiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceconfigfiles'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm index 89f6bb98ca..afce344c9e 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm @@ -65,9 +65,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PbxDeviceConfi sub resource_name{ return 'pbxdeviceconfigs'; } + sub dispatch_path{ return '/api/pbxdeviceconfigs/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceconfigs'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm index 540417287d..e0ed85927e 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PbxDeviceC sub resource_name{ return 'pbxdeviceconfigs'; } + sub dispatch_path{ return '/api/pbxdeviceconfigs/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceconfigs'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm index e99de56205..ac226c033a 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm @@ -32,9 +32,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PbxDeviceFirmw sub resource_name{ return 'pbxdevicefirmwarebinaries'; } + sub dispatch_path{ return '/api/pbxdevicefirmwarebinaries/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwarebinaries'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm index b4f665a155..b926d1f6c4 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PbxDeviceF sub resource_name{ return 'pbxdevicefirmwarebinaries'; } + sub dispatch_path{ return '/api/pbxdevicefirmwarebinaries/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwarebinaries'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm index 8f95aa0b97..9317e858e5 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm @@ -66,9 +66,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PbxDeviceFirmw sub resource_name{ return 'pbxdevicefirmwares'; } + sub dispatch_path{ return '/api/pbxdevicefirmwares/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwares'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm index c66085a845..918ce64c38 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PbxDeviceF sub resource_name{ return 'pbxdevicefirmwares'; } + sub dispatch_path{ return '/api/pbxdevicefirmwares/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwares'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm b/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm index d375495e0b..27e1b4f07a 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm @@ -27,9 +27,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/; sub resource_name{ return 'pbxdevicepreferences'; } + sub dispatch_path{ return '/api/pbxdevicepreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicepreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm index 19f8bf7493..6a567ed20e 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preference sub resource_name{ return 'pbxdevicepreferences'; } + sub dispatch_path{ return '/api/pbxdevicepreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicepreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm index 2b1a0aa435..7a9ffded87 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm @@ -27,9 +27,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/; sub resource_name{ return 'pbxdeviceprofilepreferences'; } + sub dispatch_path{ return '/api/pbxdeviceprofilepreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceprofilepreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm index 5caa33613c..b77eb1eabf 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preference sub resource_name{ return 'pbxdeviceprofilepreferences'; } + sub dispatch_path{ return '/api/pbxdeviceprofilepreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceprofilepreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm index a679474dc6..de8c4eade7 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm @@ -55,9 +55,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PbxDeviceProfi sub resource_name{ return 'pbxdeviceprofiles'; } + sub dispatch_path{ return '/api/pbxdeviceprofiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceprofiles'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm index 8a95147dd1..11064fcfe9 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PbxDeviceP sub resource_name{ return 'pbxdeviceprofiles'; } + sub dispatch_path{ return '/api/pbxdeviceprofiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceprofiles'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDevices.pm b/lib/NGCP/Panel/Controller/API/PbxDevices.pm index 20ff12b8a6..00ed682658 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevices.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevices.pm @@ -67,9 +67,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PbxDevices/; sub resource_name{ return 'pbxdevices'; } + sub dispatch_path{ return '/api/pbxdevices/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevices'; } diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm index 63daa67f3b..dd48ef1385 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PbxDevices sub resource_name{ return 'pbxdevices'; } + sub dispatch_path{ return '/api/pbxdevices/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevices'; } diff --git a/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm b/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm index ddd05b96a1..398f34004e 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm @@ -66,9 +66,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PeeringInbound sub resource_name{ return 'peeringinboundrules'; } + sub dispatch_path{ return '/api/peeringinboundrules/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-peeringinboundrules'; } diff --git a/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm index ce37048374..08670ce9a8 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PeeringInb sub resource_name{ return 'peeringinboundrules'; } + sub dispatch_path{ return '/api/peeringinboundrules/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-peeringinboundrules'; } diff --git a/lib/NGCP/Panel/Controller/API/PeeringRules.pm b/lib/NGCP/Panel/Controller/API/PeeringRules.pm index 40e62264fb..1ca0ac0223 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringRules.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringRules.pm @@ -66,9 +66,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PeeringRules/; sub resource_name{ return 'peeringrules'; } + sub dispatch_path{ return '/api/peeringrules/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-peeringrules'; } diff --git a/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm index 68d351a8f3..0887b50d3e 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PeeringRul sub resource_name{ return 'peeringrules'; } + sub dispatch_path{ return '/api/peeringrules/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-peeringrules'; } diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm index 59099fa9a4..e53f09d20a 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm @@ -35,9 +35,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/; sub resource_name{ return 'peeringserverpreferences'; } + sub dispatch_path{ return '/api/peeringserverpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-peeringserverpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm index 66fb9c5094..ea78255154 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preference sub resource_name{ return 'peeringserverpreferences'; } + sub dispatch_path{ return '/api/peeringserverpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-peeringserverpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/PeeringServers.pm b/lib/NGCP/Panel/Controller/API/PeeringServers.pm index e377b26097..e58f979431 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServers.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServers.pm @@ -87,9 +87,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::PeeringServers sub resource_name{ return 'peeringservers'; } + sub dispatch_path{ return '/api/peeringservers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-peeringservers'; } diff --git a/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm b/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm index 04233cba40..6074943354 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::PeeringSer sub resource_name{ return 'peeringservers'; } + sub dispatch_path{ return '/api/peeringservers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-peeringservers'; } diff --git a/lib/NGCP/Panel/Controller/API/ProfilePackages.pm b/lib/NGCP/Panel/Controller/API/ProfilePackages.pm index 8c198cb88c..99585ff22a 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePackages.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePackages.pm @@ -83,9 +83,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::ProfilePackage sub resource_name{ return 'profilepackages'; } + sub dispatch_path{ return '/api/profilepackages/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-profilepackages'; } diff --git a/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm b/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm index cb91c43f94..c3af1cc521 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::ProfilePac sub resource_name{ return 'profilepackages'; } + sub dispatch_path{ return '/api/profilepackages/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-profilepackages'; } diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm index dffa7447a1..f9d22df275 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm @@ -27,9 +27,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/; sub resource_name{ return 'profilepreferences'; } + sub dispatch_path{ return '/api/profilepreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-profilepreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm index 20a1f9ead8..17bf5425e9 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preference sub resource_name{ return 'profilepreferences'; } + sub dispatch_path{ return '/api/profilepreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-profilepreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/Reminders.pm b/lib/NGCP/Panel/Controller/API/Reminders.pm index 34fd79c957..4ec738d821 100644 --- a/lib/NGCP/Panel/Controller/API/Reminders.pm +++ b/lib/NGCP/Panel/Controller/API/Reminders.pm @@ -60,9 +60,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Reminders/; sub resource_name{ return 'reminders'; } + sub dispatch_path{ return '/api/reminders/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-reminders'; } diff --git a/lib/NGCP/Panel/Controller/API/RemindersItem.pm b/lib/NGCP/Panel/Controller/API/RemindersItem.pm index 4906633a8a..abbc51e727 100644 --- a/lib/NGCP/Panel/Controller/API/RemindersItem.pm +++ b/lib/NGCP/Panel/Controller/API/RemindersItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Reminders/ sub resource_name{ return 'reminders'; } + sub dispatch_path{ return '/api/reminders/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-reminders'; } diff --git a/lib/NGCP/Panel/Controller/API/Resellers.pm b/lib/NGCP/Panel/Controller/API/Resellers.pm index 7faa93f597..f46867c8a1 100644 --- a/lib/NGCP/Panel/Controller/API/Resellers.pm +++ b/lib/NGCP/Panel/Controller/API/Resellers.pm @@ -46,9 +46,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Resellers/; sub resource_name{ return 'resellers'; } + sub dispatch_path{ return '/api/resellers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-resellers'; } diff --git a/lib/NGCP/Panel/Controller/API/ResellersItem.pm b/lib/NGCP/Panel/Controller/API/ResellersItem.pm index 28d00962b6..e083cf1e7b 100644 --- a/lib/NGCP/Panel/Controller/API/ResellersItem.pm +++ b/lib/NGCP/Panel/Controller/API/ResellersItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Resellers/ sub resource_name{ return 'resellers'; } + sub dispatch_path{ return '/api/resellers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-resellers'; } diff --git a/lib/NGCP/Panel/Controller/API/Root.pm b/lib/NGCP/Panel/Controller/API/Root.pm index e984f9075d..d3dfe6962e 100644 --- a/lib/NGCP/Panel/Controller/API/Root.pm +++ b/lib/NGCP/Panel/Controller/API/Root.pm @@ -23,6 +23,7 @@ use NGCP::Panel::Utils::Journal qw(); #with 'NGCP::Panel::Role::API'; sub dispatch_path{return '/api/';} + sub allowed_methods{ return [qw/GET OPTIONS HEAD/]; } @@ -385,6 +386,7 @@ sub field_to_select_options : Private { } @{$field->options}); } + sub get_field_poperties :Private{ my ($self, $field) = @_; my $name = $field->name; @@ -430,6 +432,7 @@ sub get_field_poperties :Private{ return { name => $name, description => $desc, types => \@types, type_original => $field->type, readonly => $field->readonly, ($enum ? (enum => $enum) : ()) }; } + sub get_collection_properties { my ($self, $form) = @_; diff --git a/lib/NGCP/Panel/Controller/API/RtcApps.pm b/lib/NGCP/Panel/Controller/API/RtcApps.pm index d910b2d4b5..a55d4e3ebf 100644 --- a/lib/NGCP/Panel/Controller/API/RtcApps.pm +++ b/lib/NGCP/Panel/Controller/API/RtcApps.pm @@ -31,9 +31,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::RtcApps/; sub resource_name{ return 'rtcapps'; } + sub dispatch_path{ return '/api/rtcapps/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-rtcapps'; } diff --git a/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm b/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm index 1675aee532..0d26380f5e 100644 --- a/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm @@ -19,12 +19,15 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::RtcApps/; sub resource_name{ return 'rtcapps'; } + sub dispatch_path{ return '/api/rtcapps/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-rtcapps'; } + sub journal_query_params { my($self,$query_params) = @_; return $self->get_journal_query_params($query_params); diff --git a/lib/NGCP/Panel/Controller/API/RtcNetworks.pm b/lib/NGCP/Panel/Controller/API/RtcNetworks.pm index 5e3a7f5754..9ca77ae36f 100644 --- a/lib/NGCP/Panel/Controller/API/RtcNetworks.pm +++ b/lib/NGCP/Panel/Controller/API/RtcNetworks.pm @@ -31,9 +31,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::RtcNetworks/; sub resource_name{ return 'rtcnetworks'; } + sub dispatch_path{ return '/api/rtcnetworks/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-rtcnetworks'; } diff --git a/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm b/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm index cad7bb26d3..8560c4b1fd 100644 --- a/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm @@ -19,12 +19,15 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::RtcNetwork sub resource_name{ return 'rtcnetworks'; } + sub dispatch_path{ return '/api/rtcnetworks/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-rtcnetworks'; } + sub journal_query_params { my($self,$query_params) = @_; return $self->get_journal_query_params($query_params); diff --git a/lib/NGCP/Panel/Controller/API/RtcSessions.pm b/lib/NGCP/Panel/Controller/API/RtcSessions.pm index a7752668b0..a8a82886db 100644 --- a/lib/NGCP/Panel/Controller/API/RtcSessions.pm +++ b/lib/NGCP/Panel/Controller/API/RtcSessions.pm @@ -33,9 +33,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::RtcSessions/; sub resource_name{ return 'rtcsessions'; } + sub dispatch_path{ return '/api/rtcsessions/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-rtcsessions'; } diff --git a/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm b/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm index f28223a898..b3b724282f 100644 --- a/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm @@ -18,9 +18,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::RtcSession sub resource_name{ return 'rtcsessions'; } + sub dispatch_path{ return '/api/rtcsessions/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-rtcsessions'; } diff --git a/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm b/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm index 82f24c2365..bac9284d04 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm @@ -32,9 +32,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SoundFiles/; sub resource_name{ return 'soundfilerecordings'; } + sub dispatch_path{ return '/api/soundfilerecordings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-soundfilerecordings'; } diff --git a/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm index f1ef2beb7b..b52ff9230e 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::SoundFiles sub resource_name{ return 'soundfilerecordings'; } + sub dispatch_path{ return '/api/soundfilerecordings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-soundfilerecordings'; } diff --git a/lib/NGCP/Panel/Controller/API/SoundFiles.pm b/lib/NGCP/Panel/Controller/API/SoundFiles.pm index f3b2547437..dca4328d13 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFiles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFiles.pm @@ -44,9 +44,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SoundFiles/; sub resource_name{ return 'soundfiles'; } + sub dispatch_path{ return '/api/soundfiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-soundfiles'; } diff --git a/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm b/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm index d97ff05c37..3b91c33af9 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::SoundFiles sub resource_name{ return 'soundfiles'; } + sub dispatch_path{ return '/api/soundfiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-soundfiles'; } diff --git a/lib/NGCP/Panel/Controller/API/SoundHandles.pm b/lib/NGCP/Panel/Controller/API/SoundHandles.pm index cda7cad24b..114d418580 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandles.pm @@ -45,9 +45,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SoundHandles/; sub resource_name{ return 'soundhandles'; } + sub dispatch_path{ return '/api/soundhandles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-soundhandles'; } diff --git a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm index 0c71745ba0..452164e8a0 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::SoundHandl sub resource_name{ return 'soundhandles'; } + sub dispatch_path{ return '/api/soundhandles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-soundhandles'; } diff --git a/lib/NGCP/Panel/Controller/API/SoundSets.pm b/lib/NGCP/Panel/Controller/API/SoundSets.pm index c96c5bb1fe..e9054cee43 100644 --- a/lib/NGCP/Panel/Controller/API/SoundSets.pm +++ b/lib/NGCP/Panel/Controller/API/SoundSets.pm @@ -65,9 +65,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SoundSets/; sub resource_name{ return 'soundsets'; } + sub dispatch_path{ return '/api/soundsets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-soundsets'; } diff --git a/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm b/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm index 309767db84..8f0beb489a 100644 --- a/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::SoundSets/ sub resource_name{ return 'soundsets'; } + sub dispatch_path{ return '/api/soundsets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-soundsets'; } diff --git a/lib/NGCP/Panel/Controller/API/SpeedDials.pm b/lib/NGCP/Panel/Controller/API/SpeedDials.pm index e8105c3252..04b282e80b 100644 --- a/lib/NGCP/Panel/Controller/API/SpeedDials.pm +++ b/lib/NGCP/Panel/Controller/API/SpeedDials.pm @@ -49,9 +49,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SpeedDials/; sub resource_name{ return 'speeddials'; } + sub dispatch_path{ return '/api/speeddials/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-speeddials'; } diff --git a/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm b/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm index c25b23c38d..d9acc3a4ae 100644 --- a/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm @@ -23,9 +23,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::SpeedDials sub resource_name{ return 'speeddials'; } + sub dispatch_path{ return '/api/speeddials/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-speeddials'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm index b15ff25d51..282f678c2e 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm @@ -69,9 +69,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Preferences/; sub resource_name{ return 'subscriberpreferences'; } + sub dispatch_path{ return '/api/subscriberpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscriberpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm index 6e2be435e8..1c5e299d98 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm @@ -24,9 +24,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Preference sub resource_name{ return 'subscriberpreferences'; } + sub dispatch_path{ return '/api/subscriberpreferences/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscriberpreferences'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm index c93bd8cdbd..e29e2bb2f9 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SubscriberProf sub resource_name{ return 'subscriberprofilesets'; } + sub dispatch_path{ return '/api/subscriberprofilesets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscriberprofilesets'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm index 9a23139b62..23d5c084bb 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Subscriber sub resource_name{ return 'subscriberprofilesets'; } + sub dispatch_path{ return '/api/subscriberprofilesets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscriberprofilesets'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm index b9954de5b5..d4006a902b 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SubscriberProf sub resource_name{ return 'subscriberprofiles'; } + sub dispatch_path{ return '/api/subscriberprofiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscriberprofiles'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm index afb79c5355..f35906f048 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Subscriber sub resource_name{ return 'subscriberprofiles'; } + sub dispatch_path{ return '/api/subscriberprofiles/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscriberprofiles'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm index 7a8a600d89..fe7ea86de3 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm @@ -63,9 +63,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SubscriberRegi sub resource_name{ return 'subscriberregistrations'; } + sub dispatch_path{ return '/api/subscriberregistrations/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscriberregistrations'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm index 996ad999ba..feb4d2b9fb 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Subscriber sub resource_name{ return 'subscriberregistrations'; } + sub dispatch_path{ return '/api/subscriberregistrations/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscriberregistrations'; } diff --git a/lib/NGCP/Panel/Controller/API/Subscribers.pm b/lib/NGCP/Panel/Controller/API/Subscribers.pm index 0fb3b51c25..f83c614b30 100644 --- a/lib/NGCP/Panel/Controller/API/Subscribers.pm +++ b/lib/NGCP/Panel/Controller/API/Subscribers.pm @@ -29,6 +29,7 @@ sub api_description { 'XMPP and place and receive calls via SIP. A subscriber always belongs to a '. 'Customer and is placed inside a Domain.'; } + sub documentation_sample_update { return { "domain_id" => 4, "password" => "test", @@ -266,9 +267,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Subscribers/; sub resource_name{ return 'subscribers'; } + sub dispatch_path{ return '/api/subscribers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscribers'; } diff --git a/lib/NGCP/Panel/Controller/API/SubscribersItem.pm b/lib/NGCP/Panel/Controller/API/SubscribersItem.pm index 4824f86a15..cd989b74a3 100644 --- a/lib/NGCP/Panel/Controller/API/SubscribersItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscribersItem.pm @@ -24,9 +24,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Subscriber sub resource_name{ return 'subscribers'; } + sub dispatch_path{ return '/api/subscribers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-subscribers'; } diff --git a/lib/NGCP/Panel/Controller/API/SystemContacts.pm b/lib/NGCP/Panel/Controller/API/SystemContacts.pm index 7a49c16127..96af383457 100644 --- a/lib/NGCP/Panel/Controller/API/SystemContacts.pm +++ b/lib/NGCP/Panel/Controller/API/SystemContacts.pm @@ -44,9 +44,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SystemContacts sub resource_name{ return 'systemcontacts'; } + sub dispatch_path{ return '/api/systemcontacts/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-systemcontacts'; } diff --git a/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm b/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm index a34b46b808..e1455b705a 100644 --- a/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::SystemCont sub resource_name{ return 'systemcontacts'; } + sub dispatch_path{ return '/api/systemcontacts/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-systemcontacts'; } diff --git a/lib/NGCP/Panel/Controller/API/TopupCash.pm b/lib/NGCP/Panel/Controller/API/TopupCash.pm index b0fbb2e0b2..1499c09dd2 100644 --- a/lib/NGCP/Panel/Controller/API/TopupCash.pm +++ b/lib/NGCP/Panel/Controller/API/TopupCash.pm @@ -37,9 +37,11 @@ sub query_params { sub resource_name{ return 'topupcash'; } + sub dispatch_path{ return '/api/topupcash/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-topupcash'; } diff --git a/lib/NGCP/Panel/Controller/API/TopupLogs.pm b/lib/NGCP/Panel/Controller/API/TopupLogs.pm index b0cc408803..09a5eb0237 100644 --- a/lib/NGCP/Panel/Controller/API/TopupLogs.pm +++ b/lib/NGCP/Panel/Controller/API/TopupLogs.pm @@ -149,9 +149,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::TopupLogs/; sub resource_name{ return 'topuplogs'; } + sub dispatch_path{ return '/api/topuplogs/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-topuplogs'; } diff --git a/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm b/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm index bc06508839..990e4f2dee 100644 --- a/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm +++ b/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::TopupLogs/ sub resource_name{ return 'topuplogs'; } + sub dispatch_path{ return '/api/topuplogs/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-topuplogs'; } diff --git a/lib/NGCP/Panel/Controller/API/TopupVouchers.pm b/lib/NGCP/Panel/Controller/API/TopupVouchers.pm index 622d321ca2..08c792bf9a 100644 --- a/lib/NGCP/Panel/Controller/API/TopupVouchers.pm +++ b/lib/NGCP/Panel/Controller/API/TopupVouchers.pm @@ -37,9 +37,11 @@ sub query_params { sub resource_name{ return 'topupvouchers'; } + sub dispatch_path{ return '/api/topupvouchers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-topupvouchers'; } diff --git a/lib/NGCP/Panel/Controller/API/TrustedSources.pm b/lib/NGCP/Panel/Controller/API/TrustedSources.pm index 02a4316250..04ada7c832 100644 --- a/lib/NGCP/Panel/Controller/API/TrustedSources.pm +++ b/lib/NGCP/Panel/Controller/API/TrustedSources.pm @@ -48,9 +48,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::TrustedSources sub resource_name{ return 'trustedsources'; } + sub dispatch_path{ return '/api/trustedsources/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-trustedsources'; } diff --git a/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm b/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm index 315ef7e40c..7b80537be0 100644 --- a/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm +++ b/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::TrustedSou sub resource_name{ return 'trustedsources'; } + sub dispatch_path{ return '/api/trustedsources/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-trustedsources'; } diff --git a/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm b/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm index b736fad9ee..15eb371b36 100644 --- a/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm +++ b/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm @@ -47,9 +47,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::UpnRewriteSets sub resource_name{ return 'upnrewritesets'; } + sub dispatch_path{ return '/api/upnrewritesets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-upnrewritesets'; } diff --git a/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm b/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm index a4524cc7cd..033fe4d6fd 100644 --- a/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::UpnRewrite sub resource_name{ return 'upnrewritesets'; } + sub dispatch_path{ return '/api/upnrewritesets/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-upnrewritesets'; } diff --git a/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm b/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm index ddf6adbabe..b132679a8e 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm @@ -27,9 +27,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::VoicemailRecor sub resource_name{ return 'voicemailrecordings'; } + sub dispatch_path{ return '/api/voicemailrecordings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-voicemailrecordings'; } diff --git a/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm index a2dc452105..39e38f2c5a 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm @@ -22,9 +22,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::VoicemailR sub resource_name{ return 'voicemailrecordings'; } + sub dispatch_path{ return '/api/voicemailrecordings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-voicemailrecordings'; } diff --git a/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm b/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm index c7e04d8fea..a1d5b0f697 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm @@ -47,9 +47,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::VoicemailSetti sub resource_name{ return 'voicemailsettings'; } + sub dispatch_path{ return '/api/voicemailsettings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-voicemailsettings'; } diff --git a/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm index 1d60f82c51..72ef909a4c 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::VoicemailS sub resource_name{ return 'voicemailsettings'; } + sub dispatch_path{ return '/api/voicemailsettings/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-voicemailsettings'; } diff --git a/lib/NGCP/Panel/Controller/API/Voicemails.pm b/lib/NGCP/Panel/Controller/API/Voicemails.pm index 33f8e2985b..45b1e64722 100644 --- a/lib/NGCP/Panel/Controller/API/Voicemails.pm +++ b/lib/NGCP/Panel/Controller/API/Voicemails.pm @@ -56,9 +56,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Voicemails/; sub resource_name{ return 'voicemails'; } + sub dispatch_path{ return '/api/voicemails/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-voicemails'; } diff --git a/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm index 1e6b19f942..b9422dae1d 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm @@ -21,9 +21,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Voicemails sub resource_name{ return 'voicemails'; } + sub dispatch_path{ return '/api/voicemails/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-voicemails'; } diff --git a/lib/NGCP/Panel/Controller/API/Vouchers.pm b/lib/NGCP/Panel/Controller/API/Vouchers.pm index de11c7fc4f..c2a0ae0d00 100644 --- a/lib/NGCP/Panel/Controller/API/Vouchers.pm +++ b/lib/NGCP/Panel/Controller/API/Vouchers.pm @@ -54,9 +54,11 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::Vouchers/; sub resource_name{ return 'vouchers'; } + sub dispatch_path{ return '/api/vouchers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-vouchers'; } diff --git a/lib/NGCP/Panel/Controller/API/VouchersItem.pm b/lib/NGCP/Panel/Controller/API/VouchersItem.pm index 756192bf9a..03a866074e 100644 --- a/lib/NGCP/Panel/Controller/API/VouchersItem.pm +++ b/lib/NGCP/Panel/Controller/API/VouchersItem.pm @@ -20,9 +20,11 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::Vouchers/; sub resource_name{ return 'vouchers'; } + sub dispatch_path{ return '/api/vouchers/'; } + sub relation{ return 'http://purl.org/sipwise/ngcp-api/#rel-vouchers'; }