Today, a CTID reference in the PostgreSQL DB for the Registry is prefixed by a domain name such as https://www.credentialregistry.org/resources/ce-GUID.
This is a bug rather than a feature which couples and encumbers us to keep the data always under the same domain making it difficult to move to a different domain. In addition, a database migration is nearly impossible without hacky scripts to update the data.
Some things to clean up the data in the PostgreSQL DB.
-
In the PostgreSQL database, clear the prefixed Domain names and Paths wherever a JSON-LD property has a reference to another JSON-LD using a URL. Instead use only the CTID.
-
In the Credential Registry API implementation, prefix the domain name to all the CTID references in the JSON-LD before it is returned to the user.
2a. The default output should include the Domain name and Path of the host that is serving the JSON-LD.
2b. Include support for a query string parameter to turn ON/OFF the prefixing of the Domain name and URL as a customization switch.
Please let me know if you have questions.
Today, a CTID reference in the PostgreSQL DB for the Registry is prefixed by a domain name such as
https://www.credentialregistry.org/resources/ce-GUID.This is a bug rather than a feature which couples and encumbers us to keep the data always under the same domain making it difficult to move to a different domain. In addition, a database migration is nearly impossible without hacky scripts to update the data.
Some things to clean up the data in the PostgreSQL DB.
In the PostgreSQL database, clear the prefixed Domain names and Paths wherever a JSON-LD property has a reference to another JSON-LD using a URL. Instead use only the CTID.
In the Credential Registry API implementation, prefix the domain name to all the CTID references in the JSON-LD before it is returned to the user.
2a. The default output should include the Domain name and Path of the host that is serving the JSON-LD.
2b. Include support for a query string parameter to turn ON/OFF the prefixing of the Domain name and URL as a customization switch.
Please let me know if you have questions.