I'm trying understand your example listed in the 2.0 release: let endpoint = APIEndpoint.apps(...) which I believe to be APIEndpoint.V1.apps because all endpoints are now extensions of APIEndpoint.V1. However, apps isn't a static variable and should only be referenced through an instance of APIEndpoint.V1, this usage is illegitimate.
Should we expose the initializer of APIEndpoint.V1 or what's the proper way to refer an endpoint?
I'm trying understand your example listed in the 2.0 release:
let endpoint = APIEndpoint.apps(...)
which I believe to beAPIEndpoint.V1.apps
because all endpoints are now extensions ofAPIEndpoint.V1
. However,apps
isn't a static variable and should only be referenced through an instance of APIEndpoint.V1, this usage is illegitimate.Should we expose the initializer of APIEndpoint.V1 or what's the proper way to refer an endpoint?