Class: RestService

Inherits:
RestApplication show all
Extended by:
RestConfiguration, RestResponseModel
Defined in:
lib/rest/rest_service.rb

Constant Summary

Constants included from RestConfiguration

RestConfiguration::CONFIG

Class Method Summary collapse

Methods included from ApplicationConfiguration

#config, #config_consul, #config_rest, #random_name

Methods included from RestResponseModel

error_response, success_response

Methods inherited from RestApplication

#response_with_error

Class Method Details

.start_consul_check_http(url) ⇒ Object

Health Check for Consul, run when start Consul



38
39
40
41
42
# File 'lib/rest/rest_service.rb', line 38

def self.start_consul_check_http(url)
  get url do
    'The service is healthy!'
  end
end