Skip to content

Commit

Permalink
Update NYPL URL and test references
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound committed Feb 8, 2024
1 parent f72c7f3 commit 3aaecb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog/dags/providers/provider_api_scripts/nypl.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_value_from_dict_or_list(

class NyplDataIngester(ProviderDataIngester):
providers = {"image": prov.NYPL_DEFAULT_PROVIDER}
endpoint_base = "http://api.repo.nypl.org/api/v1/items"
endpoint_base = "http://api.repo.nypl.org/api/v2/items"
endpoint = f"{endpoint_base}/search/"
metadata_endpoint = f"{endpoint_base}/item_details/"
batch_limit = 500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"numResults": "1275",
"result": [
{
"apiUri": "http://api.repo.nypl.org/api/v1/items/mods/0cabe3d0-3d50-0134-a8e0-00505686a51c",
"apiUri": "http://api.repo.nypl.org/api/v2/items/mods/0cabe3d0-3d50-0134-a8e0-00505686a51c",
"imageID": "56738462",
"itemLink": "http://digitalcollections.nypl.org/items/0cabe3d0-3d50-0134-a8e0-00505686a51c",
"rightsStatement": "To the extent that a jurisdiction grants The New York Public Library a copyright in this item, NYPL makes this item available under a Creative Commons CC0 1.0 Universal Public Domain Dedication. Though not required, if you want to credit us as the source, please use the following statement, \"From The New York Public Library,\" and provide a link back to the item on our Digital Collections site. Doing so helps us track how our collection is used and helps justify freely releasing even more content in the future.",
Expand Down

0 comments on commit 3aaecb0

Please sign in to comment.