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/spaces/show.json.jbuilder
Sylvain 4c3aa59bc0 (api) openAPI spaces endpoints
index spaces and show a space
2022-08-30 12:18:09 +02:00

6 lines
227 B
Ruby

# frozen_string_literal: true
json.partial! 'open_api/v1/spaces/space', space: @space
json.extract! @space, :description, :characteristics
json.image URI.join(root_url, @space.space_image.attachment.url) if @space.space_image