Closed csae8092 closed 1 year ago
https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/50/detail has e.g. apis-default uris
https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/50/detail
so calling e.g. https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/65223/detail returned a 404, with this pr
https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/65223/detail
calling e.g. https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/65223/detail redirects now to https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/50/detail
the same logic is applied to custom TEI endpoints but without redirect https://pmb.acdh.oeaw.ac.at/apis/entities/tei/place/50 works (as always) https://pmb.acdh.oeaw.ac.at/apis/entities/tei/place/65223 (no works as well)
also the previous hard code "apis default" can now be changed in the settings file DOMAIN_DEFAULT = getattr(settings, "APIS_DEFAULT_DOMAIN", "apis default")
DOMAIN_DEFAULT = getattr(settings, "APIS_DEFAULT_DOMAIN", "apis default")
https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/50/detail
has e.g. apis-default urisso calling e.g.
https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/65223/detail
returned a 404, with this prcalling e.g. https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/65223/detail redirects now to https://pmb.acdh.oeaw.ac.at/apis/entities/entity/place/50/detail
the same logic is applied to custom TEI endpoints but without redirect https://pmb.acdh.oeaw.ac.at/apis/entities/tei/place/50 works (as always) https://pmb.acdh.oeaw.ac.at/apis/entities/tei/place/65223 (no works as well)
also the previous hard code "apis default" can now be changed in the settings file
DOMAIN_DEFAULT = getattr(settings, "APIS_DEFAULT_DOMAIN", "apis default")