Skip to content

Commit

Permalink
Merge pull request #80 from AshishTI23/ashish/query-params-in-status-api
Browse files Browse the repository at this point in the history
Query params in status api
  • Loading branch information
lockstep-rakesh authored Oct 25, 2024
2 parents 8c4149b + 0d9faed commit 19b85a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
lockstep_rails (0.3.87)
lockstep_rails (0.3.88)
rails

GEM
Expand Down
4 changes: 2 additions & 2 deletions app/models/lockstep/status.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Lockstep::Status
Lockstep::ApiRecord.model_name_uri = 'v1/Status'

def self.ping
resp = Lockstep::ApiRecord.resource.get('')
def self.ping(query_params = {})
resp = Lockstep::ApiRecord.resource.get('', params: query_params)
raise Lockstep::Exceptions::BadRequestError, 'Endpoint not found' if resp.code == '404'

status = JSON.parse(resp.body)
Expand Down
2 changes: 1 addition & 1 deletion lib/lockstep_rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module LockstepRails
VERSION = '0.3.87'
VERSION = '0.3.88'
end

0 comments on commit 19b85a2

Please sign in to comment.