Allow general expressions in GET attribute arg (#81)

This commit is contained in:
Patrick Stevens
2024-02-06 18:43:45 +00:00
committed by GitHub
parent 3dfb89d086
commit e453a6f07c
3 changed files with 8 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ module PureGymApi =
(match client.BaseAddress with
| null -> System.Uri "https://whatnot.com"
| v -> v),
System.Uri ("v1/gyms/", System.UriKind.Relative)
System.Uri (("v1/gyms/"), System.UriKind.Relative)
)
let httpMessage =

View File

@@ -11,7 +11,7 @@ open RestEase
[<WoofWare.Myriad.Plugins.HttpClient>]
[<BaseAddress "https://whatnot.com">]
type IPureGymApi =
[<Get "v1/gyms/">]
[<Get("v1/gyms/")>]
abstract GetGyms : ?ct : CancellationToken -> Task<Gym list>
[<Get "v1/gyms/{gym_id}/attendance">]