Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
9de71a7fce24
Commit
411d0a93
authored
Aug 22, 2016
by
Douglas Barbosa Alexandre
Committed by
Stan Hu
Nov 21, 2016
Browse files
Add an endpoint to get a single user repository
parent
73308deb6ee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bitbucket/client.rb
View file @
9de71a7f
...
...
@@ -5,6 +5,11 @@ def initialize(options = {})
end
def
repo
(
name
)
parsed_response
=
connection
.
get
(
"/repositories/
#{
name
}
"
)
Representation
::
Repo
.
new
(
parsed_response
)
end
def
repos
relative_path
=
"/repositories/
#{
user
.
username
}
"
paginator
=
Paginator
.
new
(
connection
,
relative_path
,
:repo
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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