add more api endpoints

This commit is contained in:
DocuSeal committed 2023-10-01 16:51:00 +03:00
1 parent 872fbbc875
commit 1f41807412
9 files changed
+208 -38

No files matched your search

@@ -0,0 +1,13 @@
# frozen_string_literal: true
module Api
class SubmittersController < ApiBaseController
load_and_authorize_resource :submitter
def show
Submissions::EnsureResultGenerated.call(@submitter) if @submitter.completed_at?
render json: Submitters::SerializeForApi.call(@submitter, with_template: true, with_events: true)
end
end
end