class PlaceOS::Triggers::Root

Defined in:

controllers/root.cr

Constant Summary

PARSER_LIST = ["application/json"]
RESPONDER_LIST = ["application/json"]

Class Method Summary

Instance Method Summary

Instance methods inherited from class Application

bad_media_type(error) : ContentError bad_media_type, invalid_param(error) : ParameterError invalid_param, resource_not_found(error) : CommonError resource_not_found, resource_requires_authentication(error) : CommonError resource_requires_authentication

Class Method Detail

def self.base_route #

Helper for obtaining base route


def self.healthcheck(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts) #

Helper methods for performing redirect_to calls


def self.healthcheck? : Bool #

[View source]

Instance Method Detail

def base_route(*args, **options) #

Helper for obtaining base route


def base_route(*args, **options, &) #

Helper for obtaining base route


def healthcheck : Nil #

used to check service is responding


[View source]
def version : PlaceOS::Model::Version #

returns the service commit level and build time


[View source]