Files
sure/app/views/api/v1/rule_runs/index.json.jbuilder
ghost 9cb3b8e05c feat(api): expose rule run history (#1646)
* 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>
2026-05-03 23:33:35 +02:00

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