{"openapi":"3.1.0","info":{"title":"Artelunio catalog","version":"1.1.0","description":"Read published digital products, CHF prices, preview images and included file dimensions."},"servers":[{"url":"https://artelunio.th-analytica.com"}],"paths":{"/api/catalog":{"get":{"operationId":"listArtwork","summary":"List published prints, sets and wallpapers","description":"Returns up to 100 items. Use collection for a collection title or q for a text search.","parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":80}},{"name":"collection","in":"query","schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"CHF catalog","content":{"application/json":{"schema":{"type":"object","required":["currency","checkout","termsVersion","items"],"properties":{"currency":{"const":"CHF"},"checkout":{"enum":["off","LIVE","TEST","simulation"]},"termsVersion":{"type":"string"},"familyReview":{"type":"boolean"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Artwork"}}}}}}}}}},"/api/catalog/{slug}":{"get":{"operationId":"getArtwork","summary":"Read a published product and its file specifications","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Artwork","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artwork"}}}},"404":{"description":"Artwork unavailable"}}}}},"components":{"schemas":{"Artwork":{"type":"object","required":["id","title","slug","priceCents","currency","productKind","formats","components"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"slug":{"type":"string"},"collection":{"type":"string"},"style":{"type":"string"},"artworkSource":{"type":"string"},"description":{"type":"string"},"alt":{"type":"string"},"licenseUrl":{"type":"string"},"priceCents":{"type":"integer","minimum":0,"description":"Price in Swiss centimes."},"currency":{"const":"CHF"},"image":{"type":"string"},"url":{"type":"string"},"productKind":{"enum":["print","set","wallpaper"]},"launchTier":{"type":["string","null"]},"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"}},"imageSizes":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"},"thumbWidth":{"type":"integer"}}},"components":{"type":"array","items":{"type":"object","properties":{"alt":{"type":"string"},"artworkSource":{"type":"string"},"style":{"type":"string"},"image":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"}}}}}}},"Format":{"type":"object","properties":{"variant":{"type":"string"},"label":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"},"maxInches":{"type":"array","items":{"type":"number"}}}}}}}