Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nicholas Bailey
rust-gitlab
Commits
e7cecedc
Commit
e7cecedc
authored
May 26, 2020
by
Ben Boeckel
⛰
Browse files
api/projects: fix environments API endpoint
parent
c888af88
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
e7cecedc
...
...
@@ -15,6 +15,11 @@ parameters was also implemented.
Some additional merge status names for merge requests were missing and have
been added.
## Fixes
*
The
`api::projects::environments::Environment`
endpoint uses the correct
path now.
# v0.1210.1
## New API strategy
...
...
src/api/projects/environments/environment.rs
View file @
e7cecedc
...
...
@@ -34,7 +34,11 @@ impl<'a> Endpoint for Environment<'a> {
}
fn
endpoint
(
&
self
)
->
Cow
<
'static
,
str
>
{
format!
(
"projects/{}/environment/{}"
,
self
.project
,
self
.environment
)
.into
()
format!
(
"projects/{}/environments/{}"
,
self
.project
,
self
.environment
,
)
.into
()
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment