class TandaCLI::API::Request

Defined in:

tanda_cli/api/request.cr

Constant Summary

GET = "GET"
INTERNAL_SERVER_ERROR_STRING = "Internal Server Error"
POST = "POST"

Constructors

Instance Method Summary

Constructor Detail

def self.new(base_uri : String, token : String, current_user : Current::User | Nil = nil) #

[View source]

Instance Method Detail

def get(type : T.class, endpoint : String, query : Query | Nil = nil) : Result(T) forall T #

[View source]
def post(type : T.class, endpoint : String, body : Body) : Result(T) forall T #

[View source]