mirror of
https://github.com/we-promise/sure.git
synced 2026-05-09 13:45:01 +00:00
* feat(api): expose rule run history * fix(api): address rule run review * fix(api): complete rule run review * test(api): cover unauthenticated rule run show * test(api): align rule run api key helper * Small Sonnet nit-pick --------- Co-authored-by: Juan José Mata <jjmata@jjmata.com>
17 lines
335 B
Ruby
17 lines
335 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.data do
|
|
json.array! @rule_runs do |rule_run|
|
|
json.partial! "rule_run", rule_run: rule_run
|
|
end
|
|
end
|
|
|
|
json.meta do
|
|
json.current_page @pagy.page
|
|
json.next_page @pagy.next
|
|
json.prev_page @pagy.prev
|
|
json.total_pages @pagy.pages
|
|
json.total_count @pagy.count
|
|
json.per_page @per_page
|
|
end
|