Verified Commit f19ff947 authored by Roman Lacko's avatar Roman Lacko
Browse files

BREAKING: GitLab::Repositories: Add prefix for endpoints

parent 3dcf31cf
...@@ -11,7 +11,7 @@ use Log::Any qw($log); ...@@ -11,7 +11,7 @@ use Log::Any qw($log);
our $VERSION = v11.3.4; our $VERSION = v11.3.4;
my $requests = { my $requests = {
ls_tree => { repository_ls_tree => {
method => "GET", method => "GET",
path => "/projects/<pid>/repository/tree", path => "/projects/<pid>/repository/tree",
optional => [qw( optional => [qw(
...@@ -22,17 +22,17 @@ my $requests = { ...@@ -22,17 +22,17 @@ my $requests = {
paginated => 1, paginated => 1,
}, },
get_blob => { repository_get_blob => {
method => "GET", method => "GET",
path => "/projects/<pid>/repository/blobs/<sha>", path => "/projects/<pid>/repository/blobs/<sha>",
}, },
get_blob_raw => { repository_get_blob_raw => {
method => "GET", method => "GET",
path => "/projects/<pid>/repository/blobs/<sha>/raw", path => "/projects/<pid>/repository/blobs/<sha>/raw",
}, },
get_archive => { repository_get_archive => {
method => "GET", method => "GET",
path => "/projects/<pid>/repository/archive", path => "/projects/<pid>/repository/archive",
optional => [qw( optional => [qw(
...@@ -41,7 +41,7 @@ my $requests = { ...@@ -41,7 +41,7 @@ my $requests = {
)], )],
}, },
compare_refs => { repository_compare_refs => {
method => "GET", method => "GET",
path => "/projects/<pid>/repository/compare", path => "/projects/<pid>/repository/compare",
required => [qw( required => [qw(
...@@ -53,7 +53,7 @@ my $requests = { ...@@ -53,7 +53,7 @@ my $requests = {
)], )],
}, },
contributors => { repository_contributors => {
method => "GET", method => "GET",
path => "/projects/<pid>/repository/contributos", path => "/projects/<pid>/repository/contributos",
optional => [qw( optional => [qw(
...@@ -62,7 +62,7 @@ my $requests = { ...@@ -62,7 +62,7 @@ my $requests = {
)], )],
}, },
merge_base => { repository_merge_base => {
method => "GET", method => "GET",
path => "/projects/<pid>/repository/merge_base", path => "/projects/<pid>/repository/merge_base",
required => [qw( required => [qw(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment