Skip to main content
summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2012-01-05Add service support for comparing commitsKevin Sawicki3-0/+275
Bug: 367807 Change-Id: I56ba82ed790449114f962c0b6fb8ec449910a21f
2011-12-27Overload methods to take an IRepositoryIdProvider parameterKevin Sawicki2-9/+222
This commit makes MilestoneService and LabelService consistent with other services Change-Id: Idd08a3e739504989970d297893500600f9e0962e
2011-12-20Overload methods to take an IRepositoryIdProvider parameterKevin Sawicki1-16/+154
IssueService was one of the original services before IRepositoryIdProvider was introduced so methods to get issues and issue comments still take both a String user and String repository parameter. This commit makes IssueService consistent with other services. Change-Id: Ieb535342c00ec994e51560e16ce687d12068b987
2011-12-18Bump user agent versions to 1.3.0Kevin Sawicki1-1/+1
Change-Id: I552ea379ba58bbedc31274183cae2ddb0150bb64
2011-12-18Add configuration of send/receive buffer sizesKevin Sawicki1-2/+19
Change-Id: Iadbfb74b474d14ef14f11484da8e968cc69a856a
2011-12-16Allow request to specify 'Accept' header valueKevin Sawicki3-0/+38
Also add constants to service class for HTML and full values Change-Id: I9df737e2a882778997dc8cb95b0091dd4dc43212
2011-12-16Add missing bodyText and bodyHtml fieldsKevin Sawicki3-0/+108
These fields are present when certain values are specified in the Accept header of the request Change-Id: Idccdaeb8fa01848e172bb7549fd1ece3dec18092
2011-12-16Add constants for user typesKevin Sawicki1-0/+10
Change-Id: Ie28610946df368189ed47bf18ac5632c107726ff
2011-12-14Add missing id and updated at fields to Repository modelKevin Sawicki1-0/+36
Change-Id: I4f9f6ca91af76de852961854f869bc98c582c667
2011-12-14Create model class for event repositoryKevin Sawicki2-8/+83
The repository information included in the Events API does not match the current Repository class and so a new class was added to capture just the specific fields present Change-Id: I6521813bfbf6d85797a1348f48b029192fc89d85
2011-12-14Make CommitCommentPayload utilize the CommitComment objectEddie Ringle1-4/+4
Change-Id: If591079a5f8767d7d4c432301b28f57e2a61f6b3 Signed-off-by: Eddie Ringle <eddie@eringle.net>
2011-12-13Add service support for Event APIJason Tsay24-0/+1941
Implements support for the GitHub Event API. Event payload returned as an EventPayload object (which is empty) and is left to the caller to cast to the appropriate payload subclass. Page model class also added to support GollumEvent payload. Bug: 364424 Change-Id: I3ed4f7f74e394ce8ad60dcdde6a99e510ade59dc Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <zx@twitter.com>
2011-12-12Drop dependency on Apache HttpComponents (HC)Kevin Sawicki16-615/+940
HC was used sparingly and added several additional JAR requirements that made the GitHub Java API unusable on Android due to these dependencies. A HttpURLConnection is now used instead to make all request types. Change-Id: I82e442139d3adec3d2331f279bde69320b13638d Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-12-07Set Accept header to 'application/vnd.github.beta+json'Kevin Sawicki1-1/+2
This was the JSON version the model classes were derived from Change-Id: Ib1d020bdc0099656e560f4f566434cfab4ab95e2
2011-11-10Use file portion instead of entire next page URIKevin Sawicki2-2/+13
Link headers contain the full host name and therefore prefix checking should be done against the file portion only of the URL. Change-Id: I89444f8edfaf818d393179b9d0328f65cf7ff854 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-11-10Add service support for OAuth authorization APIKevin Sawicki4-0/+369
Change-Id: I18dd6a66d3d6191bfc68b914fec746832d695110 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-11-10Implement Serializable in CommitStats model classKevin Sawicki1-1/+6
Change-Id: I1d28dc7f23038109258298e7b666cc4fbedd30d7 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-11-10Add missing files and stats from RepositoryCommit classKevin Sawicki2-0/+107
Change-Id: I888ec6b7e3c09177a29bbf5d8f45bf4859eb1ea6 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-30Escape '.' characters in search query to '%2E'Kevin Sawicki1-1/+2
Change-Id: I2fc31f370a2c87fbadbc5523473b855e29d53ad5 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-29Use null prefix for API v2 host nameKevin Sawicki1-4/+6
Change-Id: I56e75fb43903044280434c1b41b08c57f7ac1223 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-29Support searching repositories using all parameters.Kevin Sawicki1-6/+53
Previously only language was supported, now all search parameters such as watchers count, size, etc. can be searched for using an input parameters map. Change-Id: I6d5b2f95ec1b72090e8154dde1a3b421bf192af7 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-28Support start page parameter when searching repositories.Kevin Sawicki2-4/+45
Change-Id: Ib0fd45bbc96dff83b453aec4f6ccd5375d03fffc Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-27Correct typo in createPut commentKevin Sawicki1-1/+1
Change-Id: I1c3e50e313166b354c1eed0bcd6dede2c449fcc9 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-27Support non-github.com host names.Kevin Sawicki2-11/+40
A URI prefix of '/api/v3' will be prepended to all request URIs when the configured client host is not github.com or gist.github.com Change-Id: I71549652c321b2ead7b702abfc2d9113f457956f Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-27Set 'Accept' header to 'application/json'.Kevin Sawicki1-0/+3
All responses are expected to be and parsed as JSON. Change-Id: Id9fd3b392b2a19d9ceb8a823ed2545c980517a4f Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-17Correct typo in UserService.getUser commentKevin Sawicki1-1/+1
Change-Id: I1fecf88cabe4db8bc188d848773bcd6f15701360 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-17Update User-Agent header version to 1.2.0Kevin Sawicki1-1/+1
Change-Id: I4874e0160db701602d36c43276a4eca1c02a71b6 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-17Add serialize null configuration to GitHubClient.Kevin Sawicki2-8/+58
This allows applications to configure whether or not null fields in model classes should be serialized when transformed to JSON. This setting can be used to update only specific resource fields without first requiring a request for the entire resource model to preserve existing field values. Change-Id: I2677417dceba947deafdde9b949955140180c3f0 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-14Implement Serializable interface in all model classesKevin Sawicki6-6/+35
Change-Id: I99d107d850d059b0be685b6d00f8e629e137ea67 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-13Add service support for working with repository hooks.Kevin Sawicki4-0/+341
Hooks can now be listed, created, edited, deleted, and tested through RepositoryService. Change-Id: Ia52d89b22c84d3224c613398e2975e1586bd4d0c Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-12Add service support for getting a repository's contributorsKevin Sawicki3-0/+175
Change-Id: I2073aa46343328d73bdb1f80909d69c8eeb927dd Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-11Add service support for filtering repositories.Kevin Sawicki1-2/+133
This currently supports filtering repository requests by type such as public, private, and member. Change-Id: I6cfdd65dedcd93b6130021dedacaf524206c6d48 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-11Add service support for getting a repository's branch and tagsKevin Sawicki4-0/+188
Change-Id: Ie2be88dc6b10ae2d9ed7b4bf784f66b94e07ec9b Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-11Add service support for getting a repository's teamsKevin Sawicki1-0/+20
Change-Id: I0b3a118088e3430e1c2b558483957715e015a4a9 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-11Add service support for getting languages used in a repositoryKevin Sawicki2-0/+24
Change-Id: Idf89a7007ad1e706f965d5499a53c24a94650303 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-07Specify UTF-8 as charset used when reading JSON streamKevin Sawicki1-1/+2
Change-Id: Ief798013cad95ef9c9df04ea806a354a8b30d39c Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-04Correct swapped ref and sha request properties.Kevin Sawicki1-2/+2
The properties to create a reference were incorrectly mapped in the input map causing create reference calls to fail. Change-Id: Ib96042a93a96cfd94a96b6605a4ce89e2a9003e5 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-29Support 'custom' code when formatting field errorsKevin Sawicki2-0/+13
Change-Id: Icdda0a67ab14f44121c95276a1b80851c3a2cfb4 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-29Add missing issue filter and sort constantsKevin Sawicki1-0/+35
Change-Id: I3a761fbbd89f9827c9c1648a526410fdc30c4aae Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-27Add message field to the FieldError model class.thallgren1-0/+17
Certain errors reported from GitHub have a 'message' field. This field is missing in the FieldError class which means that the information is lost. Bug: 358924 Change-Id: I6d00fae2fb839e0900629eeda46f6f7600d1fd59 Signed-off-by: Thomas Hallgren <thomas@tada.se> Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-26Add content-type field to Download model classthallgren1-0/+18
Change-Id: Ic66b1d2814cdeefa769158969c241e39071b92c0 Signed-off-by: Thomas Hallgren <thomas@tada.se> Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-25Add service support for editing a repositorythallgren1-0/+17
Change-Id: Ib69f15094d568d015ab36706f553d337a73c984c Signed-off-by: Thomas Hallgren <thomas@tada.se> Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-15Support pagination of user and organization repositories.Kevin Sawicki1-11/+131
Also add unit tests for RepositoryService class. Change-Id: I4b3bed05fdb00eef87193aa165f266d22fd543b6 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-13Create paged request with start and size parameters.Kevin Sawicki1-1/+1
Previously parameters were being ignored and the default paged request was being created for paging over pull requests. Change-Id: Id8008e9eda1e60303f9b780683c89ed72dd6418e Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-13Add mirror URL field to repository modelKevin Sawicki1-0/+18
Change-Id: I15c596b1a7316e7daa8a9d620ea1980371343f73 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-13Mark non-NLS strings, organize imports, and format.Kevin Sawicki16-142/+143
Non-functional change. Change-Id: I6976b6aa55fd8cc79777bb9370e4bad82e6a4397 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-13Correct inconsistent usage of IGitHubConstants fields.Kevin Sawicki2-5/+4
There were two occurrences where both static and non-static imports were being used for constants. Change-Id: Ib042e9c1af182d11e58fded4074d45191a795b5f Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-13Use helper method instead of explicit id checks.Kevin Sawicki1-6/+3
Remove code duplication from 3 methods that weren't using local helper method to verify Gist id is non-null and non-empty when used in a URI path. Change-Id: Ie8afd3827fd01eac492a0c46ef336860d2e14a09 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-11Update exception message to place field name first.Kevin Sawicki1-5/+5
Also add unit tests of RequestException class. Change-Id: Iebc93b2bddc988919bc58f31b2a94322519a375d Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-11Add message for field error code of already_existsKevin Sawicki1-3/+11
Change-Id: I020f1e80aa36ee1dd5070d79fb8e58ad4640e3b4 Signed-off-by: Kevin Sawicki <kevin@github.com>

Back to the top