NYPL-Simplified / server_core

Shared data model and utilities for Library Simplified server applications
7 stars 11 forks source link

Modify OverdriveAPI.make_link_safe to also replace "v1" links with "v2" links when appropriate #1228

Closed leonardr closed 3 years ago

leonardr commented 3 years ago

This branch adapts an existing method designed for "fixing" links we get from Overdrive to handle a new case: a case where Overdrive gives us a link to v1 of the availability API, and we need v2. Continuing to use the v1 link causes https://jira.nypl.org/browse/SIMPLY-3370.

The corresponding circulation branch calls make_link_safe on the actual link that turns out to be a v1 link.