refit

The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.

MIT License

Stars
8.1K
Committers
137

Bot releases are visible (Hide)

refit - 7.0.0 Latest Release

Published by github-actions[bot] over 1 year ago

Dependencies:

  • 0a03d4a4ca91b5823c1151de35d977c41ca98183 Bump Nerdbank.GitVersioning from 3.5.119 to 3.6.132 (#1507) @dependabot[bot]
  • 65f395a7dd525676e284d8a4e03d8db8fa2f99c3 Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit (#1506) @dependabot[bot]
  • a16b0fd6b69e9a74e923121eabd07fc400a95f90 Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 (#1508) @dependabot[bot]
  • ec73fed75327eaf70f6fd12e2f3dd4d9aa08190f Bump Microsoft.VisualStudio.Threading.Analyzers from 17.5.22 to 17.6.40 (#1511) @dependabot[bot]
  • cd1b108be2e4eb828a554675379a17ab0bb70a5a Bump Microsoft.CodeAnalysis.CSharp.Workspaces from 4.0.1 to 4.6.0 (#1510) @dependabot[bot]
  • 34b81336de3617e82c8975595953c9766bb4704b Bump coverlet.msbuild from 3.2.0 to 6.0.0 (#1512) @dependabot[bot]
  • 0e118d0f404c1004caaf9859f10906075137831f Bump System.Reactive from 5.0.0 to 6.0.0 (#1509) @dependabot[bot]
  • 57919c4ac3effd231ca7cad9c0c22c0d98458180 Bump Nerdbank.GitVersioning from 3.6.132 to 3.6.133 (#1516) @dependabot[bot]
  • dd1eebf477b24fcdc3974b2d8aef89d64bcbbcd9 Bump Microsoft.NET.Test.Sdk from 17.6.0 to 17.6.2 (#1520) @dependabot[bot]
  • a50c8ae4c4708d80dd5f309a8720665d2f9a8af7 Bump System.Text.Json from 7.0.2 to 7.0.3 (#1523) @dependabot[bot]

Other:

  • 4744780644ecaa5e23ee93fccbadd9528eaa6add Ship 7.0.0 @anaisbetts
refit - 7.0.0-beta.1

Published by github-actions[bot] over 1 year ago

Housekeeping:

  • 6cf8169a3def3214d25716c40b1624f479d8a0d6 housekeeping: Convert to using coverlet msbuild (#1491) @glennawatson
  • c10bcbf6714616aff3b7bb3bd7e7638431b23398 housekeeping: Add code coverage status in readme @glennawatson
  • 9276d6bcbf89dfd50f475a4a4df341f65d2a00db housekeeping: Disallow making of package for benchmarks (#1492) @glennawatson

Other:

  • 35965b8238eaf237af5305312989a2f66246491d BREAKING: Simplify authorization configuration (#1495) @anaisbetts
  • ef463956936fcdfd248d120672fe0bb7ff93d5ac Add a DevContainer (#1501) @anaisbetts
  • e4a3565c85fc05feb9123afe6474c9ca3d2aca7b Revert #1418, #1367, introduce public version of RestMethodInfo (#1496) @anaisbetts
  • de50934f73c177f0156690d8c7ffb28d382de781 bump @anaisbetts
refit - 6.5.1

Published by github-actions[bot] over 1 year ago

Features:

  • c0af5c2a3a78f490b3aaf1f07e994b2017e67e62 feature: Make the RestMethodInfo available in the request options (#1317) @0xced

Fixes:

  • ed61774dbf418e03323d6a65b9a775c012779636 Fix Added MemberNotNullWhen in IApiResponse (#1483) @AlbertoMonteiro
  • c8888e12d7f7f96539eca1f131d99ef0c9f58b81 Fix condition of method return type in RequestBuilder to only allow Task<> and IObservable<> (#1364) @barchkile

Housekeeping:

  • 857becce5d623fe2b8ab8bd640f182ca10cc0eaf housekeeping: Update readme to show GitHub actions status @glennawatson

Other:

  • fec2cf34992ad476a1962c48c601a927285d9e87 Update version.json @glennawatson
refit - 6.4.1

Published by github-actions[bot] over 1 year ago

Dependencies:

  • 63b96540716a12a5f36c514ee117316bbb92e116 Bump Newtonsoft.Json from 13.0.1 to 13.0.3 (#1480) @dependabot[bot]

Features:

  • b78bbc79dda7c856cb2e7c1d28589764c6e93f5b feature: Add named httpclient support (#1418) @redbaty
  • c97fcb66ce1c87936e552b022d764b99dc3e0bc2 feature: Add RestMethodInfo in HttpRequestMessage (Options or Properties) (#1352) @Int32Overflow
  • 77f084f0e45f611c055df9aa58ff91e74ea21f16 feature: Add an authorization header value getter property that supports cancellation (#1413) @0xced
  • b06ef7c37dab6b003805424d010137ebbef65661 Feature: allow developers to inject the MethodInfo as a Property (#1367) @james-s-tayler

Fixes:

  • 153f5202dfaeed03853b870cf369e6282f59da1d Fix typo in README.md (#1428) @owns
  • aef6cbb8c78bd34ee333dba6eb12626607d69cbd Fixed a bug in the readme (#1366) @james-s-tayler
  • 3c8761162a0f3599e0dc3e78d002c75bb23b0522 Fix cache in RestService for generated type (#1348) @Int32Overflow
  • 25c48404664f80837dfbac2dbfd910b084ecdd3c fix: Update readme with details on supply a custom HttpClient instance (#1362) @chowarth

Housekeeping:

  • 1fd2b3f5aed4256c715498e0cf9e171243f2f038 housekeeping: Convert to using GitHub actions @glennawatson
  • 977246a77fcb21e74f323b099bfa32f098d5e6ce housekeeping: Remove the need to install maui workflows @glennawatson
  • eb61d396eca37961bed2ad8c41ada87ce8cac75d housekeeping: remove duplicated tags @glennawatson
  • da483b98558b494505dead5e79659e458abf3fc3 housekeeping: update directory.build.props file @glennawatson
  • e571bc685aef43d9271e698d54fac23d65ca7efc housekeeping: Remove invalid tag from release @glennawatson
  • 500f4a2389d25a2b43b62606a9db048d30579424 housekeeping: Remove invalid tag from release @glennawatson
  • e83f7e230881e9ca51785f00c37066a87da3a666 housekeeping: Remove old targets from tests @glennawatson
  • 098c4e327d2c38c5eb1932d8b25948efdcee5257 housekeeping: Update Targets, Fix build, Update relevant packages (#1488) @ChrisPulman

Other:

  • 5fe5ce562806f4297224e64698a9a17a15671bcd Update dependabot.yml @glennawatson
  • 00dde435b456331e9b2580fe2e3034c83e08c4a2 Sample using local api (#785) @NakWarsi
  • 469bfce046e3403c7b4d1cba87fee9a462e14427 add tests setting Authorization headers via HeaderCollection (#1385) @james-s-tayler
  • b608846c097f8d0c9c7fc409ea96b783e1f0071a Add benchmark dotnet and comprehensive set of end to end benchmarks (#1175) @james-s-tayler
  • 5589ab9aac95776d34d3c4d744ed060dee546e40 Use Error property when throwing exception (#1448) @marcominerva
  • b5ce1dbd870eae8764e308580e3d9939dc4a3b1e Use the root directory for builds @glennawatson
  • c1516a83fe8b83a945281c9f24d2bb9b05faab67 Add HttpRequestMessageOptions to RefitSettings and add this dictionary to HttpRequestMessage.(Options/Properties) (#1353) @Int32Overflow
refit - v6.3.2

Published by reactiveuibot over 2 years ago

Changes:

Enhancements:

  • #1310: Split XmlContentSerializer into separate package

Dependencies:

  • #1306: Bump coverlet.collector from 3.1.0 to 3.1.2

Others:

  • #1307: Fix missing syntax highlighting
  • #1303: Add MemberNotNullWhen attribute to IsSuccessStatusCode

This list of changes was auto generated.

refit - v6.2.16

Published by reactiveuibot over 2 years ago

Changes:

Bugs:

  • #1290: Refit interface methods that return Task assign ApiException to the IApiResponse.Error property on error

Dependencies:

  • #1285: Bump Nerdbank.GitVersioning from 3.4.231 to 3.4.255
  • #1271: Bump Microsoft.VisualStudio.Threading.Analyzers from 16.10.56 to 17.0.64
  • #1260: Bump Microsoft.NET.Test.Sdk from 16.10.0 to 17.0.0
  • #1276: Bump Microsoft.SourceLink.GitHub from 1.0.0 to 1.1.1

Others:

  • #1298: remove readme from package
  • #1297: Update dependencies
  • #1296: Add a readme to the package
  • #1294: Fix example syntax, add paren.
  • #1293: fix: load content into buffer for void return methods
  • #1292: Update renamed section in Table of Contents
  • #1275: Add Xml documentation to exposed methods and classes.
  • #1287: Update README.md
  • #1279: Add note about JSON source generator
  • #1267: Fix NuGet package link for Serilog.Exceptions.Refit doc

This list of changes was auto generated.

refit - v6.1.15

Published by reactiveuibot about 3 years ago

Changes:

Enhancements:

  • #1251: Switch to Roslyn component versioning
  • #1235: Enchance SystemTextJsonContentSerializer default options
  • #1216: Support Roslyn 3.8 and Roslyn 4.0 source generator scenarios

Dependencies:

  • #1228: Bump Microsoft.CodeAnalysis.CSharp.Workspaces from 4.0.0-2.final to 4.0.0-4.21423.7
  • #1227: Bump Microsoft.CodeAnalysis.CSharp.Workspaces from 4.0.0-2.final to 4.0.0-4.21420.8

Others:

  • #1248: Add documentation for Serilog.Exceptions.Refit nuget package
  • #1229: Gate the incremental source generators on LangVersion=preview
  • #1222: Change folder path to avoid implicit NuGet inclusions

This list of changes was auto generated.

refit - v6.0.94

Published by reactiveuibot about 3 years ago

Changes:

Enhancements:

  • #1167: Support returning api response in case of deserialization exception

Bugs:

  • #1211: [BUG] Using same key multiple times throws exception
  • #1131: Header collection post without body bug

Dependencies:

  • #1158: Upgrade to GitHub-native Dependabot
  • #1207: Bump Nerdbank.GitVersioning from 3.4.228 to 3.4.231
  • #1205: Bump Nerdbank.GitVersioning from 3.4.220 to 3.4.228
  • #1200: Bump coverlet.collector from 3.0.3 to 3.1.0
  • #1193: Bump Nerdbank.GitVersioning from 3.4.216 to 3.4.220
  • #1183: Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit from 1.0.1-beta1.21265.1 to 1.1.0
  • #1188: Bump Nerdbank.GitVersioning from 3.4.205 to 3.4.216
  • #1185: Bump Nerdbank.GitVersioning from 3.4.203 to 3.4.205
  • #1184: Bump Microsoft.VisualStudio.Threading.Analyzers from 16.9.60 to 16.10.56
  • #1182: Bump Microsoft.NET.Test.Sdk from 16.9.4 to 16.10.0
  • #1181: Bump Nerdbank.GitVersioning from 3.4.194 to 3.4.203
  • #1177: Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit from 1.0.1-beta1.21256.1 to 1.0.1-beta1.21265.1
  • #1170: Bump Microsoft.NETFramework.ReferenceAssemblies from 1.0.1 to 1.0.2
  • #1165: Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit from 1.0.1-beta1.21254.1 to 1.0.1-beta1.21256.1
  • #1164: Bump Microsoft.NETFramework.ReferenceAssemblies from 1.0.0 to 1.0.1
  • #1162: Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit from 1.0.1-beta1.21177.1 to 1.0.1-beta1.21254.1
  • #1148: Bump Nerdbank.GitVersioning from 3.4.190 to 3.4.194
  • #1146: Bump Nerdbank.GitVersioning from 3.3.37 to 3.4.190
  • #1147: Bump System.Text.Json from 5.0.1 to 5.0.2
  • #1144: Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4
  • #1134: Bump Newtonsoft.Json from 12.0.3 to 13.0.1

Others:

  • #1214: .NET 6 SDK update
  • #1166: Small typos in README
  • #1140: Update Microsoft.CodeAnalysis.Testing to 1.0.1-beta1.21177.1
  • #1132: Update README.md fix typo FromHttpContnentAsync

This list of changes was auto generated.

refit - v6.0.38

Published by reactiveuibot over 3 years ago

Changes:

Enhancements:

  • #1112: Added methods to support creating RefitSettings using the service provider
  • #1115: Really Buffered JsonContent when buffered is set

Bugs:

  • #1130: Fix issue where explicit or override wasn't being passed correctly to the generic constraints writer

Dependencies:

  • #1117: Bump Microsoft.VisualStudio.Threading.Analyzers from 16.9.54 to 16.9.60
  • #1104: Bump Microsoft.VisualStudio.Threading.Analyzers from 16.8.55 to 16.9.54
  • #1089: Bump Microsoft.NET.Test.Sdk from 16.9.0 to 16.9.1

Others:

  • #1097: Update Meow Sample To .NET 5 and .NET Standard 2.1

This list of changes was auto generated.

refit - v6.0.24

Published by reactiveuibot over 3 years ago

Changes:

Bugs:

  • #1088: Update inferred types converter for 5.0

Dependencies:

  • #1083: Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit from 1.0.1-beta1.21109.2 to 1.0.1-beta1.21117.2

This list of changes was auto generated.

refit - v6.0.21

Published by reactiveuibot over 3 years ago

Changes:

Enhancements:

  • #1086: Add error case for packages.config to prevent runtime issues

Dependencies:

  • #1084: Bump coverlet.collector from 3.0.2 to 3.0.3

This list of changes was auto generated.

refit - v6.0.15

Published by reactiveuibot over 3 years ago

Changes:

  • #1076: Don't output any generated code if we don't have any refit interfaces…
  • #1071: Add Refit.Newtonsoft.Json badges

This list of changes was auto generated.

refit - v6.0.8

Published by reactiveuibot over 3 years ago

Changes:

Enhancements:

  • #1069: Add logic to emit #nullable in the generated files if required
  • #1067: Update output filenames to end in .g.cs to indicate they're generated.

Dependencies:

  • #1070: Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit from 1.0.1-beta1.21106.1 to 1.0.1-beta1.21109.2

This list of changes was auto generated.

refit - v6.0.1

Published by reactiveuibot over 3 years ago

Changes:

Enhancements:

  • #1062: Generate non-implicit impls for top-level interfaces

Dependencies:

  • #1064: Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit from 1.0.1-beta1.21103.2 to 1.0.1-beta1.21106.1

This list of changes was auto generated.

refit - v6.0-preview.128

Published by reactiveuibot over 3 years ago

Changes:

Enhancements:

  • #1060: Rename IContentSerializer to IHttpContentSerializer

Bugs:

  • #1058: Prefix our local vars with ______ to prevent collisions

Others:

  • #1059: Use HttpContent json serialization extensions for perf and correctness

This list of changes was auto generated.

refit - v6.0-preview.121

Published by reactiveuibot over 3 years ago

Changes:

Enhancements:

  • #1054: Hide generated types from IntelliSense
  • #1041: Add interface type to HttpMessageRequest.Options

Bugs:

  • #1055: Fix for multi template parameter use
  • #1052: [BUG] Adding a parameter twice to the url template triggers exception

Dependencies:

  • #1053: Bump Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit from 1.0.1-beta1.21076.3 to 1.0.1-beta1.21103.2
  • #1050: Bump Microsoft.NET.Test.Sdk from 16.8.3 to 16.9.0

Others:

  • #1056: Remove "AutoGenerated" as it's redundant
  • #1047: Updated documentation for use of delegating handler with HttpClientFactory
  • #1045: Enable first unit tests for InterfaceStubGenerator
  • #1: Handle actually issuing REST requests, not just building them
  • #1044: Support generic constraints on methods
  • #1042: Fixed the wrong API call in Readme.md used with dotnet DI

This list of changes was auto generated.

refit - v6.0-preview.96

Published by reactiveuibot over 3 years ago

Bugs:

  • #1038: Change the condition to check the MSBuild version

This list of changes was auto generated.

refit - v6.0-preview.94

Published by reactiveuibot over 3 years ago

Changes:

Enhancements:

  • #1035: Add support for interfaces that compose other base refit interfaces.

Bugs:

  • #1016: [BUG] Error thrown when using Authorize parameter
  • #1034: Authentication fixes
  • #1027: [BUG] Inherited interface level Headers attribute does not work

This list of changes was auto generated.

refit - v6.0-preview.86

Published by reactiveuibot over 3 years ago

Changes:

Enhancement:

  • #1032: Add targets for netcoreapp3.1 so it can ref the older Http extensions

This list of changes was auto generated.

refit - v6.0-preview.84

Published by reactiveuibot over 3 years ago

Changes:

Enhancement:

  • #1031: Add support for internal and non-abstract interface members
  • #1029: Use Semantic model for generating sources
  • #1028: Convert to Source Generator
  • #1012: Support dynamic header dictionary
  • #1007: Nullable Reference Type annotations
  • #1005: Use System.Text.Json by default
  • #1001: 809 set properties in http request message
  • #1002: Feature- multipart data name to be specified at the moment of execution.
  • #964: Disposable interfaces
  • #953: Support ApiException.Content when actual type is ValidationApiException
  • #636: Content in ValidationApiException hides Content in derived ApiException

Bugs:

  • #1010: Fixes issue #952 - did not write everything to output stream
  • #976: Fix dictionary query request mapping
  • #979: fix [BUG] AuthorizeAttribute does not add a header to the request #946

Dependencies:

  • #1021: Bump System.Text.Json from 5.0.0 to 5.0.1
  • #1013: Bump Microsoft.NET.Test.Sdk from 16.8.0 to 16.8.3
  • #998: Bump System.Reactive from 4.4.1 to 5.0.0
  • #997: Bump System.Text.Json from 4.7.2 to 5.0.0
  • #996: Bump Microsoft.Extensions.Http from 3.1.9 to 5.0.0
  • #1000: Bump Microsoft.CodeAnalysis.CSharp from 3.7.0 to 3.8.0
  • #995: Bump Microsoft.NET.Test.Sdk from 16.7.1 to 16.8.0
  • #993: Bump Microsoft.VisualStudio.Threading.Analyzers from 16.8.51 to 16.8.55
  • #990: Bump Microsoft.VisualStudio.Threading.Analyzers from 16.8.50 to 16.8.51
  • #989: Bump Microsoft.VisualStudio.Threading.Analyzers from 16.7.56 to 16.8.50
  • #985: Bump Microsoft.Extensions.Http from 3.1.8 to 3.1.9
  • #982: Bump Nerdbank.GitVersioning from 3.2.31 to 3.3.37
  • #970: Bump Microsoft.Extensions.Http from 3.1.7 to 3.1.8

Others:

  • #1014: Wrap Deserialization exceptions as an ApiException
  • #952: Request payload corrupted when using System.Text.Json serializer
  • #946: [BUG] AuthorizeAttribute does not add a header to the request

This list of changes was auto generated.

Badges
Extracted from project README
Build codecov NuGet NuGet NuGet
Related Projects