Commit Graph

26 Commits

Author SHA1 Message Date
Brendan Forster 287861e4a7 rewrite the setup of responses to use a standard helper function (#2177) 2020-04-14 11:30:15 -03:00
Brendan Forster 327020750f add convention test for preview APIs (#2154) 2020-03-18 08:52:50 -03:00
Brendan Forster eb65e090ca next batch of test cleanup (#2004) 2019-09-20 10:41:04 -03:00
Brendan Forster 80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Brendan Forster 3859ff3627 the test, it passes 2015-05-31 22:12:22 +09:30
Brendan Forster c595f26515 unshipping preview API changes due to excessive paging introduced in some situations 2015-03-01 20:04:35 +09:30
joshvera fbe204c58f fix tests 2015-02-23 09:25:17 +09:30
Haacked aace9902b9 Make IResponse.ContentType readonly 2015-01-04 19:13:34 -08:00
Haacked 53a6516de2 Change IResponse.Body to object
This removes the awkward Body and BodyAsObject property combo we used to
have.
2015-01-04 19:06:50 -08:00
Haacked 4c8bab20eb IApiResponse no longer inherits IResponse 2015-01-04 18:58:53 -08:00
Haacked 09d5c236a4 Rename IResponse<T> to IApiResponse 2015-01-04 18:33:48 -08:00
Haacked 49f95d40f1 Remove Type parameter for IHttpClient send method
This keeps the IHttpClient interface simpler and ensures the
deserialization responsibility lies outside of that class. It only
needed the Type parameter for a special case that could be handled in a
better way.
2015-01-04 18:22:05 -08:00
Haacked 0d3717208d Add support for deserializing object to an array
Some APIs return either an object or an array. This is hard for us
static typed languages. So what we do is normalize things to an array
when we expect one.
2015-01-02 01:14:10 -08:00
Dillon Buchanan 9ac06526b1 Added missing fields to GitHubCommit 2014-12-22 22:02:02 -05:00
Brendan Forster 48b4a61b49 replaced all usages with v3 Accept header 2014-01-05 11:26:14 +10:30
John Nye 070980eec5 Test GitTag deserialization 2013-11-02 07:49:49 +00:00
John Nye 1ed3454be9 Rename Tag class to GitTag 2013-11-02 07:33:00 +00:00
John Nye 184ff4e799 Revert SimpleJsonSerializer to use Poco serializer strategy 2013-11-02 07:25:40 +00:00
John Nye d659783c54 Enable DataContractJsonSerializer and apply to GitHubSerializer strategy 2013-11-02 01:03:21 +00:00
half-ogre 6f3fa81789 move internal stuff to .Internal namespace 2013-10-08 15:14:06 -07:00
Haacked 9f1626e484 Do not attempt to json serialize stream body 2013-10-06 22:26:23 -07:00
Haacked 390f737ce3 Adding missing JsonHttpPipeline test 2013-10-06 21:41:20 -07:00
Haacked fa1473264c JsonHttpPipeline only deserializes JSON responses
The JsonHttpPipeline should only try to deserialize responses that have
a Content-Type of application/json.
2013-10-06 21:32:19 -07:00
Haacked e19765ece9 Do not overwrite existing Accept headers 2013-10-03 09:27:25 -07:00
Haacked 91b5449ddd Removed fluent assertions 2013-09-23 17:41:04 -07:00
Haacked 997e955f38 Rename to Octokit to be consistent with other API libs
GitHub is naming all of the libraries Octokit for their respective
platforms
2013-01-29 14:00:27 -08:00