Commit Graph

287 Commits

Author SHA1 Message Date
Martin Scholz d650f2a406 [WIP] deserialization 2016-06-27 09:15:26 +02:00
Martin Scholz 63629d5029 add method to check attributes 2016-06-24 10:36:00 +02:00
Martin Scholz 844be5586d revert NewReaction client and fix SimpleJsonSerializer 2016-06-23 09:45:22 +02:00
Martin Scholz d700433440 change NewReaction
change NewReaction to inherit from RequestParamaters. Change all
reaction clients.
2016-06-22 13:02:54 +02:00
Martin Scholz 4c05be81d4 fix deserialization of enums with custom attributes 2016-06-22 11:44:20 +02:00
Martin Scholz c1a16ffc74 get customAttribute for netfx 2016-06-21 19:40:16 +02:00
Martin Scholz ac14c5e1a2 fix serialization of enum values 2016-06-21 18:34:27 +02:00
maddin2016 26348e759a merge remote 'refs/remote/octokit/master' into stand-alone-reaction-client 2016-06-08 15:29:30 +02:00
maddin2016 3ed011dfd4 add accept header for teams client 2016-06-06 16:30:58 +02:00
maddin2016 41ba208131 add methods to set permission for team repositories 2016-06-06 12:53:06 +02:00
maddin2016 6bedcf8993 add GetAll Method for uri and accepts
add api

fix GetAllMethod

fix ApiOptions
2016-05-27 15:41:30 +02:00
Mordechai Zuber 20d8dd2852 Keep obsolete methods matching with interface and concrete 2016-04-13 18:26:02 -04:00
Mordechai Zuber fe51d42c23 Remove IConnection.Get<T>(... allowAutoRedirect) 2016-04-13 14:37:45 -04:00
Devesh Khandelwal cdd46465db Add custom exception for the HTTP 451 response (#1239)
* Add HTTP 451: Legal Takedown Exception.

* Add LegalRestrictionException in HandleErrors.

* Cast 451 to HttpStatusCode and include exception in csproj files.

* Tests added and "FixProjects".

* Fix: 403 -> 451 in 451Tests.
2016-04-10 14:07:18 -04:00
Brendan Forster c1c035cf01 moved ConfigureAwait onto same line as await 2016-04-06 20:28:46 -04:00
Brendan Forster 5b3d540207 a couple of other usages found 2016-04-06 20:26:59 -04:00
Brendan Forster 01c55763c7 some more usages in internals that need ConfigureAwait 2016-04-06 20:22:21 -04:00
Brendan Forster a6c21e8649 one more internal usage to configure 2016-04-06 20:17:57 -04:00
Brendan Forster b751a3e44f cleanup some indenting to make things a bit more readable 2016-04-06 20:17:39 -04:00
Brendan Forster c5600ce37b and a couple more awaits for necessary internals 2016-04-06 20:10:20 -04:00
Brendan Forster e8df9905db Merge pull request #1185 from prayankmathur/issue896
Implemented Lock/Unlock Functionality for Issues
2016-04-05 17:14:32 -04:00
Prayank Mathur 8e49f04a5d Added implementation for delete that takes custom media type header and changed definition for Unlock accordingly 2016-03-30 14:30:37 +05:30
aedampir@gmail.com 29ada0c15e IApiInfoProvider fixes 2016-03-29 17:38:14 +07:00
aedampir@gmail.com 0a71cb4abe Connection.cs fixes 2016-03-29 17:36:34 +07:00
aedampir@gmail.com 8816fd4797 Some misspells in ApiUrls and ApiConnection were fixed. 2016-03-28 13:22:59 +07:00
aedampir@gmail.com 7f5d446ea8 Redundant commas in object initializers were removed. 2016-03-24 23:12:12 +07:00
Ryan Gribble 24165e4286 Merge pull request #1209 from dampir/fix-inconsitent-modifiers-declaration-order
Inconsistent modifiers declaration order was fixed.
2016-03-22 22:52:23 +10:00
aedampir@gmail.com 6133210b97 Inconsistent modifiers declaration order was fixed. 2016-03-22 19:13:24 +07:00
aedampir@gmail.com 509036c219 Redundant this. qaulifier was removed. 2016-03-22 18:37:43 +07:00
Prayank Mathur db8738b675 Corrected TheUpdateMethod.EnsureArgumentsNotNull() 2016-03-17 16:38:42 +05:30
Brendan Forster 2ed5999f08 Merge pull request #760 from octokit/api-paging-part-deux
Pagination Support
2016-03-14 15:50:25 +11:00
Devesh Khandelwal b62bcfaec9 Passing on serialize argument to Connection's ctor, wasn't passing on before. Breaks tests. 2016-03-08 00:28:16 +05:30
Brendan Forster aafdda2f00 Merge branch 'master' into api-paging-part-deux 2016-02-24 11:40:43 +11:00
Brendan Forster e27b58d043 a bit of cleanup 2016-02-17 11:14:39 +11:00
Brendan Forster b97254c5a7 swap in shared component for existing rules 2016-02-14 18:14:02 +11:00
Brendan Forster a4765c8b63 HACK: i'm abusing _nextPageFun to help identify when to exit 2016-02-14 17:22:40 +11:00
Brendan Forster c098ecda60 added overloads to IApiConnection which support passing in ApiOptions 2016-02-14 16:56:34 +11:00
Ryan Gribble 1f13001fd8 Change the QueueLdapSync calls to use Post<T>(uri) with no body/data 2016-02-12 09:37:33 +10:00
Ryan Gribble 3b74250abf - Add unit tests to assert expected behaviour when deserializing strings containing hyphens (and underscores for good measure) into a string and List<string> objects
- Fix failing List<string> test by removing the seemingly redundant line in the deserializer
2016-02-05 21:04:02 +10:00
Brendan Forster 46d9e1f745 remove Get<T> extension method and update impacted tests to use correct method, removing the need for
additional nulls in tests
2016-01-25 14:57:15 +10:30
Ryan Gribble ae73ce6ced Rename variables 2016-01-07 21:00:11 +10:00
Ryan Gribble c7b4899d66 Replace all other uses of hardcoded HTTP header strings to declare/use entries in the AcceptHeaders helper class
Left test methods alone as it isn't good practice to share these definitions between Test and Implementation classes
2015-12-23 22:21:42 +10:00
Mordechai Zuber 44304ca70b use string per recommended style 2015-12-16 21:23:36 +02:00
Haacked f3f7161017 🔥 Remove redundant this qualifier 2015-12-13 22:22:54 -08:00
Phil Haack 7585550730 Drop the Gets
And then drop the bass.
2015-12-10 15:57:26 -08:00
Haacked 97ded6b581 Document the ProductHeaderValue class 2015-12-10 14:30:19 -08:00
Haacked 5ce1180f81 Rename value to version
The parameter name was incorrect.
2015-12-10 14:30:06 -08:00
Brendan Forster f63690c4d3 obsolete a range of methods around GetArchiveLink
Due to how the default HttpClientAdapter of Octokit will follow redirects by default,
this API is no longer working. Marking it as obsolete.
2015-12-10 08:24:11 +10:30
Brendan Forster 9367001894 obsolete the interface member 2015-12-10 08:24:11 +10:30
Brendan Forster 01eb558a9e removed obsolete member AllowAutoRedirect 2015-12-08 11:25:35 +10:30