Class: RestService
- Inherits:
-
RestApplication
- Object
- Sinatra::Base
- RestApplication
- RestService
- Extended by:
- RestConfiguration, RestResponseModel
- Defined in:
- lib/rest/rest_service.rb
Constant Summary
Constants included from RestConfiguration
Class Method Summary collapse
-
.start_consul_check_http(url) ⇒ Object
Health Check for Consul, run when start Consul.
Methods included from ApplicationConfiguration
#config, #config_consul, #config_rest, #random_name
Methods included from RestResponseModel
error_response, success_response
Methods inherited from RestApplication
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 |