TheMovieDatabaseURLFactory
internal struct TheMovieDatabaseURLFactory
Builds URLs for themoviedb.org REST Endpoints
-
Base URL for themoviedb.org REST API
Declaration
Swift
private let api: String -
Base URL for themoviedb.org movie poster images
Declaration
Swift
private let imagesAPI: String -
The API key for accessing themoviedb.org RESTAPI
Declaration
Swift
private let apiKey: String -
Builds a URL for searching for movies with a query
Declaration
Swift
func makeSearchMoviesURL(forQuery searchQuery: String) -> URL?Parameters
searchQueryThe search query
-
Builds a URL for downloading movie posters at a given path
Declaration
Swift
func makeImageDownloadURL(atPath path: String, size: CGSize, quality: ImageQuality) -> URL?Parameters
pathThe movie poster path
sizeThe size of the poster image being requested
qualityThe quality of the poster image being requested
View on GitHub
TheMovieDatabaseURLFactory Structure Reference