Please enable JavaScript.
Coggle requires JavaScript to display documents.
Request to a single image (ARTIST IMAGE (Search item on cache (yes (just…
Request to a single image
ARTIST IMAGE
Search item on cache
yes
just return the image URL from cache
not found
request to deezer search
success
Save the info on cache and return image url from response
error
return default image
ARTIST CACHE ITEM
NAME
string
MBID ?
string
IMAGE URL
string
SPOTIFY ID ?
string
Need scannable?
yes
Search for item on cache
found
Has spotify ID on cached item?
no
has MBID?
1 more item...
yes
Use image URL from cache and request to scannable using the cached spotify ID
not found
request to spotify search
success
Save the info on cache and return image url from response and request to scannables API
error
return default image without scannable
no
ARTIST IMAGE
Need scannable?
yes
Search for item on cache
found
Has spotify ID on cached item?
no
has MBID?
yes
try to request to MB API and get spotify id
2 more items...
yes
Use image URL from cache and request to scannable using the cached spotify ID
not found
request to spotify search
success
Save the info on cache and return image url from response and request to scannables API
error
return default image without scannable
no
Search item on cache
yes
just return the image URL from cache
not found
request to spotify search
success
Save the info on cache and return image url from response
error
return default image