GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.yegor256.com — Object-Oriented GitHub API Please, cite this blog post via BibTeX as such: @misc{bugayenko2014blog0514,
author = {Bugayenko, Yegor},
title = {{Object-Oriented GitHub API}},
howpublished = {\url{https://www.yegor256.com/140514.html}},
year = {2014},
month = {may},
note = {[Online; accessed 28-11-2026]}
}![]() GitHub is an awesome platform for maintaining Git sources and tracking project issues. I moved all my projects (both private and public) to GitHub about three years ago and have no regrets. Moreover, GitHub gives access to almost all of its features through RESTful JSON API. There are a few Java SDK-s that wrap and expose the API. I tried to use them, but faced a number of issues:
Keeping in mind all those drawbacks, I created my own library—jcabi-github. Let’s look at its most important advantages. Object Oriented for RealGitHub server is an object. A collection of issues is an object, an individual issue is an object, its author is an author, etc. For example, to retrieve the name of the author we use: Needless to say, Mock Engine
This is much more convenient and compact than traditional mocking via Mockito or a similar framework. ExtensibleIt is based on JSR-353 and uses For example, you want to get the value of We’re using method No other library allows such direct access to JSON objects returned by the GitHub server. Let’s see another example. Say, you want to use some feature from GitHub that is not covered by the API. You get a jcabi-http HTTP client is used by jcabi-github. ImmutableAll classes are truly immutable and annotated with Version 0.8A few days ago we released the latest version 0.8. It is a major release, that included over 1200 commits. It covers the entire GitHub API and is supposed to be very stable. The library ships as a JAR dependency in Maven Central (get its latest versions in Maven Central): |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |