class

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)
Source

Instance methods

get(type : T.class, endpoint : String, query : Query | Nil = nil) : Result(T) forall T
Source
post(type : T.class, endpoint : String, body : Body) : Result(T) forall T
Source
put(type : T.class, endpoint : String, body) : Result(T) forall T
Source

Nested types