Create API endpoint to expose raw extrinsic metadata on origins
We need an access point to see the collected raw extrinsic metadata on origins
July 2022 ERMDS stats: swh/meta$1388
Now we need to access the metadata via this endpoint: /api/1/raw-extrinsic-metadata/swhid/ Returns raw extrinsic metadata collected on a given object.
swhid => origin
/api/1/raw-extrinsic-metadata/swhid/authorities/ Returns a list of metadata authorities that provided metadata on the given target
swhid => origin
Use Origin to ORI SWHID? python3 -c 'from swh.model.model import Origin; print(Origin(url="https://github.com/codemeta/codemeta/").swhid())' or this: python3 -c 'import hashlib; print("swh:1:ori:" + hashlib.sha1(b"https://github.com/codemeta/codemeta/").hexdigest())'
Migrated from T4377 (view on Phabricator)