title Weatherify

participant user
participant Webbapp
participant Backend
participant Openweathers API
participant Weather and genre dic
participant Spotifys API


user->Webbapp:register
Webbapp->Backend:
user<--Webbapp:
Webbapp<--Backend:
user->Webbapp:login
Webbapp->Backend:
user<--Webbapp:
Webbapp<--Backend:
user->Webbapp:User location input
Webbapp->Backend:
Backend->Openweathers API:POST Location
Openweathers API<-Backend: 
Backend<-Openweathers API: Weather data
Openweathers API->Weather and genre dic: Translating weather
Weather and genre dic->Spotifys API:Gets tracks
Spotifys API<-Backend: Create an empty playlist
Spotifys API-->Backend: 
Spotifys API->Backend: Puts the genrated tracks in empty playlist
Backend-->Webbapp:
Webbapp-->user:

