Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dmitryshliugaev/7860e3e932659c014ff74521572ab3cc to your computer and use it in GitHub Desktop.
Save dmitryshliugaev/7860e3e932659c014ff74521572ab3cc to your computer and use it in GitHub Desktop.
rijksmuseum
https://www.rijksmuseum.nl/api/en/collection?key=0fiuZFh4&imgonly=true&ps=30&type=painting&p=1
struct ArtCollectionResponse: Decodable {
let count: Int
let artObjects: [ArtObjectResponse]
}
struct ArtObjectResponse: Decodable {
let id: String
let objectNumber: String
let title: String?
let webImage: ArtWebImageResponse
}
struct ArtWebImageResponse: Decodable {
let url: String
let width: Double
let height: Double
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment