TT#28460 Replace configs - not journalized

Change-Id: I9843a780817922f23faa91041d3fab9b7336b2a3
changes/00/18300/14
Irina Peshinskaya 8 years ago
parent d527ebd953
commit 9fa2a19b4f

@ -39,18 +39,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-applyrewrites';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -42,18 +42,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-autoattendants';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin/],
});

@ -86,18 +86,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-balanceintervals';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub GET :Allow {

@ -52,16 +52,9 @@ sub query_params {
];
}
__PACKAGE__->config(
action => {
(map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }),
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
AllMethods => {
item_base => {
Chained => '/',
PathPart => 'api/' . __PACKAGE__->resource_name,
@ -94,6 +87,19 @@ __PACKAGE__->config(
AllowedRole => [qw/admin reseller/],
Does => [qw(ACL RequireSSL)]
},
}
});
__PACKAGE__->config(
action => {
(map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }),
},
);

@ -51,18 +51,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-billingfees';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub auto :Private {

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-billingfees';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -76,18 +76,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-billingnetworks';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -63,18 +63,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-billingprofiles';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -61,18 +61,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-billingzones';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -40,18 +40,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-ccmapentries';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -65,18 +65,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-cfdestinationsets';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -56,18 +56,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-cfmappings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -72,18 +72,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-cfsourcesets';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -65,18 +65,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-cftimesets';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -42,18 +42,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-callcontrols';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -58,18 +58,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-callforwards';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -276,18 +276,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-calllists';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -29,18 +29,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-calllists';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -34,18 +34,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordingfiles';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
1;

@ -29,18 +29,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordingfiles';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {

@ -67,18 +67,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordingstreams';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {

@ -30,18 +30,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordingstreams';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {

@ -74,18 +74,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {

@ -28,18 +28,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-callrecordings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {

@ -75,18 +75,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-calls';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-calls';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -46,18 +46,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-capabilities';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {

@ -29,18 +29,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-capabilities';
}
__PACKAGE__->config(
action => {
(map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }),
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {

@ -75,18 +75,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-contracts';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => 'admin',
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});
sub GET :Allow {

@ -118,18 +118,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-customerbalances';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub GET :Allow {

@ -62,18 +62,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-customercontacts';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -54,18 +54,9 @@ sub relation{
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -35,18 +35,9 @@ sub query_params {
}
__PACKAGE__->config(
action => {
(map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }),
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -77,18 +77,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-customerfraudpreferences';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub GET :Allow {

@ -64,18 +64,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-customerlocations';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -52,18 +52,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-customerpreferences';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -61,18 +61,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-customerzonecosts';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -30,18 +30,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-customerzonecosts';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -147,18 +147,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-customers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub GET :Allow {

@ -43,18 +43,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-domainpreferences';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -30,18 +30,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-domainpreferences';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -64,18 +64,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-domains';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -61,18 +61,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-emailtemplates';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-emailtemplates';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -62,18 +62,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-emergencymappingcontainers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -28,18 +28,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-emergencymappingcontainers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -80,18 +80,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-emergencymappings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-emergencymappings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -97,18 +97,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-events';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub GET :Allow {

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-events';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub GET :Allow {

@ -34,18 +34,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-faxrecordings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -30,18 +30,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-faxrecordings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});

@ -101,19 +101,12 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-faxes';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
('POST' eq $_) ? (ContentType => ['multipart/form-data']) : (),
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
GET => {
ContentType => ['multipart/form-data'],
}
});

@ -28,18 +28,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-faxes';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -72,18 +72,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-faxserversettings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -62,18 +62,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-interceptions';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -28,18 +28,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-interceptions';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -61,18 +61,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-invoicetemplates';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-invoicetemplates';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -62,18 +62,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-lnpcarriers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-lnpcarriers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -71,18 +71,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-lnpnumbers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-lnpnumbers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -72,18 +72,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-mailtofaxsettings';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -119,18 +119,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-maliciouscalls';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-maliciouscalls';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -45,18 +45,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-managersecretary';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin subscriber/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {

@ -30,18 +30,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-metaconfigdefs';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],#left adminand reseller, as test can run as reseller too. Just don't return full config
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -61,18 +61,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-ncoslevels';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-ncoslevels';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -61,18 +61,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-ncoslnpcarriers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-ncoslnpcarriers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -50,18 +50,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-ncospatterns';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-ncospatterns';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -86,18 +86,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-numbers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin/],
});
sub GET :Allow {

@ -43,18 +43,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-partycallcontrols';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -39,18 +39,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceconfigfiles';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceconfigfiles';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -72,18 +72,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceconfigs';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceconfigs';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -39,18 +39,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwarebinaries';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -28,18 +28,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwarebinaries';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -73,18 +73,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwares';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicefirmwares';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -34,18 +34,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevicepreferences';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -34,18 +34,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceprofilepreferences';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

@ -62,18 +62,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceprofiles';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin/],
});

@ -30,18 +30,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdeviceprofiles';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin/],
});

@ -74,18 +74,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevices';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin/],
});

@ -30,18 +30,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-pbxdevices';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller subscriberadmin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods },
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin/],
});

@ -51,18 +51,9 @@ sub query_params {
];
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -17,18 +17,9 @@ sub allowed_methods{
return [qw/GET OPTIONS HEAD PATCH PUT DELETE/];
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -73,18 +73,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-peeringinboundrules';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-peeringinboundrules';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -73,18 +73,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-peeringrules';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-peeringrules';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -42,18 +42,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-peeringserverpreferences';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -94,18 +94,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-peeringservers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -27,18 +27,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-peeringservers';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin/],
Args => 1,
Does => [qw(ACL RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin/],
});

@ -90,18 +90,9 @@ sub relation{
return 'http://purl.org/sipwise/ngcp-api/#rel-profilepackages';
}
__PACKAGE__->config(
action => {
map { $_ => {
ACLDetachTo => '/api/root/invalid_user',
AllowedRole => [qw/admin reseller/],
Args => 0,
Does => [qw(ACL CheckTrailingSlash RequireSSL)],
Method => $_,
Path => __PACKAGE__->dispatch_path,
} } @{ __PACKAGE__->allowed_methods }
},
);
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});

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

Loading…
Cancel
Save