Граф коммитов

52 Коммитов

Автор SHA1 Сообщение Дата
Chris Pulman 943529592e
Revert sealed Attributes (#1734)
Revert sealed Attributes
2024-06-24 20:34:59 +01:00
Tim M dcb9da28de
feat: run csharpier (#1715)
Co-authored-by: Chris Pulman <chris.pulman@yahoo.com>
2024-06-14 06:32:26 +00:00
Chris Pulman aa78fc08b1
Housekeeping Update tests to remove need for comments (#1697)
* Housekeeping Update tests to remove need for comments

* Reduce unnecessary warnings
2024-05-24 10:15:52 +10:00
Tim M 2dff048afa
housekeeping: run csharpier (#1617) 2023-11-27 09:50:46 +11:00
Tim M cb9a5b7f64
chore: remove unused using statements (#1618)
Co-authored-by: Chris Pulman <chris.pulman@yahoo.com>
2023-11-21 00:59:29 +00:00
Laurent Keusch 995ff886b6 -Added a comment to 1 attribute.
-Added comments to MultipartItems.
-Added comments to Refit settings.
2021-11-10 17:10:58 +01:00
Laurent Keusch 2c23aec026 -Added comments for ApiException.
-Added comments for ApiResponse.
-Added comments for most of the attributes.
-Added comments for RestService.
2021-11-10 14:57:46 +01:00
James Tayler f066eaae92 add summary doc 2020-11-30 23:17:54 +13:00
James Tayler ab87651019 Merge branch 'main' into support_dynamic_header_dictionary 2020-11-30 23:14:13 +13:00
James Tayler 0d69134c3b add first failing test 2020-11-26 23:26:12 +13:00
Claire Novotny fc263f9da9
First pass at NRT annotations 2020-11-25 16:52:50 -05:00
James Tayler 301498d8e4 add docs for attribute and its member 2020-11-24 22:33:16 +13:00
James Tayler 7d494faa87 support defaulting property key if no key specified 2020-11-23 11:35:51 +13:00
James Tayler b049878f3d populate RequestProperty into HttpRequestMessage.Properties 2020-11-22 21:22:14 +13:00
James Tayler e96bf3a06b add failing test 2020-11-22 14:34:01 +13:00
Valentyn Barsehian 9ca707423a fix [BUG] AuthorizeAttribute does not add a header to the request #946 2020-10-06 12:48:18 +03:00
Oleksandr Liakhevych 267bdd9b0d Allow specifying default CollectionFormat 2020-03-20 18:55:36 +02:00
Benjamin Howarth 37437f4f7c Fixes #277 2020-01-11 16:16:04 +00:00
Benjamin Howarth 301dc1da3f Fixes #697 with an optional string parameter to pass to MultipartAttribute, defaults to the prior value of "-----MyGreatBoundary" if not specified. 2019-07-09 19:14:06 +01:00
Oren Novotny 00b9d8185b
Code style formatting 2019-02-16 17:11:56 -05:00
Felipe Baltazar 8db866b9c6 Options Attribute
- `OptionsAttribute` has been created;
- Test **HttpMethod** name for `OptionsAtrtibute`;
2019-02-09 00:26:54 -02:00
Oren Novotny 3fce69b9a7
Merge pull request #584 from MariusVolkhart/mv/multiForm
Add support for url form encoding collections
2018-12-03 07:49:23 -05:00
Oren Novotny 48208e8796
Merge pull request #571 from stevewgh/custom-serializers
Isolated Content Serialization
2018-12-03 07:47:44 -05:00
Marius Volkhart f4d83d8410 Expand XMLDocs for QueryAttribute and CollectionFormat 2018-11-29 12:42:26 +07:00
Marius Volkhart dfdad56b01 !fixup Add support for url form encoding collections 2018-11-29 12:36:09 +07:00
stevewgh 741b7b6b61 Isolated Content Serialization continued
- Added Obsolete attributes
 - Added Serialized enum as a generic replacement of JSON enum
 - Updated tests to use ContentSerializer property
 - Updated README with XML example
2018-11-16 22:41:40 +00:00
Vitaliy Litovskiy 080b243872 Collection formatting (#454) 2018-03-29 07:20:24 -04:00
Oren Novotny aad0210bbe
Default to buffered (#434) 2018-02-16 15:16:46 -05:00
Oren Novotny 45b3ce87d3
Add support for controlling how string body parameters are serialized (#425)
* Add support for controlling how string body parameters are serialized
2018-01-29 18:02:52 -05:00
Oren Novotny b050676358
Enable formatting form values 2018-01-28 15:05:38 -05:00
Oren Novotny 2cc549bf06
Reformat code to be consistent 2018-01-14 14:58:24 -05:00
Josh Williams d131663017 Merge branch 'fb-DynamicQueryParameter' of github.com:windischb/refit into feature/DynamicQuery 2017-10-31 10:00:33 -05:00
Tomasz Cielecki 50721b2076 Use boolean instead of enum to indicate which HttpContent to use 2017-10-08 22:10:18 +02:00
Tomasz Cielecki 7584782e60 Add stream method to fallback to Pull with Content-Length 2017-09-27 12:44:23 +02:00
Bernhard Windisch 6ff6ca617b Added feature for 'DynamicQueryParameters' 2017-09-03 19:01:54 +02:00
Bennor McCarthy 5d1c85c85f Use JsonPropertyAttribute for aliasing form parameter names
This adds support for Json.NET's `JsonPropertyAttribute` if present on a
property when using it to generate a request as a form post.

If both `AliasAsAttribute` and `JsonPropertyAttribute` are present,
`AliasAsAttribute` takes precedence.

I also added some tests for `FormValueDictionary`.

Fixes #330.
2017-06-28 20:18:18 +10:00
Steve Panetta b343fbc0c5 Added documentation
Tidied up the MultipartItem classes with argument null checks. Also reduced use of virtual and public modifiers
Removed ContentType attribute and obsoleted AttachmentNameAttribute
2017-02-06 15:11:35 +11:00
panetta d67a569a6f Allow setting of the content type for multipart fields
Allow setting of the file name separate to the field name. The parameter name or AliasAs attribute now define the field name. This has the potential to break compatibility with applications which depend on the AttachmentName to set the field name. The alternative is to ignore the parameter name and only rely on AliasAs however this would result in inconsistent API design
2017-01-17 13:37:53 +11:00
Paul Betts e1c6241b4c Merge remote-tracking branch 'origin/pr/90' 2015-05-31 21:48:54 -07:00
mteper eabe743d21 Added AttachmentNameAttribute to enable user to specify attachment name for multipart uploads via Stream or Byte array. 2015-05-18 09:11:20 -07:00
mteper 45cb576401 Merge branch 'master' into multipart-upload
* master:
  Fix all the header bugs... 💥
  Added failing test for #136
  Added failing test for #121
  Fix the header attribute on methods
  Version bump to 2.2.1
  Moved ApiException into the Portable project
  fixes bad specs
  fixing the missing assembly version information for .NET 45 and WP8
  adds support for PATCH method
  Version bump to 2.2.0
  Fix formatting
  R# and Rebracer settings files
  Generate friendly error message
  Fix for #94

Conflicts:
	Refit/RequestBuilderImplementation.cs
2015-05-17 01:36:48 -07:00
mteper 0ff46aa1f1 First cut at multipart upload support 2015-05-17 01:18:30 -07:00
Oren Novotny e7438610f0 Merge branch 'master' into auth 2015-04-16 11:29:20 -04:00
cristi-badila 1a9497b718 adds support for PATCH method 2015-01-15 19:35:17 +02:00
Oren Novotny 405ffc2fe6 Add a built-in way of doing authenticated requests with tokens and also enable use of ModernHttpClient 2014-12-14 11:29:12 -05:00
Paul Betts c6f6046e56 Merge remote-tracking branch 'origin/pr/66' 2014-11-05 21:40:24 -08:00
Carl Berg 4c961e7732 Simplified RequestParameterFormatter and introduced RefitSettings 2014-11-03 12:50:39 +01:00
Carl Berg f2ce1f37b2 Added support for request parameter formatting 2014-11-03 12:48:18 +01:00
Bennor McCarthy b963ae8b84 Support for aliasing of form fields 2014-10-11 22:12:10 -07:00
Bennor McCarthy ce838033d0 Support for urlencoded form posts. 2014-06-28 22:01:49 +10:00