|
|
|
@ -134,18 +134,8 @@ sub GET :Allow {
|
|
|
|
|
name => 'ngcp',
|
|
|
|
|
templated => true,
|
|
|
|
|
),
|
|
|
|
|
NGCP::Panel::Utils::DataHalLink->new(relation => 'profile', href => 'http://purl.org/sipwise/ngcp-api/');
|
|
|
|
|
|
|
|
|
|
push @links, $self->collection_nav_links($page, $rows, $total_count, $c->request->path, $c->request->query_params);
|
|
|
|
|
|
|
|
|
|
# NGCP::Panel::Utils::DataHalLink->new(relation => 'self', href => sprintf('/%s?page=%s&rows=%s', $c->request->path, $page, $rows));
|
|
|
|
|
|
|
|
|
|
#if(($total_count / $rows) > $page ) {
|
|
|
|
|
# push @links, NGCP::Panel::Utils::DataHalLink->new(relation => 'next', href => sprintf('/%s?page=%d&rows=%d', $c->request->path, $page + 1, $rows));
|
|
|
|
|
#}
|
|
|
|
|
#if($page > 1) {
|
|
|
|
|
# push @links, NGCP::Panel::Utils::DataHalLink->new(relation => 'prev', href => sprintf('/%s?page=%d&rows=%d', $c->request->path, $page - 1, $rows));
|
|
|
|
|
#}
|
|
|
|
|
Data::HAL::Link->new(relation => 'profile', href => 'http://purl.org/sipwise/ngcp-api/'),
|
|
|
|
|
$self->collection_nav_links($c, $page, $rows, $total_count, $c->request->path, $c->request->query_params);
|
|
|
|
|
|
|
|
|
|
my $hal = NGCP::Panel::Utils::DataHal->new(
|
|
|
|
|
embedded => [@embedded],
|
|
|
|
|