* API Articles v0-v1 restructure * Remove unused helper * Bulk move API controllers into concerns + add V1 controllers * Extract API routes + some fixes * Fix v1 api_controller authenticate! + add more article_controller specs * Completed spec/requests/api/v1/articles_spec.rb * specs up to listings * All v1 specs except for 9 skips * mime_types cleanup + authenticate! relocation Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
18 lines
311 B
Ruby
18 lines
311 B
Ruby
json.array! @video_articles do |video_article|
|
|
json.type_of "video_article"
|
|
|
|
json.extract!(
|
|
video_article,
|
|
:id,
|
|
:path,
|
|
:cloudinary_video_url,
|
|
:title,
|
|
:user_id,
|
|
:video_duration_in_minutes,
|
|
:video_source_url,
|
|
)
|
|
|
|
json.user do
|
|
json.name video_article.user.name
|
|
end
|
|
end
|