Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ATOM syndication feeds to the site #80

Merged
merged 3 commits into from
Dec 6, 2017
Merged

Add ATOM syndication feeds to the site #80

merged 3 commits into from
Dec 6, 2017

Conversation

danirod
Copy link
Member

@danirod danirod commented Dec 6, 2017

This PR adds support for ATOM Feeds on the items in this site. This means that RSS/Atom clients could subscribe to updates on this site in order to get notified whenever new content is available on the site.

The following endpoints have been added:

Every endpoint must return a valid ATOM+XML document. This site does not do RSS, although most RSS clients will be able to subscribe to the ATOM feeds provided by this site.

The following endpoints have been defined:

* Recent videos (master feed).
  Location: /videos/feed
  Purpose: always syndicates the most recent 15 videos on this site.

* Videos for a playlist
  Location: /playlist/:id/feed
  Purpose: always syndicates all the videos in a playlist.

* Videos for a topic
  Location: /topics/:id/feed
  Purpose: always syndicates the most recent 15 videos part of a
  playlist in a particular topic on this site.

Only the playlist feed syndicates the entire list of videos. Other feeds
discard old items as new videos are published on the site.
This commit adds links to alternate representations of the content
available on the site using the feeds developed in my previous commit.
An unhandled edge case where videos that are scheduled for later
publication but not made public yet would be presented in the ATOM Feed
was corrected on this commit.

Additionally, a few includes() have been added to the video queries in
order to avoid N+1 queries when presenting the playlist title and the
topic title for a particular video.
@danirod danirod merged commit 822e7bc into master Dec 6, 2017
@danirod danirod deleted the rss branch December 6, 2017 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant