Open mekarpeles opened 3 months ago
TL;DR --
Change the functionality of https://github.com/internetarchive/iiif/blob/main/iiify/resolver.py#L32-L38 so instead of calling api.archivelab.org external API, we instead move its code (https://github.com/ArchiveLabs/api.archivelab.org/blob/master/server/views/apis/v1/iiif.py#L21-L34) here.
Currently hitting https://iiif.archive.org/iiif still hits https://api.archivelab.org/iiif. The Labs APIs are likely going to go away ~this year and so we should try to move that dependent code out of api.archivelab.org/iiif into the iiif service itself.
Here we can see where/how iiif.archive.org calls to api.archivelab.org/iiif for the purpose of generating a searchable json list of items available to be accessed in iiif format:
https://github.com/internetarchive/iiif/blob/main/iiify/resolver.py#L32-L38
The corresponding code on api.archivelab.org/iiif is the
Catalog
class: https://github.com/ArchiveLabs/api.archivelab.org/blob/master/server/views/apis/v1/iiif.py#L21-L34which calls
items
: https://github.com/ArchiveLabs/api.archivelab.org/blob/master/server/api/archive.py#L303-L314Which either calls
item
orscrape
orsearch
: