uoregon-libraries / rais-image-server

RAIS: A IIIF-compliant, 100% open source image server for blazing-fast deep zooming
Creative Commons Zero v1.0 Universal
78 stars 6 forks source link

Add administrative API #15

Open jechols opened 6 years ago

jechols commented 6 years ago

Add functions that can be called via HTTP requests:

The admin API could listen on a separate address pretty easily so it could easily be exposed just to internal users.

jechols commented 6 years ago

Another idea: an info query. This could show what plugins were loaded, which functions each exposed, cache statistics, the version of RAIS, etc.

jechols commented 6 years ago

Basic admin API infrastructure now works and exposes a simple stats JSON endpoint

jechols commented 6 years ago

Info and tile caches have expiration endpoints. Plugins, however have no way to know when a cache expiration is requested, so there's still more work to do here than I realized.