Created
June 11, 2024 12:44
-
-
Save dmitryshliugaev/7860e3e932659c014ff74521572ab3cc to your computer and use it in GitHub Desktop.
rijksmuseum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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