Commit Graph

85 Commits

Author SHA1 Message Date
Brendan Forster 4105bc9119 added hook for providing a proxy to HttpClientAdapter 2014-01-15 16:40:44 -08:00
Henrik Andersson 5f93e1f936 Return a more helpful error message in the event of a 404 due to an invalid refs path. 2013-12-29 10:30:04 +10:00
Haacked c96b00650e Add comments to concrete types
We now have a build task that copies comments from interface to
implementation.
2013-12-11 14:22:39 -08:00
Peter MacNaughton 4edab7ca7e IConnection documented 2013-12-02 22:11:16 -07:00
Kristian Hellang 727429278e Fixed some R# documentation analysis errors 2013-11-25 23:40:47 +01:00
pltaylor a91104c3e9 Merge Master
Again.
2013-11-14 19:43:07 -05:00
Haroon fff1712fa0 updated wording 2013-11-14 22:40:06 +00:00
Haroon 2ee9682ba1 Rename method name - it was a PUT 2013-11-14 11:49:20 +00:00
Haroon 8233219095 Add new PUT method onto IConnection 2013-11-14 11:49:19 +00:00
Haroon 2ac500ba2c Added Task Put(Uri uri) 2013-11-14 11:49:18 +00:00
pltaylor 0a86f493e8 Merged master 2013-11-13 20:49:15 -05:00
pltaylor cf31e1da02 code review cleanups. 2013-11-13 19:53:52 -05:00
James R Sconfitto 9b2b3306e0 Remove silly redundant method 2013-11-10 13:23:36 -05:00
James R Sconfitto cdad0ad809 Return a status code from Delete requests 2013-11-09 10:46:46 -05:00
James R Sconfitto 92b52ff391 Merge branch 'master' into starred-client 2013-11-08 09:00:04 -05:00
James R Sconfitto ff136ee824 Add ability to stop starring a repository
Change the `DeleteAsync` method to return `Task<IResponse<object>>` in
order to check the status code
2013-11-08 07:51:51 -05:00
pltaylor 04349e6172 Strip '-' from strings coming in to be de-serialized. 2013-11-07 14:26:01 -05:00
Haacked a363696544 Filled in more documentation. Made it consistent. 2013-11-07 10:14:01 -08:00
Brendan Forster b3ceb1d661 we should deserialize Urls in a specific way 2013-11-04 17:58:42 +11:00
Steffen Forkmann 32430c47e3 Using the version from the ReleaseNotes.md and set it for the AssemblyVersion of the projects. 2013-11-01 18:54:12 +01:00
Matt Burke 93d8c05c12 Set content type for streamed uploads. 2013-11-01 09:37:09 -04:00
Brendan Forster 70bb3bdbfc 💄 trim some long lines 2013-10-31 12:22:43 +11:00
Brendan Forster 43e82e124f doing await right by calling .ConfigureAwait(false) 2013-10-31 12:06:46 +11:00
Brendan Forster c22a9c874f some more cleanup of unnecessary async/await 2013-10-31 11:39:09 +11:00
Haacked 099db40dbd Use the dictionary for 404
Cleaning up the code to use the dictionary lookup.
2013-10-29 17:03:27 -07:00
Haacked e9602a3dad Fix base address to end with slash 2013-10-29 16:51:45 -07:00
Haacked 6b7a6b7137 Build user agent from user supplied product info
Rather than create a default user agent, we'll build the user agent for
the user of the library. We only require that the user provide us
product information.

fixes #61
2013-10-28 11:20:38 -07:00
Haacked e1d618dcaa Implement AssigneesClient
Implement client to list and check available assignees for a repository
2013-10-23 14:51:48 -07:00
Haacked 70b94187b3 Add NotFoundException for 404 status 2013-10-23 14:46:59 -07:00
Haacked ad210cecc7 Implement IssuesClient and interface
This required updating our serialization strategy so we handle enums
better.
2013-10-23 14:46:19 -07:00
Haacked 20659c4be2 Only set decompression when supported 2013-10-23 08:55:39 -07:00
Brendan Forster efbb49fbc4 specify the correct Accept-Encoding headers 2013-10-23 14:43:57 +11:00
Haacked 14ad942ea8 RateLimit class encapsulates rate limit headers
Added a RateLimit class to encapsulate pulling rate limit information
from the headers. This is now exposed by ApiInfo as well as the
RateLimitExceeededException. That way these two classes are not grabbing
the same information in different ways which we were doing before.
2013-10-18 14:49:00 -07:00
Haacked a1887837be Implement 403 exception handling
This implements exception handling for the various 403 cases based off
of the Octokit.rb implementation.
https://github.com/octokit/octokit.rb/blob/master/lib/octokit/error.rb

Fixes #85
2013-10-17 22:22:56 -07:00
Haacked 998f5f54fd Change ReadOnlyPagedCollection to accept a Func
This is technically better because the old way was actually losing
accepts header and parameters.
2013-10-15 16:12:58 -07:00
Haacked 995e0c5b55 More api cleanup
Make accepts come before contentType everywhere. Also remove unnecessary
overloads of IConnection.
2013-10-15 15:43:52 -07:00
Haacked fa4402f957 Rename endpoint to uri everywhere 2013-10-15 14:06:04 -07:00
Haacked 50a197742d Fix releases client to pass accepts header 2013-10-15 13:59:14 -07:00
Haacked 25c83ac206 Reorder accepts and contentType parameters 2013-10-15 13:47:49 -07:00
Haacked d6e560c737 Remove type argument from DeleteAsync 2013-10-15 13:43:16 -07:00
half-ogre f742d507d2 add API doc for IApiConnection 2013-10-15 11:46:35 -07:00
half-ogre 6dc68a29af add API doc for ApiConnection 2013-10-15 11:44:03 -07:00
Haacked 2168d92e8f Fix bug with Put setting invalid content type
Turns out we were calling the wrong overload.
2013-10-15 10:18:17 -07:00
Haacked f49939ab10 Add Put tests and fix test names 2013-10-15 10:09:25 -07:00
half-ogre 5ff270dc55 use HTTP verbs for clarity: PATCH edition 2013-10-14 12:41:35 -07:00
half-ogre e933ca7391 make Upload a generic POST
The Releases API-specific part of uploading (the accept header) is now
in the Releases client and the API connection just has a generic POST
method. /cc @spraints
2013-10-14 12:38:10 -07:00
half-ogre a0306ae1df use HTTP verbs for clarity: PUT edition
GetOrCreate no more
2013-10-14 12:14:29 -07:00
half-ogre e7da50cb9d remove the T from ApiConnection{T}
It isn't buying is much, and by getting rid of it we can make API
connection more general. getting rid of strangeness like GetItem and
Upload
2013-10-14 12:05:10 -07:00
Haacked db2f805bc8 Support requests with HttpContent body
If a 3rd party client needs to provide a specific HttpContent, we should
allow that in the adapter. Our clients probably shouldn't do this as it
would break encapsulation.
2013-10-11 14:34:09 -07:00
Haacked 7ad713c33b Set default timeout to 100 seconds
This is the same as HttpClient.
2013-10-10 17:15:53 -07:00