TandaCLI::API::Request
Inherits Reference < Object
Constants
GET = "GET"
INTERNAL_SERVER_ERROR_STRING = "Internal Server Error"
POST = "POST"
PUT = "PUT"
Constructors
new(base_uri : String, token : String, current_user : Current::User | Nil = nil)
SourceInstance methods
get(type : T.class, endpoint : String, query : Query | Nil = nil) : Result(T) forall T
Sourcepost(type : T.class, endpoint : String, body : Body) : Result(T) forall T
Sourceput(type : T.class, endpoint : String, body) : Result(T) forall T
Source