cat_2.8.2.0.1.0.source-code.searching.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hubcat_2.8.2 Show documentation
Show all versions of hubcat_2.8.2 Show documentation
a vvip client of the github enterprises
The newest version!
package hubcat
import dispatch._
import com.ning.http.client.RequestBuilder
trait Searching { self: Requests =>
object Search {
def issues(user: String, repo: String, open: Boolean, term: String) =
complete(apiHost / "legacy" / "issues" / user / repo / (if(open) "open" else "closed") / term)
def repos(term: String) =
complete(apiHost / "legacy" / "repos" / "search" / term)
def user(term: String) =
complete(apiHost / "legacy" / "user" / "search" / term)
}
def search = Search
}