Hi, I just noticed that I was adding endpoints and using QueryParams but in your first endpoints you created new data types in Requests.hs. Should all endpoints by something like : Token -> "endpoint" -> ReqBody Request -> POST '[JSON] Response ?
klappvisor
@klappvisor
Hi, not necessarily. when it's only a few parameters it's OK to use query parameters
actually I have both cases
Yuriy Syrovetskiy
@cblp
hi, I want to test my program against a mock telegram server, so I need to pass somehow my telegramBaseUrl
what about exporting ClientM and IO versions of API methods from different modules?
or even create a new monad newtype Client = ReaderT Token ClientM