Commit ed3b23ff authored by Roman Lacko's avatar Roman Lacko
Browse files

fixed eols

parent 0836135a
......@@ -308,7 +308,7 @@ This request requires arguments `title`, `key` and `uid` (since it appears in th
The latter argument will be substituted in the path, the former two will be passed in the body of the request.
### Encoding
my $project_by_id = {
method => "GET",
......@@ -316,20 +316,20 @@ my $project_by_id = {
encode => [ qw(id) ],
From API documentation, this operation returns a project with the given `id`, which can be a numerical value or a string `"NAMESPACE/PROJECT_NAME"`.
Without the `encode` parameter in the template, the following request
would result in the path `gitlab_url/projects/user/project` which is invalid.
The slash, as a reserved character, needs to be encoded using `encode_required` parameter for [`URI::Encode`](
This option is enabled by specifying `id` in the `encode` parameter in the template.
Final URL in this case would be `gitlab_url/projects/user%2Fproject`.
### Pagination and optional arguments
......@@ -77,7 +77,7 @@ Import with `:utils` tag.
$name = GitLab::project_visibility_name($code)
Translates a Project Visibility code to its string representation, i.e. _Privat_, _Internal_ and _Public_.
If the parameter does not represent a valid GitLab Project Visibility code, returns _Invalid_.
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