Add RestEase attributes (#128)

This commit is contained in:
Patrick Stevens
2024-04-29 17:51:26 +01:00
committed by GitHub
parent f562271c12
commit 09780efb07
7 changed files with 106 additions and 6 deletions

View File

@@ -120,7 +120,8 @@ type internal IApiWithoutBaseAddress =
[<WoofWare.Myriad.Plugins.HttpClient>]
[<BasePath "foo">]
type IApiWithBasePath =
[<Get "endpoint/{param}">]
// Example where we use the bundled attributes rather than RestEase's
[<WoofWare.Myriad.Plugins.RestEase.Get "endpoint/{param}">]
abstract GetPathParam : [<Path "param">] parameter : string * ?cancellationToken : CancellationToken -> Task<string>
[<WoofWare.Myriad.Plugins.HttpClient>]