Merge pull request #20 from henrikhodne/add-documentation-to-repos
Add documentation to /repos
This commit is contained in:
commit
5fe602807d
|
@ -3,6 +3,11 @@ require 'travis/api/app'
|
||||||
class Travis::Api::App
|
class Travis::Api::App
|
||||||
class Endpoint
|
class Endpoint
|
||||||
class Repos < Endpoint
|
class Repos < Endpoint
|
||||||
|
# Endpoint for getting all repositories.
|
||||||
|
#
|
||||||
|
# You can filter the repositories by adding parameters to the request. For example, you can get all repositories
|
||||||
|
# owned by johndoe by adding `owner_name=johndoe`, or all repositories that johndoe has access to by adding
|
||||||
|
# `member=johndoe`. The parameter names correspond to the keys of the response hash.
|
||||||
get '/' do
|
get '/' do
|
||||||
respond_with service(:repositories, :find_all, params)
|
respond_with service(:repositories, :find_all, params)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user