From eaf28bec33c3c8eda3768abbf061eb360bf90691 Mon Sep 17 00:00:00 2001 From: Henrik Hodne Date: Fri, 16 Nov 2012 10:44:45 -0600 Subject: [PATCH] Add documentation to /repos This documents what @drogus mentioned here: https://github.com/travis-ci/travis-ci/issues/503#issuecomment-10447864 --- lib/travis/api/app/endpoint/repos.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/travis/api/app/endpoint/repos.rb b/lib/travis/api/app/endpoint/repos.rb index 7ff1b4cc..40f14995 100644 --- a/lib/travis/api/app/endpoint/repos.rb +++ b/lib/travis/api/app/endpoint/repos.rb @@ -3,6 +3,11 @@ require 'travis/api/app' class Travis::Api::App class 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 respond_with service(:repositories, :find_all, params) end