class SearchIngest::Api

Defined in:

api.cr

Constant Summary

Log = ::Log.for(self)
PARSER_LIST = ["application/json"]
RESPONDER_LIST = ["application/json"]

Class Method Summary

Instance Method Summary

Class Method Detail

def self.base_route #

Helper for obtaining base route


def self.failed_healthcheck=(failed_healthcheck : Bool) #

[View source]
def self.failed_healthcheck? : Bool #

[View source]
def self.healthcheck? : Bool #

[View source]
def self.reindex(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.table_manager : TableManager #

[View source]

Instance Method Detail

def backfill : Nil #

Backfill all tables


[View source]
def bad_media_type(error) : ContentError #

covers no acceptable response format and not an acceptable post format


[View source]
def base_route(*args, **options) #

Helper for obtaining base route


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

Helper for obtaining base route


def index : Nil #

health check


[View source]
def invalid_param(error) : ParameterError #

handles paramater missing or a bad paramater value / format


[View source]
def not_ready_error(_error) : Nil #

[View source]
def ready : Nil #

has the service finished loading


[View source]
def reindex(backfill : Bool = true) : Nil #

Reindex all tables, backfills by default


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

return the version and build details of the service


[View source]