forked from External/greenlight
add recordings api actions
This commit is contained in:
21
app/views/bbb/recordings.jbuilder
Normal file
21
app/views/bbb/recordings.jbuilder
Normal file
@ -0,0 +1,21 @@
|
||||
json.partial! 'bbb', messageKey: @messageKey, message: @message, status: @status
|
||||
unless @response.blank?
|
||||
json.recordings do
|
||||
unless @response.is_a? Array
|
||||
@response = [@response]
|
||||
end
|
||||
json.array!(@response) do |recording|
|
||||
json.id recording[:recordID]
|
||||
json.name recording[:name]
|
||||
json.start_time recording[:startTime]
|
||||
json.end_time recording[:endTime]
|
||||
json.published recording[:published]
|
||||
json.playbacks do
|
||||
json.array!(recording[:playback][:format]) do |playback|
|
||||
json.type playback[:type]
|
||||
json.url playback[:url]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user