Sha256: d63da8022dcac5635cd1cd8472ce53985b6375d080ffdfda3d2246594320170c
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
require "pact_broker/diagnostic/resources/base_resource" module PactBroker module Diagnostic module Resources class Heartbeat < BaseResource def allowed_methods ["GET"] end def content_types_provided [["application/hal+json", :to_json]] end def to_json @@json ||= { "ok" => true, "_links" => { "self" => { "href" => request.uri.to_s } } }.to_json end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems