/playlist-service

Playlist Service

Primary LanguageRuby

Playlist Service

Code Climate

Reference

Running Locally

Process

Models

  • Playlist
    • has_many :tracks, through: :playlist_tracks, -> { order: { position: :desc } }
    • belongs_to :event
    • event_id
    • name
  • PlaylistTrack
    • belongs_to :playlist
    • belongs_to :track
    • playlist_id
    • track_id
    • position
  • Track
    • has_many :playlists, through: :playlist_tracks
    • belongs_to :artist
    • belongs_to :album
    • artist_id
    • album_id
    • spotify_identifier
    • name
    • isrc
    • duration
  • Artist
    • has_many :tracks
    • spotify_identifier
    • name
  • Album
    • has_many :tracks
    • spotify_identifier
    • name
    • release_date
    • release_date_precision
  • Event
    • has_many :playlists
    • name
    • date

Example Usage

ImportService.import_playlist(artist_name: 'Chromeo', event_date: '2017-02-18')


curl $(minikube service playlist-service --url)/v1/playlists/search?artist_name=Chromeo&event_date=2017-02-18