Skip to content

chandusanjith/DaVinci

Repository files navigation

DaVinci

DaVinci Consumer Mobile API application built using Django Rest Framework

Apps

  • Authentication
  • Horoscope
  • Songs
  • Match Making

Authentication:

Authenticate the device to use other apps.

  • GET /Authentication​/DeviceLogin​/{device_auth}​/
  • Device auth should be of 16 characters

Horoscope:

Daily horoscope refers to predictions given for a day. Generally daily predictions are based on the Sun signs or the Zodiac signs. This method considers the position of the Sun in a particular zodiac sign at the time the person was born. A more precise method of writing daily horoscope is based on studying all the parameters of an individual’s birth chart including the movements of the fast and slow moving planets.

  • POST /Horoscope/CheckAstrology/{device_auth}/
  • Payload
{
 "day":"today",
 "sign":"aries",
 "timezone":"Asia/Kolkata",
 "language":"default"
}
  • Accepted signs = [ 'aries', 'taurus', 'gemini', 'cancer', 'leo', 'virgo', 'libra', 'scorpio', 'sagittarius', 'capricorn', 'aquarius', 'pisces' ]
  • Accepted days = [ 'today', 'tomorrow', 'yesterday' ]

Songs:

Songs app to play devotional songs

  • GET /Songs/Albums/{device_auth}/ to get albums
  • GET /Songs/Songs/{album_id}/{device_auth}/ to get songs against album id
  • GET /Songs/SongLyrics/{album_id}/{device_auth}/ to get lyrics against album id

Youtube Crawler

Commands need to be executed in order to download youtube songs as mp3 and push the raw files to firebase. Link to firebase songs is stored in the models.
python manage.py youtube_mantras_crawl
python manage.py youtube_songs_crawl

Documentation

Api Doc Api Playground

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.