bplmaps / blacklight-allmaps

Source code of Allmaps plugins for Blacklight/GeoBlacklight software.
Apache License 2.0
1 stars 0 forks source link

Allmaps::AnnotationsController #41

Closed ewlarson closed 3 months ago

ewlarson commented 3 months ago

Basic JSON controller to list harvested Allmaps annotations data. On catalog#show, if the Allmaps sidecar JS doesn't find an annotated match, we queue a background job to try harvesting that manifest again.

Routes for Blacklight::Allmaps::Engine:
allmaps_annotations GET   /allmaps/annotations(.:format)     allmaps/annotations#index {:format=>:json}
 allmaps_annotation GET   /allmaps/annotations/:id(.:format) allmaps/annotations#show {:format=>:json}
                    PATCH /allmaps/annotations/:id(.:format) allmaps/annotations#update {:format=>:json}
                    PUT   /allmaps/annotations/:id(.:format) allmaps/annotations#update {:format=>:json}
ewlarson commented 3 months ago

Troubleshooting GitHub Actions / CI hasn't been fruitful here. Merging this PR to continue work on additional enhancements.