1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/app/views/open_api/v1/plans/show.json.jbuilder
Sylvain 657723bc22 (api) OpenAPI plans endpoints
index and show endpoints
2022-08-30 12:58:44 +02:00

6 lines
257 B
Ruby

# frozen_string_literal: true
json.partial! 'open_api/v1/plans/plan', plan: @plan
json.extract! @plan, :training_credit_nb, :is_rolling, :description, :type, :plan_category_id
json.file URI.join(root_url, @plan.plan_file.attachment.url) if @plan.plan_file