Router for the iTunes Search API.
This functionality is discussed in Chapter 4 of Flight School Guide to Swift Codable.
let components =
AppleiTunesSearchURLComponents<Music>(
term: "Smash Mouth",
entity: .artist
)
print(components.url?.absoluteString)
// "https://itunes.apple.com/search?term=Smash%20Mouth&country=US&entity=musicArtist&lang=en_us"
MIT
Mattt (@mattt)