Use WoofWare.Myriad entirely to generate the REST API (#9)
Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk> Reviewed-on: #9
This commit is contained in:
@@ -9,7 +9,11 @@ open RestEase
|
||||
/// The PureGym REST API. You probably want to instantiate one of these with `Api.make`.
|
||||
[<WoofWare.Myriad.Plugins.HttpClient>]
|
||||
[<Header("User-Agent", "PureGym/1523 CFNetwork/1312 Darwin/21.0.0")>]
|
||||
[<BaseAddress "https://capi.puregym.com/api/">]
|
||||
type IPureGymApi =
|
||||
[<Header "Authorization">]
|
||||
abstract AuthHeader : string
|
||||
|
||||
/// Get the complete list of all gyms known to PureGym.
|
||||
[<Get "v1/gyms/">]
|
||||
abstract GetGyms : ?ct : CancellationToken -> Task<Gym list>
|
||||
|
Reference in New Issue
Block a user